CMakeLists.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ################################################################################
  2. # HPCC SYSTEMS software Copyright (C) 2016 HPCC Systems®.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ################################################################################
  16. # Component: logginglib
  17. project( logginglib )
  18. include(${HPCC_SOURCE_DIR}/esp/scm/espscm.cmake)
  19. include_directories (
  20. ${HPCC_SOURCE_DIR}/system/include
  21. ${HPCC_SOURCE_DIR}/system/jlib
  22. ${HPCC_SOURCE_DIR}/system/xmllib
  23. ${HPCC_SOURCE_DIR}/system/security/shared #seclib.hpp in generated/ws_loggingservice_esp.ipp
  24. ${HPCC_SOURCE_DIR}/esp/platform #EspCoreErrors
  25. ${HPCC_SOURCE_DIR}/esp/bindings #mime.hpp in generated/ws_loggingservice_esp.ipp
  26. ${HPCC_SOURCE_DIR}/esp/bindings/SOAP/xpp #XmlPullParser.h in generated/ws_loggingservice_esp.ipp
  27. ${HPCC_SOURCE_DIR}/esp/bindings/SOAP/Platform #CSoapRequestBinding
  28. ${HPCC_SOURCE_DIR}/esp/clients #edwin.h in generated/ws_loggingservice.esp
  29. ${HPCC_SOURCE_DIR}/common/thorhelper
  30. )
  31. ADD_DEFINITIONS ( -D_USRDLL -DLOGGINGCOMMON_EXPORTS )
  32. set ( SRCS
  33. ${ESPSCM_GENERATED_DIR}/ws_loggingservice_esp.cpp
  34. ${HPCC_SOURCE_DIR}/esp/logging/logginglib/datafieldmap.cpp
  35. ${HPCC_SOURCE_DIR}/esp/logging/logginglib/compressutil.cpp
  36. ${HPCC_SOURCE_DIR}/esp/logging/logginglib/loggingagentbase.cpp
  37. ${HPCC_SOURCE_DIR}/esp/logging/logginglib/LogSerializer.cpp
  38. ${HPCC_SOURCE_DIR}/esp/logging/logginglib/LogFailSafe.cpp
  39. ${HPCC_SOURCE_DIR}/esp/logging/logginglib/logthread.cpp
  40. )
  41. HPCC_ADD_LIBRARY( logginglib SHARED ${SRCS} )
  42. install ( TARGETS logginglib RUNTIME DESTINATION ${EXEC_DIR} LIBRARY DESTINATION ${LIB_DIR} )
  43. add_dependencies ( logginglib jlib espscm)
  44. target_link_libraries ( logginglib
  45. jlib
  46. xmllib
  47. esphttp
  48. )