forked from billvaglienti/ProtoGen
-
Notifications
You must be signed in to change notification settings - Fork 5
/
ProtoGen.pro
117 lines (99 loc) · 4.49 KB
/
ProtoGen.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
TARGET = ProtoGen
TEMPLATE = app
CONFIG += console
!macx{
CONFIG -= app_bundle
}
macx{
CONFIG += app_bundle
}
CONFIG += c++1z
SOURCES += main.cpp \
prebuiltSources/floatspecial.c \
protocolfloatspecial.cpp \
protocolparser.cpp \
protocolpacket.cpp \
protocolfield.cpp \
enumcreator.cpp \
protocolfile.cpp \
protocolscaling.cpp \
fieldcoding.cpp \
encodable.cpp \
protocolstructure.cpp \
protocolstructuremodule.cpp \
protocolsupport.cpp \
encodedlength.cpp \
shuntingyard.cpp \
protocolcode.cpp \
protocolbitfield.cpp \
protocoldocumentation.cpp \
tinyxml/tinyxml2.cpp
HEADERS += \
prebuiltSources/floatspecial.h \
protocolfloatspecial.h \
protocolparser.h \
protocolpacket.h \
protocolfield.h \
enumcreator.h \
protocolfile.h \
protocolscaling.h \
fieldcoding.h \
encodable.h \
protocolstructure.h \
protocolstructuremodule.h \
protocolsupport.h \
encodedlength.h \
shuntingyard.h \
protocolcode.h \
protocolbitfield.h \
protocoldocumentation.h \
tinyxml/tinyxml2.h
RESOURCES +=
INCLUDEPATH += tinyxml \
prebuiltSources
CONFIG(debug, debug|release){
DEFINES += _DEBUG
}
win32{
CONFIG(release, debug|release){
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$shell_path($$PWD\exampleprotocol.xml)) $$quote($$shell_path($$PWD\ProtoGenInstall\exampleprotocol.xml)) $$escape_expand(\n\t)
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$shell_path($$PWD\LICENSE.txt)) $$quote($$shell_path($$PWD\ProtoGenInstall\LICENSE.txt)) $$escape_expand(\n\t)
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$shell_path($$shadowed($$PWD)\release\ProtoGen.exe)) $$quote($$shell_path($$PWD\ProtoGenInstall\ProtoGen.exe)) $$escape_expand(\n\t)
QMAKE_POST_LINK += $$quote(MultiMarkdown) $$quote($$shell_path($$PWD\README.md)) > $$quote($$shell_path($$PWD\ProtoGenInstall\ProtoGen.html)) $$escape_expand(\n\t)
QMAKE_POST_LINK += $$quote(\Program Files\7-Zip\7z) a $$quote($$shell_path($$PWD\ProtoGenWin.zip)) $$quote($$shell_path($$PWD\ProtoGenInstall)) $$escape_expand(\n\t)
}
}
macx{
CONFIG(release, debug|release){
# Build top level documentation
QMAKE_POST_LINK += $$quote(/usr/local/bin/MultiMarkdown) $$quote($$shell_path($$PWD/README.md)) > $$quote($$shell_path($$PWD/ProtoGenInstall/ProtoGen.html)) $$escape_expand(\n\t)
# Copy key files to the ProtoGenInstall directory
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$shell_path($$PWD\exampleprotocol.xml)) $$quote($$shell_path($$PWD/ProtoGenInstall/exampleprotocol.xml)) $$escape_expand(\n\t)
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$shell_path($$PWD\LICENSE.txt)) $$quote($$shell_path($$PWD/ProtoGenInstall/LICENSE.txt)) $$escape_expand(\n\t)
QMAKE_POST_LINK += rm -r -d -f $$quote($$shell_path($$PWD/ProtoGenInstall/ProtoGen.app/)) $$escape_expand(\n\t)
QMAKE_POST_LINK += $$QMAKE_COPY -r $$quote($$shell_path($$shadowed($$PWD)/ProtoGen.app)) $$quote($$shell_path($$PWD/ProtoGenInstall/ProtoGen.app/)) $$escape_expand(\n\t)
QMAKE_POST_LINK += tar czvf $$quote($$shell_path($$PWD\ProtoGenMac.tgz)) -C $$quote($$shell_path($$PWD)) ProtoGenInstall$$escape_expand(\n\t)
}
}
unix:!macx{
CONFIG(release, debug|release){
# Copy key files to the ProtoGenInstall directory
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$shell_path($$PWD\exampleprotocol.xml)) $$quote($$shell_path($$PWD\ProtoGenInstall)) $$escape_expand(\n\t)
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$shell_path($$PWD\LICENSE.txt)) $$quote($$shell_path($$PWD\ProtoGenInstall)) $$escape_expand(\n\t)
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$shell_path($$PWD\ProtoGen.sh)) $$quote($$shell_path($$PWD\ProtoGenInstall)) $$escape_expand(\n\t)
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$shell_path($$shadowed($$PWD)\ProtoGen)) $$quote($$shell_path($$PWD\ProtoGenInstall)) $$escape_expand(\n\t)
QMAKE_POST_LINK += $$quote(multimarkdown) $$quote($$shell_path($$PWD\README.md)) > $$quote($$shell_path($$PWD\ProtoGenInstall/ProtoGen.html)) $$escape_expand(\n\t)
QMAKE_POST_LINK += tar czvf $$quote($$shell_path($$PWD\ProtoGenLinux.tgz)) -C $$quote($$shell_path($$PWD)) ProtoGenInstall$$escape_expand(\n\t)
}
}
OTHER_FILES += \
exampleprotocol.xml \
README.md \
LICENSE.txt
DISTFILES += \
dependson_cpp.xml \
exampleprotocol_cpp.xml \
moredocsfile.txt \
dependson.xml \
licensetest.txt \
prebuiltSources/bitfieldtest.xml