Debian Codegraph @

Robocut.pro

raw
1 # -------------------------------------------------
2 # Project created by QtCreator 2010-10-03T18:21:30
3 # -------------------------------------------------
4 TARGET = robocut
5 VERSION = 1.0.11
6 TEMPLATE = app
7 INSTALLS += icon \
8 target
9 target.path = /usr/bin
10 icon.files += ./images/robocut.xpm
11 icon.path = /usr/share/pixmaps/
12
13 SOURCES += main.cpp \
14 MainWindow.cpp \
15 Plotter.cpp \
16 Common.cpp \
17 PathPaintEngine.cpp \
18 CutDialog.cpp \
19 CuttingDialog.cpp \
20 CuttingThread.cpp \
21 PathPaintPage.cpp \
22 PathSorter.cpp \
23 ProgramOptions.cpp
24 HEADERS += MainWindow.h \
25 Plotter.h \
26 NoCopy.h \
27 Common.h \
28 PathPaintEngine.h \
29 CutDialog.h \
30 CuttingDialog.h \
31 CuttingThread.h \
32 PathPaintPage.h \
33 PathSorter.h \
34 ProgramOptions.h
35 FORMS += MainWindow.ui \
36 CutDialog.ui \
37 CuttingDialog.ui
38
39 QMAKE_CXXFLAGS += -std=c++11
40
41 QMAKE_CPPFLAGS *= $(shell dpkg-buildflags --get CPPFLAGS)
42 QMAKE_CFLAGS *= $(shell dpkg-buildflags --get CFLAGS)
43 QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)
44 QMAKE_LFLAGS *= $(shell dpkg-buildflags --get LDFLAGS)
45
46 DEFINES += ROBOCUT_VERSION=\\\"$$VERSION\\\"
47
48 unix:LIBS += -lusb-1.0
49 win32:LIBS += $$_PRO_FILE_PWD_/libusb-windows/libusb-1.0.a
50
51 win32:INCLUDEPATH += $$_PRO_FILE_PWD_/libusb-windows
52
53 QT += svg
54
55 RESOURCES += \
56 resources.qrc
57
58 DISTFILES += \
59 readme.txt \
60 install.txt \
61 changelog \
62 images/cap-blue.png \
63 images/cap-pen.png \
64 images/cap-red.png \
65 images/cap-yellow.png \
66 images/icon.png \
67 images/robocut.xpm \
68 images/cap.xcf \
69 images/pen.xcf \
70 examples/a4_reg-marks_h260.svg \
71 examples/legal_reg-marks_h310.svg \
72 examples/letter_reg-marks.svg \
73 robocut.spec \
74 Readme.md
75
76
77 # Instructions for Windows release:
78
79 # In Qt Creator, go to Projects->Run
80 # Add->Deployment configuration
81 # Rename->"Create Windows Release"
82 # Add Deploy Step->Custom Process Step
83 #
84 # Command: C:\Qt\5.4\mingw491_32\bin\windeployqt.exe
85 # Argument: --dir Robocut --compiler-runtime robocut.exe
86 # Working dir: %{buildDir}/%{CurrentBuild:Type}
87 #
88 # Add another process step:
89 #
90 # Command: C:\Windows\System32\xcopy.exe
91 # Argument: /Y robocut.exe Robocut
92 # Working dir: %{buildDir}/%{CurrentBuild:Type}
93 #
94 # Select that deployment method and run the program. You should be given a directory with all the required files in
95 # it. Before you zip and upload it, exit Qt creator and rename c:\Qt to c:\Qt2. Re-run it to verify that it works
96 # without the Qt SDK installed.
97 #
98 # Note that there is a minor flaw in this deployment method - if you later update your Qt SDK it will find the updated
99 # DLLs in c:\Qt *before* it finds the local Qt DLLs and won't run properly. The solution is to add a qt.conf
100 # file, but that makes development more of a faff. Anyway, Qt Windows deployment is a big mess.