Page MenuHomePhabricator (Chris)

No OneTemporary

Size
4 KB
Referenced Files
None
Subscribers
None
diff --git a/barcoder.pro b/barcoder.pro
index 5cb5b2b..5013f5e 100644
--- a/barcoder.pro
+++ b/barcoder.pro
@@ -1,35 +1,132 @@
#-------------------------------------------------
#
# Project created by QtCreator 2017-02-16T22:41:52
#
#-------------------------------------------------
-
+# svg?
QT += core gui svg
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = barcoder
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
INCLUDEPATH += 3rdparty/qqrencode
LIBS += -lqrencode -lpng -ldmtx
SOURCES += main.cpp\
mainwindow.cpp\
3rdparty/qqrencode/qqrencode.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
+
+
+#An AUTHORS file with copyright information.
+#A manual: ${PACKAGE}.1 or similar.
+#A COPYING file with GPL information or some other license.
+#An appropriate build file for the package. For C/C++ programs,
+#I recommend using cmake; for python, setup.py, etc.
+#https://www.lpenz.org/articles/debgit/index.html
+
+
+
+# static_and_shared — generates makefiles for both static and shared builds.
+# Note that shared_and_static is ignored.
+# A primary makefile named $$MAKEFILE (Makefile by default) is generated and
+# subsidiary makefiles named $$MAKEFILE.StaticRelease and
+# $$MAKEFILE.SharedRelease if CONFIG contains release (the default for unix platforms),
+# or $$MAKEFILE.StaticDebug and $$MAKEFILE.SharedDebug if CONFIG contains debug
+# (the default for win32), or both if CONFIG contains debug_and_release
+# (for a total of five makefiles) are generated.
+# The primary makefile will contain a set of {static,shared}{debug,release}[-xxx] targets
+# corresponding to the secondary makefiles that can be used to invoke the
+# appropriate makefile rules. However the default first (as well as install, and uninstall)
+# targets will only have a single prerequisite (only one library file is built by default)
+# depending on the active CONFIG: static-release, static-debug, shared-release, or shared-debug;
+# add static or shared to CONFIG, in addition to static_and_shared,
+# and release or debug in addition to debug_and_release to get qmake to select the corresponding
+# target for the first target prerequisite.
+
+unix {
+ #VARIABLES
+ isEmpty(PREFIX) {
+ PREFIX = /usr #QT_INSTALL_PREFIX
+ }
+ BINDIR = $$PREFIX/bin
+ DATADIR =$$PREFIX/share
+
+ DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
+
+ # MAKE tarball
+ tgz.target = tarball
+ tgz.commands = git archive --prefix $${TARGET}-`git log|grep '^commit'|wc -l`/ -o $${TARGET}-`git log|grep '^commit'|wc -l`.tar.gz HEAD . \":(exclude)debian\" \":(exclude)data\"
+ tgz.depends = .git
+ tgz.path = .
+
+
+ # MAKE zip
+ zip.target = zip
+ zip.commands = git archive --prefix $${TARGET}-`git log|grep '^commit'|wc -l`/ -o $${TARGET}-`git log|grep '^commit'|wc -l`.zip HEAD . \":(exclude)debian\" \":(exclude)data\"
+ zip.depemds = .git
+ zip.path = .
+
+ uclean.commands += find . -name \"*.zip\" -exec rm -v {} \;;
+ uclean.commands += find . -name \"*.tar.gz\" -exec rm -v {} \;;
+ uclean.commands += find . -name \"*.deb\" -exec rm -v {} \;;
+ uclean.commands += rm -f data/changelog.gz;
+ clean.depends = uclean
+
+
+QMAKE_EXTRA_TARGETS += tgz zip deb man doc clean uclean
+
+
+ #MAKE INSTALL
+
+ INSTALLS += target man doc# desktop icon64
+
+ target.path = $$BINDIR
+
+ # man 1 is apps, and lintian wants exectuables to have man pages
+ man.target = man
+ man.path = $$DATADIR/man/man1
+ man.files += data/$${TARGET}.1.gz
+
+ doc.target = docs
+ doc.path = $$DATADIR/doc/$${TARGET}
+ # gcg or git2cl ?
+ doc.commands = gcg -O deb -n $${TARGET} -D unstable -c 1.0.0 | gzip > data/changelog.gz
+ doc.files += data/changelog.gz
+ doc.files += data/copyright
+# doc.files += data/README.gz
+# /usr/share/doc/firefox/MPL-2.0.gz
+
+# desktop.path = $$DATADIR/applications
+# desktop.files += $${TARGET}.desktop
+
+# icon64.path = $$DATADIR/icons/hicolor/64x64/apps
+# icon64.files += data/$${TARGET}.png
+
+ deb.target = deb
+ deb.path = .
+# deb.commands = tar -f *.tar.gz --delete debian; tar -f *.tar.gz --delete data;
+# deb.commands += gcg -O deb -n barcoder -D unstable -c 1.0.0
+ deb.depends = .git doc man tgz
+
+target.depends = deb
+
+}
+
diff --git a/data/barcoder.1.gz b/data/barcoder.1.gz
new file mode 100644
index 0000000..a78771d
Binary files /dev/null and b/data/barcoder.1.gz differ

File Metadata

Mime Type
text/x-diff
Expires
Thu, Sep 11, 2:10 PM (23 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42682
Default Alt Text
(4 KB)

Event Timeline