forked from b-com-software-basis/xpcf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xpcf.pro
executable file
·258 lines (226 loc) · 8.37 KB
/
xpcf.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
QT -= core gui
CONFIG -= app_bundle qt
TARGET = xpcf
FRAMEWORK = $${TARGET}
VERSION=2.7.0
DEFINES += XPCFVERSION=\\\"$${VERSION}\\\"
CONFIG += c++1z
#CONFIG += verbose
!staticlib {
CONFIG += shared
} else {
CONFIG -= shared
}
#message($${CONFIG})
#CONFIG += verbose
# Uncomment following line to prepare remaken package
#CONFIG += package_remaken
macx {
#CONFIG += use_brew_llvm
# howto setup conan to use brew llvm ?
}
DEFINES += WITHREMOTING
DEFINES += XPCF_USE_BOOST
#DEFINES += XPCF_WITH_LOGS
staticlib {
DEFINES += XPCF_STATIC
DEPENDENCIESCONFIG = staticlib
REMAKEN_PKGSUBDIR=static
} else {
DEFINES += XPCF_SHARED
DEFINES += XPCF_SHARED_DEPS
DEFINES += BOOST_ALL_DYN_LINK
DEPENDENCIESCONFIG = sharedlib
REMAKEN_PKGSUBDIR=shared
}
CONFIG(debug,debug|release) {
# DEFINES += XPCF_WITH_LOGS
DEFINES += "XPCFDEBUG"
DEFINES += XPCFSUBDIRSEARCH=\\\"debug\\\"
REMAKEN_PKGSUBDIR=$${REMAKEN_PKGSUBDIR}/debug/$${TARGET}_$${VERSION}
}
CONFIG(release,debug|release) {
DEFINES += XPCFSUBDIRSEARCH=\\\"release\\\"
REMAKEN_PKGSUBDIR=$${REMAKEN_PKGSUBDIR}/release/$${TARGET}_$${VERSION}
}
package_remaken {
message("Preparing remaken package installation in $${REMAKEN_PKGSUBDIR}")
INSTALLSUBDIR=$${REMAKEN_PKGSUBDIR}
}
message("CONFIG="$${CONFIG})
macx {
# EXPERIMENTAL : needs to use remaken configure first
# REMAKENCONFIG += use_remaken_parser
}
#NOTE : CONFIG as staticlib or sharedlib, DEPENDENCIESCONFIG as staticlib or sharedlib and PROJECTDEPLOYDIR MUST BE DEFINED BEFORE templatelibbundle.pri inclusion
include (builddefs/qmake/templatelibconfig.pri)
CONFIG(debug,debug|release) {
# DEFINES += XPCF_WITH_LOGS
DEFINES += "XPCFDEBUG"
DEFINES += XPCFSUBDIRSEARCH=\\\"debug\\\"
}
CONFIG(release,debug|release) {
DEFINES += XPCFSUBDIRSEARCH=\\\"release\\\"
}
DEFINES += BOOST_ALL_NO_LIB
DEFINES += TIXML_USE_STL
SOURCES += \
src/AliasManager.cpp \
src/Factory.cpp \
src/InjectableMetadata.cpp \
src/Registry.cpp \
src/tinyxml2.cpp \
src/tinyxmlhelper.cpp \
src/ComponentMetadata.cpp \
src/InterfaceMetadata.cpp \
src/MethodMetadata.cpp \
src/ComponentBase.cpp \
src/ComponentManager.cpp \
src/ModuleMetadata.cpp \
src/PathBuilder.cpp \
src/ModuleManager.cpp \
src/Enumerator.cpp \
src/Property.cpp \
src/PropertyMap.cpp \
src/Exception.cpp \
src/PropertyManager.cpp \
src/ConfigurableBase.cpp \
src/BaseTask.cpp \
src/ErrorMessage.cpp \
src/BaseException.cpp
HEADERS += \
interfaces/xpcf/api/IAliasManager.h \
interfaces/xpcf/api/IRegistryManager.h \
interfaces/xpcf/api/InjectableMetadata.h \
interfaces/xpcf/core/helpers.h \
interfaces/xpcf/remoting/BaseBuffer.h \
interfaces/xpcf/remoting/ISerializable.h \
interfaces/xpcf/threading/MultiConsumer.h \
interfaces/private/xpcf/AliasManager.h \
interfaces/private/xpcf/Factory.h \
interfaces/private/xpcf/Registry.h \
interfaces/private/xpcf/tinyxml2.h \
interfaces/private/xpcf/tinyxmlhelper.h \
interfaces/private/xpcf/ComponentManager.h \
interfaces/private/xpcf/PathBuilder.h \
interfaces/private/xpcf/MethodMetadata.h \
interfaces/private/xpcf/ModuleManager.h \
interfaces/private/xpcf/Property.h \
interfaces/private/xpcf/PropertyMap.h \
interfaces/private/xpcf/PropertySequenceWrapper.h \
interfaces/private/xpcf/PropertyWrapper.h \
interfaces/private/xpcf/PropertyManager.h \
interfaces/xpcf/core/Result.h \
interfaces/xpcf/core/ErrorMessage.h \
interfaces/xpcf/core/BaseException.h \
interfaces/xpcf/core/Exception.h \
interfaces/xpcf/core/XPCFErrorCode.h \
interfaces/xpcf/core/refs.h \
interfaces/xpcf/core/traits.h \
interfaces/xpcf/core/uuid.h \
interfaces/xpcf/api/InterfaceTraits.h \
interfaces/xpcf/api/IComponentIntrospect.h \
interfaces/xpcf/api/IComponentManager.h \
interfaces/xpcf/api/IModuleManager.h \
interfaces/xpcf/api/IConfigurable.h \
interfaces/xpcf/api/ComponentMetadata.h \
interfaces/xpcf/api/ModuleMetadata.h \
interfaces/xpcf/api/InterfaceMetadata.h \
interfaces/xpcf/api/IInjectable.h \
interfaces/xpcf/api/IFactory.h \
interfaces/xpcf/component/ComponentBase.h \
interfaces/xpcf/component/ComponentFactory.h \
interfaces/xpcf/component/ComponentTraits.h \
interfaces/xpcf/component/ConfigurableBase.h \
interfaces/xpcf/module/IModuleIndex.h \
interfaces/xpcf/module/ModuleFactory.h \
interfaces/xpcf/properties/IProperty.h \
interfaces/xpcf/properties/IPropertyMap.h \
interfaces/xpcf/collection/IEnumerable.h \
interfaces/xpcf/collection/IEnumerator.h \
interfaces/xpcf/collection/ICollection.h \
interfaces/xpcf/collection/Collection.h \
interfaces/xpcf/collection/Enumerator.h \
interfaces/xpcf/collection/BlockEnumerator.h \
interfaces/xpcf/xpcf.h \
interfaces/xpcf/xpcf_api_define.h \
interfaces/xpcf/threading/BaseTask.h \
interfaces/xpcf/threading/SharedBuffer.h \
interfaces/xpcf/threading/SharedFifo.h \
interfaces/xpcf/threading/ITask.h \
interfaces/xpcf/threading/SharedCircularBuffer.h \
interfaces/xpcf/threading/FiberFifos.h \
interfaces/xpcf/threading/SharedLifo.h \
interfaces/xpcf/threading/DropBuffer.h
contains(DEFINES, "WITHREMOTING") {
SOURCES += \
src/GrpcManager.cpp
HEADERS += \
interfaces/private/xpcf/src/GrpcManager.h \
interfaces/xpcf/remoting/IGrpcServerManager.h \
interfaces/xpcf/remoting/IGrpcService.h \
interfaces/xpcf/remoting/GrpcHelper.h
}
linux {
QMAKE_LFLAGS += -ldl
#LIBS += -L/home/linuxbrew/.linuxbrew/lib # temporary fix caused by grpc with -lre2 ... without -L in grpc.pc
}
macx {
DEFINES += _MACOS_TARGET_
QMAKE_MAC_SDK= macosx
QMAKE_CFLAGS += -mmacosx-version-min=10.7 #-x objective-c++
QMAKE_CXXFLAGS += -mmacosx-version-min=10.7 -std=c++17 -fPIC#-x objective-c++
QMAKE_LFLAGS += -mmacosx-version-min=10.7 -v -lstdc++
LIBS += -lstdc++ -lc -lpthread
LIBS += -L/usr/local/lib # temporary fix caused by grpc with -lre2 ... without -L in grpc.pc
}
win32 {
DEFINES += _X86_VC12_TARGET_
DEFINES += MBCS _MBCS
}
INCLUDEPATH += $${PWD} $${PWD}/interfaces
#include(builddefs/qmake/code_analysis/bcom_code_scanner.prf)
h_api_files.path = $${PROJECTDEPLOYDIR}/interfaces/xpcf/api
h_api_files.files = $$files($${PWD}/interfaces/xpcf/api/*)
h_collection_files.path = $${PROJECTDEPLOYDIR}/interfaces/xpcf/collection
h_collection_files.files = $$files($${PWD}/interfaces/xpcf/collection/*)
h_component_files.path = $${PROJECTDEPLOYDIR}/interfaces/xpcf/component
h_component_files.files = $$files($${PWD}/interfaces/xpcf/component/*)
h_core_files.path = $${PROJECTDEPLOYDIR}/interfaces/xpcf/core
h_core_files.files = $$files($${PWD}/interfaces/xpcf/core/*)
h_module_files.path = $${PROJECTDEPLOYDIR}/interfaces/xpcf/module
h_module_files.files = $$files($${PWD}/interfaces/xpcf/module/*)
h_properties_files.path = $${PROJECTDEPLOYDIR}/interfaces/xpcf/properties
h_properties_files.files = $$files($${PWD}/interfaces/xpcf/properties/*)
h_threading_files.path = $${PROJECTDEPLOYDIR}/interfaces/xpcf/threading
h_threading_files.files = $$files($${PWD}/interfaces/xpcf/threading/*)
h_xpcf_files.path = $${PROJECTDEPLOYDIR}/interfaces/xpcf
h_xpcf_files.files = $${PWD}/interfaces/xpcf/xpcf.h
h_xpcf_files.files += $${PWD}/interfaces/xpcf/xpcf_api_define.h
qt_wizards.files = $$files($${PWD}/wizards/*,recursive=true)
qt_wizards.path = $${PROJECTDEPLOYDIR}/wizards
INSTALLS += h_api_files h_collection_files h_component_files h_core_files h_module_files h_properties_files h_threading_files h_xpcf_files qt_wizards
contains(DEFINES, "WITHREMOTING") {
h_remoting_files.path = $${PROJECTDEPLOYDIR}/interfaces/xpcf/remoting
h_remoting_files.files = $$files($${PWD}/interfaces/xpcf/remoting/*)
INSTALLS += h_remoting_files
}
OTHER_FILES += \
interfaces/swig/swig.i \
interfaces/swig/XPCF_Api.i \
interfaces/swig/XPCF_Bindings.i \
interfaces/swig/XPCF_Collection.i \
interfaces/swig/XPCF_Component.i \
interfaces/swig/XPCF_Core.i \
interfaces/swig/XPCF_Module.i \
interfaces/swig/XPCF_Properties.i \
interfaces/swig/XPCF_Threading.i \
interfaces/swig/XPCF_Traits.i \
DISTFILES += \
Makefile \
doc/xpcf-registry-sample.xml \
packagedependencies-android.txt \
packagedependencies-linux.txt \
packagedependencies-mac.txt \
packagedependencies-win.txt \
packagedependencies.txt