PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llmessage/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 262 lines | 243 code | 15 blank | 4 comment | 1 complexity | 088746bf41d31e47d96502cb49b0b8b4 MD5 | raw file
  1# -*- cmake -*-
  2
  3project(llmessage)
  4
  5include(00-Common)
  6include(GoogleMock)
  7include(LLAddBuildTest)
  8include(LLCommon)
  9include(LLMath)
 10include(LLMessage)
 11include(LLVFS)
 12include(LLAddBuildTest)
 13include(Python)
 14include(Tut)
 15include(Python)
 16
 17include_directories (${CMAKE_CURRENT_SOURCE_DIR})
 18
 19include_directories(
 20    ${LLCOMMON_INCLUDE_DIRS}
 21    ${LLMATH_INCLUDE_DIRS}
 22    ${LLMESSAGE_INCLUDE_DIRS}
 23    ${LLVFS_INCLUDE_DIRS}
 24    )
 25
 26set(llmessage_SOURCE_FILES
 27    llares.cpp
 28    llareslistener.cpp
 29    llassetstorage.cpp
 30    llavatarnamecache.cpp
 31    llblowfishcipher.cpp
 32    llbuffer.cpp
 33    llbufferstream.cpp
 34    llcachename.cpp
 35    llchainio.cpp
 36    llcircuit.cpp
 37    llclassifiedflags.cpp
 38    llcurl.cpp
 39    lldatapacker.cpp
 40    lldispatcher.cpp
 41    llfiltersd2xmlrpc.cpp
 42    llhost.cpp
 43    llhttpassetstorage.cpp
 44    llhttpclient.cpp
 45    llhttpclientadapter.cpp
 46    llhttpnode.cpp
 47    llhttpsender.cpp
 48    llinstantmessage.cpp
 49    lliobuffer.cpp
 50    lliohttpserver.cpp
 51    lliopipe.cpp
 52    lliosocket.cpp
 53    llioutil.cpp
 54    llmail.cpp
 55    llmessagebuilder.cpp
 56    llmessageconfig.cpp
 57    llmessagereader.cpp
 58    llmessagetemplate.cpp
 59    llmessagetemplateparser.cpp
 60    llmessagethrottle.cpp
 61    llmime.cpp
 62    llnamevalue.cpp
 63    llnullcipher.cpp
 64    llpacketack.cpp
 65    llpacketbuffer.cpp
 66    llpacketring.cpp
 67    llpartdata.cpp
 68    llproxy.cpp
 69    llpumpio.cpp
 70    llregionpresenceverifier.cpp
 71    llsdappservices.cpp
 72    llsdhttpserver.cpp
 73    llsdmessage.cpp
 74    llsdmessagebuilder.cpp
 75    llsdmessagereader.cpp
 76    llsdrpcclient.cpp
 77    llsdrpcserver.cpp
 78    llservicebuilder.cpp
 79    llservice.cpp
 80    llstoredmessage.cpp
 81    lltemplatemessagebuilder.cpp
 82    lltemplatemessagedispatcher.cpp
 83    lltemplatemessagereader.cpp
 84    llthrottle.cpp
 85    lltransfermanager.cpp
 86    lltransfersourceasset.cpp
 87    lltransfersourcefile.cpp
 88    lltransfertargetfile.cpp
 89    lltransfertargetvfile.cpp
 90    lltrustedmessageservice.cpp
 91    llurlrequest.cpp
 92    lluseroperation.cpp
 93    llxfer.cpp
 94    llxfer_file.cpp
 95    llxfermanager.cpp
 96    llxfer_mem.cpp
 97    llxfer_vfile.cpp
 98    llxorcipher.cpp
 99    machine.cpp
100    message.cpp
101    message_prehash.cpp
102    message_string_table.cpp
103    net.cpp
104    partsyspacket.cpp
105    patch_code.cpp
106    patch_dct.cpp
107    patch_idct.cpp
108    sound_ids.cpp
109    )
110
111set(llmessage_HEADER_FILES
112    CMakeLists.txt
113
114    llares.h
115    llareslistener.h
116    llassetstorage.h
117    llavatarnamecache.h
118    llblowfishcipher.h
119    llbuffer.h
120    llbufferstream.h
121    llcachename.h
122    llchainio.h
123    llcipher.h
124    llcircuit.h
125    llclassifiedflags.h
126    llcurl.h
127    lldatapacker.h
128    lldbstrings.h
129    lldispatcher.h
130    lleventflags.h
131    llfiltersd2xmlrpc.h
132    llfollowcamparams.h
133    llhost.h
134    llhttpassetstorage.h
135    llhttpclient.h
136    llhttpclientinterface.h
137    llhttpclientadapter.h
138    llhttpnode.h
139    llhttpnodeadapter.h
140    llhttpsender.h
141    llinstantmessage.h
142    llinvite.h
143    lliobuffer.h
144    lliohttpserver.h
145    lliopipe.h
146    lliosocket.h
147    llioutil.h
148    llloginflags.h
149    llmail.h
150    llmessagebuilder.h
151    llmessageconfig.h
152    llmessagereader.h
153    llmessagetemplate.h
154    llmessagetemplateparser.h
155    llmessagethrottle.h
156    llmime.h
157    llmsgvariabletype.h
158    llnamevalue.h
159    llnullcipher.h
160    llpacketack.h
161    llpacketbuffer.h
162    llpacketring.h
163    llpartdata.h
164    llpumpio.h
165    llproxy.h
166    llqueryflags.h
167    llregionflags.h
168    llregionhandle.h
169    llregionpresenceverifier.h
170    llsdappservices.h
171    llsdhttpserver.h
172    llsdmessage.h
173    llsdmessagebuilder.h
174    llsdmessagereader.h
175    llsdrpcclient.h
176    llsdrpcserver.h
177    llservice.h
178    llservicebuilder.h
179    llstoredmessage.h
180    lltaskname.h
181    llteleportflags.h
182    lltemplatemessagebuilder.h
183    lltemplatemessagedispatcher.h
184    lltemplatemessagereader.h
185    llthrottle.h
186    lltransfermanager.h
187    lltransfersourceasset.h
188    lltransfersourcefile.h
189    lltransfertargetfile.h
190    lltransfertargetvfile.h
191    lltrustedmessageservice.h
192    llurlrequest.h
193    lluseroperation.h
194    llvehicleparams.h
195    llxfer.h
196    llxfermanager.h
197    llxfer_file.h
198    llxfer_mem.h
199    llxfer_vfile.h
200    llxorcipher.h
201    machine.h
202    mean_collision_data.h
203    message.h
204    message_prehash.h
205    net.h
206    partsyspacket.h
207    patch_code.h
208    patch_dct.h
209    sound_ids.h
210    )
211
212set_source_files_properties(${llmessage_HEADER_FILES}
213                            PROPERTIES HEADER_FILE_ONLY TRUE)
214
215list(APPEND llmessage_SOURCE_FILES ${llmessage_HEADER_FILES})
216
217add_library (llmessage ${llmessage_SOURCE_FILES})
218target_link_libraries(
219  llmessage
220  ${CURL_LIBRARIES}
221  ${CARES_LIBRARIES}
222  ${OPENSSL_LIBRARIES}
223  ${CRYPTO_LIBRARIES}
224  ${XMLRPCEPI_LIBRARIES}
225  )
226
227# tests
228if (LL_TESTS)
229  SET(llmessage_TEST_SOURCE_FILES
230    # llhttpclientadapter.cpp
231    llmime.cpp
232    llnamevalue.cpp
233    lltrustedmessageservice.cpp
234    lltemplatemessagedispatcher.cpp
235      llregionpresenceverifier.cpp
236    )
237  LL_ADD_PROJECT_UNIT_TESTS(llmessage "${llmessage_TEST_SOURCE_FILES}")
238
239  #    set(TEST_DEBUG on)
240  set(test_libs
241    ${LLMESSAGE_LIBRARIES}
242    ${WINDOWS_LIBRARIES}
243    ${LLVFS_LIBRARIES}
244    ${LLMATH_LIBRARIES}
245    ${LLCOMMON_LIBRARIES}
246      ${GOOGLEMOCK_LIBRARIES}
247    )
248
249  LL_ADD_INTEGRATION_TEST(
250    llsdmessage
251    "llsdmessage.cpp"
252    "${test_libs}"
253    ${PYTHON_EXECUTABLE}
254    "${CMAKE_CURRENT_SOURCE_DIR}/tests/test_llsdmessage_peer.py"
255    )
256
257  LL_ADD_INTEGRATION_TEST(llavatarnamecache "" "${test_libs}")
258  LL_ADD_INTEGRATION_TEST(llhost "" "${test_libs}")
259  LL_ADD_INTEGRATION_TEST(llpartdata "" "${test_libs}")
260  LL_ADD_INTEGRATION_TEST(llxfer_file "" "${test_libs}")
261endif (LL_TESTS)
262