CMakeLists.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. # -*- cmake -*-
  2. project(llmessage)
  3. include(00-Common)
  4. include(Json)
  5. include(LLCommon)
  6. include(LLFilesystem)
  7. include(LLMath)
  8. include(LLMessage)
  9. include(LLXML)
  10. include_directories(${CMAKE_CURRENT_SOURCE_DIR})
  11. set(llmessage_SOURCE_FILES
  12. llassetstorage.cpp
  13. llavatarnamecache.cpp
  14. llbuffer.cpp
  15. llbufferstream.cpp
  16. llcachename.cpp
  17. llcircuit.cpp
  18. llclassifiedflags.cpp
  19. llcoproceduremanager.cpp
  20. llcorebufferarray.cpp
  21. llcorebufferstream.cpp
  22. llcorehttpcommon.cpp
  23. llcorehttpheaders.cpp
  24. llcorehttplibcurl.cpp
  25. llcorehttpopcancel.cpp
  26. llcorehttpoperation.cpp
  27. llcorehttpoprequest.cpp
  28. llcorehttpopsetget.cpp
  29. llcorehttpoptions.cpp
  30. llcorehttppolicy.cpp
  31. llcorehttppolicyclass.cpp
  32. llcorehttppolicyglobal.cpp
  33. llcorehttpreplyqueue.cpp
  34. llcorehttprequest.cpp
  35. llcorehttprequestqueue.cpp
  36. llcorehttpresponse.cpp
  37. llcorehttpservice.cpp
  38. llcorehttputil.cpp
  39. lldatapacker.cpp
  40. lldispatcher.cpp
  41. llexperiencecache.cpp
  42. llhost.cpp
  43. llhttpconstants.cpp
  44. llhttpnode.cpp
  45. llhttpretrypolicy.cpp
  46. llhttpsdhandler.cpp
  47. llinstantmessage.cpp
  48. lliopipe.cpp
  49. lliosocket.cpp
  50. llmessage.cpp
  51. llmessageconfig.cpp
  52. llmessagereader.cpp
  53. llmessagetemplate.cpp
  54. llmessagetemplateparser.cpp
  55. llnamevalue.cpp
  56. llnet.cpp
  57. llpacketack.cpp
  58. llpacketring.cpp
  59. llpartdata.cpp
  60. llpatch_code.cpp
  61. llpatch_dct.cpp
  62. llproxy.cpp
  63. llpumpio.cpp
  64. llsdmessagebuilder.cpp
  65. llsdmessagereader.cpp
  66. lltemplatemessagebuilder.cpp
  67. lltemplatemessagereader.cpp
  68. llthrottle.cpp
  69. lltransfermanager.cpp
  70. lltransfersourceasset.cpp
  71. lltransfersourcefile.cpp
  72. lltransfertargetfile.cpp
  73. lltransfertargetvfile.cpp
  74. llurlhistory.cpp
  75. lluserauth.cpp
  76. llxfer.cpp
  77. llxfer_file.cpp
  78. llxfermanager.cpp
  79. llxfer_mem.cpp
  80. llxfer_vfile.cpp
  81. llxmlrpctransaction.cpp
  82. message_prehash.cpp
  83. )
  84. set(llmessage_HEADER_FILES
  85. CMakeLists.txt
  86. llassetstorage.h
  87. llavatarnamecache.h
  88. llbuffer.h
  89. llbufferstream.h
  90. llcachename.h
  91. llcircuit.h
  92. llclassifiedflags.h
  93. llcoproceduremanager.h
  94. llcorebufferarray.h
  95. llcorebufferstream.h
  96. llcorehttpcommon.h
  97. llcorehttphandler.h
  98. llcorehttpheaders.h
  99. llcorehttpinternal.h
  100. llcorehttplibcurl.h
  101. llcorehttpopcancel.h
  102. llcorehttpoperation.h
  103. llcorehttpoprequest.h
  104. llcorehttpopsetget.h
  105. llcorehttpoptions.h
  106. llcorehttppolicy.h
  107. llcorehttppolicyclass.h
  108. llcorehttppolicyglobal.h
  109. llcorehttpreplyqueue.h
  110. llcorehttprequest.h
  111. llcorehttprequestqueue.h
  112. llcorehttpresponse.h
  113. llcorehttpservice.h
  114. llcorehttputil.h
  115. llcoremutex.h
  116. llcorerefcounted.h
  117. lldatapacker.h
  118. lldbstrings.h
  119. lldispatcher.h
  120. llexperiencecache.h
  121. llextendedstatus.h
  122. llhost.h
  123. llhttpconstants.h
  124. llhttpnode.h
  125. llhttpretrypolicy.h
  126. llhttpsdhandler.h
  127. llinstantmessage.h
  128. lliopipe.h
  129. lliosocket.h
  130. llmessage.h
  131. llmessagebuilder.h
  132. llmessageconfig.h
  133. llmessagereader.h
  134. llmessagetemplate.h
  135. llmessagetemplateparser.h
  136. llnamevalue.h
  137. llnet.h
  138. llpacketack.h
  139. llpacketring.h
  140. llpartdata.h
  141. llpatch_code.h
  142. llpatch_dct.h
  143. llproxy.h
  144. llpumpio.h
  145. llqueryflags.h
  146. llregionflags.h
  147. llsdmessagebuilder.h
  148. llsdmessagereader.h
  149. llteleportflags.h
  150. lltemplatemessagebuilder.h
  151. lltemplatemessagereader.h
  152. llthrottle.h
  153. lltransfermanager.h
  154. lltransfersourceasset.h
  155. lltransfersourcefile.h
  156. lltransfertargetfile.h
  157. lltransfertargetvfile.h
  158. llurlhistory.h
  159. lluserauth.h
  160. llxfer.h
  161. llxfermanager.h
  162. llxfer_file.h
  163. llxfer_mem.h
  164. llxfer_vfile.h
  165. llxmlrpctransaction.h
  166. message_prehash.h
  167. )
  168. set_source_files_properties(${llmessage_HEADER_FILES}
  169. PROPERTIES HEADER_FILE_ONLY TRUE)
  170. if (DARWIN OR LINUX)
  171. # Boost headers define unused members in condition_variable so...
  172. set_source_files_properties(${llmessage_SOURCE_FILES}
  173. PROPERTIES COMPILE_FLAGS -Wno-unused-variable)
  174. endif (DARWIN OR LINUX)
  175. list(APPEND llmessage_SOURCE_FILES ${llmessage_HEADER_FILES})
  176. add_library (llmessage ${llmessage_SOURCE_FILES})
  177. add_dependencies(llmessage prepare)
  178. target_link_libraries(
  179. llmessage
  180. ${CURL_LIBRARIES}
  181. ${NGHTTP2_LIBRARIES}
  182. ${OPENSSL_LIBRARIES}
  183. ${CRYPTO_LIBRARIES}
  184. ${JSONCPP_LIBRARIES}
  185. )
  186. if (NOT ${CMAKE_VERSION} VERSION_LESS "3.16.0")
  187. target_precompile_headers(llmessage PRIVATE <linden_common.h> <llfasttimer.h> <hbfastmap.h>)
  188. if (USEUNITYBUILD)
  189. # For some reason, cmake (at least v3.20.0) seems to refuse to use unity
  190. # build for llmessage, even when asked to... HB
  191. set_target_properties(llmessage PROPERTIES UNITY_BUILD ON)
  192. endif (USEUNITYBUILD)
  193. endif ()
  194. get_directory_property(ALLDEFINES COMPILE_DEFINITIONS)
  195. message("llmessage COMPILE_DEFINITIONS = ${ALLDEFINES}")