C++: Compile fixes on OSX
[smartapi.git] / Common / C++ / SmartAPI / smartapi.pro
1 #-------------------------------------------------
2 #
3 # SmartAPI
4 #
5 #-------------------------------------------------
6
7 QT += core network
8         
9 TARGET = smartapi
10 TEMPLATE = lib
11
12 # Uncomment this to enable MQTT support with Eclipse Paho
13 # Note that you need to fill in the location of compiled
14 # Paho libraries and headers in smartapipahomqtt.pro
15 # for the compile to work.
16 #DEFINES += WITH_PAHO
17
18 QMAKE_CXXFLAGS_WARN_ON = -Wall
19 QMAKE_CXXFLAGS_WARN_ON += -pedantic
20 QMAKE_CXXFLAGS_WARN_ON += -Wextra
21 QMAKE_CXXFLAGS_WARN_ON += -Wno-long-long
22 QMAKE_CXXFLAGS_WARN_ON += -Wno-reorder
23 #QMAKE_CXXFLAGS_WARN_ON = -w
24
25
26 QMAKE_CXXFLAGS += -std=gnu++11
27
28 LIBS += -lrdf
29 LIBS += -lraptor2
30 LIBS += -lrasqal
31 LIBS += -lssl -lcrypto
32
33 INCLUDEPATH += "/usr/include/redland/"
34 INCLUDEPATH += "/usr/include/raptor2/"
35 INCLUDEPATH += "/usr/include/rasqal/"
36
37 macx {
38         INCLUDEPATH += "/Users/jarvis/workspace/Jarvis_Lib/Jarvis_1.0/redland/include"
39         INCLUDEPATH += "/Users/jarvis/workspace/Jarvis_Lib/Jarvis_1.0/raptor/include"
40         INCLUDEPATH += "/Users/jarvis/workspace/Jarvis_Lib/Jarvis_1.0/rasqal/include"
41         LIBS += -L/usr/local/lib
42
43         # use openssl installed with brew instead of default
44         # openssl which is missing several necessary features
45         INCLUDEPATH += "/usr/local/homebrew/opt/openssl/include/"
46         LIBS += -L/usr/local/homebrew/opt/openssl/lib
47 }
48 win32 {
49         INCLUDEPATH += "C:/msys64/mingw64/include/redland"
50         INCLUDEPATH += "C:/msys64/mingw64/include/raptor2"
51         INCLUDEPATH += "C:/msys64/mingw64/include/rasqal"
52 }
53
54 contains(DEFINES, WITH_PAHO) {
55         include(smartapipahomqtt.pro)
56 }
57
58 SOURCES += smartapi/agents/Agent.cpp \
59         smartapi/agents/OAuthAgent.cpp \
60         smartapi/agents/RegistrationAgent.cpp \
61         smartapi/agents/EventAgent.cpp \
62         smartapi/agents/SearchAgent.cpp \
63         smartapi/agents/SharingAgent.cpp \
64         smartapi/agents/TradingAgent.cpp \
65         smartapi/agents/TransactionAgent.cpp \
66         smartapi/common/Duration.cpp \
67         smartapi/common/HttpMessage.cpp \
68         smartapi/common/NS.cpp \
69         smartapi/common/OntologyCache.cpp \
70         smartapi/common/ObjectPrinter.cpp \
71         smartapi/common/SmartAPICrypto.cpp \
72         smartapi/common/Tools.cpp \
73         smartapi/common/UnitConverter.cpp \
74         smartapi/common/CurrencyConverter.cpp \
75         smartapi/common/CurrencyConverterFixerIO.cpp \
76         smartapi/factory/ActivityFactory.cpp \
77         smartapi/factory/Factory.cpp \
78         smartapi/factory/ModelFactory.cpp \
79         smartapi/factory/NotificationFactory.cpp \
80         smartapi/factory/RequestFactory.cpp \
81         smartapi/factory/ResponseFactory.cpp \
82         smartapi/factory/TransactionFactory.cpp \
83         smartapi/model/Ability.cpp \
84         smartapi/model/AbstractEntity.cpp \
85         smartapi/model/Activity.cpp \
86         smartapi/model/Account.cpp \
87         smartapi/model/AccountAction.cpp \
88         smartapi/model/AccountTransaction.cpp \
89         smartapi/model/Address.cpp \
90         smartapi/model/Authorization.cpp \
91         smartapi/model/Availability.cpp \
92         smartapi/model/Capacity.cpp \
93         smartapi/model/Classification.cpp \
94         smartapi/model/Condition.cpp \
95         smartapi/model/Contract.cpp \
96         smartapi/model/Controllability.cpp \
97         smartapi/model/Coordinates.cpp \
98         smartapi/model/Device.cpp \
99         smartapi/model/Direction.cpp \
100         smartapi/model/Entity.cpp \
101         smartapi/model/Enumeration.cpp \
102         smartapi/model/Error.cpp \
103         smartapi/model/Evaluation.cpp \
104         smartapi/model/Grading.cpp \
105         smartapi/model/GrObj.cpp \
106         smartapi/model/Group.cpp \
107         smartapi/model/HeartBeat.cpp \
108         smartapi/model/Input.cpp \
109         smartapi/model/InterfaceAddress.cpp \
110         smartapi/model/Map.cpp \
111         smartapi/model/Message.cpp \
112         smartapi/model/Notification.cpp \
113         smartapi/model/Obj.cpp \
114         smartapi/model/Offering.cpp \
115         smartapi/model/Organization.cpp \
116         smartapi/model/Orientation.cpp \
117         smartapi/model/Output.cpp \
118         smartapi/model/Parameter.cpp \
119         smartapi/model/Person.cpp \
120         smartapi/model/PhysicalEntity.cpp \
121         smartapi/model/PriceSpecification.cpp \
122         smartapi/model/Provenance.cpp \
123         smartapi/model/Request.cpp \
124         smartapi/model/Response.cpp \
125         smartapi/model/Restriction.cpp \
126         smartapi/model/Ring.cpp \
127         smartapi/model/Route.cpp \
128         smartapi/model/Service.cpp \
129         smartapi/model/ServiceProvider.cpp \
130         smartapi/model/Size.cpp \
131         smartapi/model/SomeItems.cpp \
132         smartapi/model/Status.cpp \
133         smartapi/model/SubscriptionPriceSpecification.cpp \
134         smartapi/model/SystemOfInterest.cpp \
135         smartapi/model/TemporalContext.cpp \
136         smartapi/model/TimeSeries.cpp \
137         smartapi/model/Transaction.cpp \
138         smartapi/model/TypeAndQuantityNode.cpp \
139         smartapi/model/UnitPriceSpecification.cpp \
140         smartapi/model/Validity.cpp \
141         smartapi/model/ValueObject.cpp \
142         smartapi/model/Velocity.cpp \
143         smartapi/model/Voucher.cpp \
144         smartapi/model/Waypoint.cpp \
145         smartapi/model/Waypoints.cpp \
146         smartapi/model/Zone.cpp \
147         smartapi/model/PriceListSpecification.cpp \
148         smartapi/model/DependentPriceSpecification.cpp \
149         smartapi/model/TimeDependentPriceSpecification.cpp \
150         smartapi/model/LocationDependentPriceSpecification.cpp \
151         smartapi/model/PropertyDependentPriceSpecification.cpp \
152         smartapi/model/DurationDependentPriceSpecification.cpp \
153         smartapi/model/CalculationMethod.cpp \
154         smartapi/model/LinearCalculation.cpp \
155         smartapi/model/TravelDistanceDependentPriceSpecification.cpp \
156         smartapi/model/DistanceDependentPriceSpecification.cpp \
157         smartapi/model/ScriptDependentPriceSpecification.cpp \
158         smartapi/model/ZoneDependentPriceSpecification.cpp \
159         smartapi/model/ZonePopulationDependentPriceSpecification.cpp \
160         smartapi/model/ZoneTravelDependentPriceSpecification.cpp \
161         smartapi/model/TravelDistanceDurationDependentPriceSpecification.cpp \
162         smartapi/model/ZoneTravelDurationDependentPriceSpecification.cpp \
163         smartapi/model/DurationAtDistanceDependentPriceSpecification.cpp \
164         smartapi/model/DurationAtZoneDependentPriceSpecification.cpp \
165         smartapi/model/TimeDependentPriceListSpecification.cpp \
166         smartapi/model/ObjectOperationDependentPriceSpecification.cpp \
167         smartapi/model/License.cpp \
168         smartapi/rdf/GraphItem.cpp \
169         smartapi/rdf/PropertyList.cpp \
170         smartapi/rdf/ItemizedList.cpp \
171         smartapi/rdf/LinkedList.cpp \
172         smartapi/rdf/List.cpp \
173         smartapi/rdf/Literal.cpp \
174         smartapi/rdf/Model.cpp \
175         smartapi/rdf/NudeList.cpp \
176         smartapi/rdf/OrderedList.cpp \
177         smartapi/rdf/Property.cpp \
178         smartapi/rdf/RDFNode.cpp \
179         smartapi/rdf/Resource.cpp \
180         smartapi/rdf/Statement.cpp \
181         smartapi/rdf/Variant.cpp \
182         smartapi/common/STATUSCODE.cpp
183
184
185         
186 HEADERS += smartapi/agents/Agent.h \
187         smartapi/agents/OAuthAgent.h \
188         smartapi/agents/RegistrationAgent.h \
189         smartapi/agents/EventAgent.h \
190         smartapi/agents/SearchAgent.h \
191         smartapi/agents/SharingAgent.h \
192         smartapi/agents/TradingAgent.h \
193         smartapi/agents/TransactionAgent.h \
194         smartapi/common/CONTENTTYPES.h \
195         smartapi/common/ClassMapper.h \
196         smartapi/common/DATATYPE.h \
197         smartapi/common/Duration.h \
198         smartapi/common/HttpMessage.h \
199         smartapi/common/NS.h \
200         smartapi/common/OntologyCache.h \
201         smartapi/common/PROPERTY.h \
202         smartapi/common/RESOURCE.h \
203         smartapi/common/SERIALIZATION.h \
204         smartapi/common/SmartAPICrypto.h \
205         smartapi/common/STATUSCODE.h \
206         smartapi/common/ObjectPrinter.h \
207         smartapi/common/UnitConverter.h \
208         smartapi/common/CurrencyConverter.h \
209         smartapi/common/CurrencyConverterFixerIO.h \
210         smartapi/common/Tools.h \
211         smartapi/common/URLs.h \
212         smartapi/common/ACTIVITIES.h \
213         smartapi/common/VARIANT.h \
214         smartapi/exceptions/ArgumentNullException.h \
215         smartapi/exceptions/IllegalCountryCodeException.h \
216         smartapi/exceptions/InsufficientDataException.h \
217         smartapi/exceptions/InvalidDataException.h \
218         smartapi/exceptions/NotFoundException.h \
219         smartapi/exceptions/VerifyException.h \
220         smartapi/factory/ActivityFactory.h \
221         smartapi/factory/Factory.h \
222         smartapi/factory/ModelFactory.h \
223         smartapi/factory/NotificationFactory.h \
224         smartapi/factory/RequestFactory.h \
225         smartapi/factory/ResponseFactory.h \
226         smartapi/factory/TransactionFactory.h \
227         smartapi/model/Ability.h \
228         smartapi/model/AbstractEntity.h \
229         smartapi/model/Account.h \
230         smartapi/model/AccountAction.h \
231         smartapi/model/AccountTransaction.h \
232         smartapi/model/Activity.h \
233         smartapi/model/Address.h \
234         smartapi/model/Authorization.h \
235         smartapi/model/Availability.h \
236         smartapi/model/Capacity.h \
237         smartapi/model/Classification.h \
238         smartapi/model/Condition.h \
239         smartapi/model/Contract.h \
240         smartapi/model/Controllability.h \
241         smartapi/model/Coordinates.h \
242         smartapi/model/Device.h \
243         smartapi/model/Direction.h \
244         smartapi/model/Entity.h \
245         smartapi/model/Enumeration.h \
246         smartapi/model/Error.h \
247         smartapi/model/Evaluation.h \
248         smartapi/model/Grading.h \
249         smartapi/model/GrObj.h \
250         smartapi/model/Group.h \
251         smartapi/model/HeartBeat.h \
252         smartapi/model/Input.h \
253         smartapi/model/InterfaceAddress.h \
254         smartapi/model/Map.h \
255         smartapi/model/Message.h \
256         smartapi/model/Notification.h \
257         smartapi/model/Obj.h \
258         smartapi/model/Obj.tcc \
259         smartapi/model/Offering.h \
260         smartapi/model/Organization.h \
261         smartapi/model/Orientation.h \
262         smartapi/model/Output.h \
263         smartapi/model/Parameter.h \
264         smartapi/model/Person.h \
265         smartapi/model/PhysicalEntity.h \
266         smartapi/model/PriceSpecification.h \
267         smartapi/model/Provenance.h \
268         smartapi/model/Request.h \
269         smartapi/model/Response.h \
270         smartapi/model/Restriction.h \
271         smartapi/model/Ring.h \
272         smartapi/model/Route.h \
273         smartapi/model/Service.h \
274         smartapi/model/ServiceProvider.h \
275         smartapi/model/Size.h \
276         smartapi/model/SomeItems.h \
277         smartapi/model/Status.h \
278         smartapi/model/SubscriptionPriceSpecification.h \
279         smartapi/model/SystemOfInterest.h \
280         smartapi/model/TemporalContext.h \
281         smartapi/model/TimeSeries.h \
282         smartapi/model/Transaction.h \
283         smartapi/model/TypeAndQuantityNode.h \
284         smartapi/model/UnitPriceSpecification.h \
285         smartapi/model/Validity.h \
286         smartapi/model/ValueObject.h \
287         smartapi/model/Velocity.h \
288         smartapi/model/Voucher.h \
289         smartapi/model/Waypoint.h \
290         smartapi/model/Waypoints.h \
291         smartapi/model/Zone.h \
292         smartapi/model/PriceListSpecification.h \
293         smartapi/model/DependentPriceSpecification.h \
294         smartapi/model/TimeDependentPriceSpecification.h \
295         smartapi/model/PropertyDependentPriceSpecification.h \
296         smartapi/model/LocationDependentPriceSpecification.h \
297         smartapi/model/DurationDependentPriceSpecification.h \
298         smartapi/model/Calculable.h \
299         smartapi/model/CalculationMethod.h \
300         smartapi/model/LinearCalculation.h \
301         smartapi/model/TravelDistanceDependentPriceSpecification.h \
302         smartapi/model/DistanceDependentPriceSpecification.h \
303         smartapi/model/ScriptDependentPriceSpecification.h \
304         smartapi/model/ZoneDependentPriceSpecification.h \
305         smartapi/model/ZonePopulationDependentPriceSpecification.h \
306         smartapi/model/ZoneTravelDependentPriceSpecification.h \
307         smartapi/model/TravelDistanceDurationDependentPriceSpecification.h \
308         smartapi/model/ZoneTravelDurationDependentPriceSpecification.h \
309         smartapi/model/DurationAtDistanceDependentPriceSpecification.h \
310         smartapi/model/DurationAtZoneDependentPriceSpecification.h \
311         smartapi/model/TimeDependentPriceListSpecification.h \
312         smartapi/model/ObjectOperationDependentPriceSpecification.h \
313         smartapi/model/License.h \
314         smartapi/rdf/PropertyListItem.h \
315         smartapi/rdf/PropertyList.h \
316         smartapi/rdf/PropertyList.tcc \
317         smartapi/rdf/GraphItem.h \
318         smartapi/rdf/ItemizedList.h \
319         smartapi/rdf/LinkedList.h \
320         smartapi/rdf/List.h \
321         smartapi/rdf/Literal.h \
322         smartapi/rdf/Model.h \
323         smartapi/rdf/NudeList.h \
324         smartapi/rdf/OrderedList.h \
325         smartapi/rdf/Property.h \
326         smartapi/rdf/RDFNode.h \
327         smartapi/rdf/Resource.h \
328         smartapi/rdf/Resource.tcc \
329         smartapi/rdf/Statement.h \
330         smartapi/rdf/Variant.h
331
332
333
334 DESTDIR = lib
335 OBJECTS_DIR = objects
336 MOC_DIR = MOCs