CMakeLists.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. )
  30. ADD_DEFINITIONS ( -D_USRDLL -DLOGGINGCOMMON_EXPORTS )
  31. set ( SRCS
  32. ${ESPSCM_GENERATED_DIR}/ws_loggingservice_esp.cpp
  33. ${HPCC_SOURCE_DIR}/esp/logging/logginglib/datafieldmap.cpp
  34. ${HPCC_SOURCE_DIR}/esp/logging/logginglib/compressutil.cpp
  35. ${HPCC_SOURCE_DIR}/esp/logging/logginglib/loggingagentbase.cpp
  36. ${HPCC_SOURCE_DIR}/esp/logging/logginglib/LogSerializer.cpp
  37. ${HPCC_SOURCE_DIR}/esp/logging/logginglib/LogFailSafe.cpp
  38. ${HPCC_SOURCE_DIR}/esp/logging/logginglib/logthread.cpp
  39. )
  40. HPCC_ADD_LIBRARY( logginglib SHARED ${SRCS} )
  41. install ( TARGETS logginglib RUNTIME DESTINATION ${EXEC_DIR} LIBRARY DESTINATION ${LIB_DIR} )
  42. add_dependencies ( logginglib jlib espscm)
  43. target_link_libraries ( logginglib
  44. jlib
  45. xmllib
  46. esphttp
  47. )