diff options
author | thegeorg <thegeorg@yandex-team.com> | 2022-10-24 21:10:49 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2022-10-24 21:10:49 +0300 |
commit | d7c3d059f9dcb74cd142a940c0ebfc6998871ddd (patch) | |
tree | 41af92889d6a49d36931a93b50a30e918e058557 /contrib/libs/poco/JSON | |
parent | 41e8dfe1db3b9e32a7d1497494d73fbb9f8aec00 (diff) | |
download | ydb-d7c3d059f9dcb74cd142a940c0ebfc6998871ddd.tar.gz |
Drop some add_defines=False setting from yamaker projects
Diffstat (limited to 'contrib/libs/poco/JSON')
-rw-r--r-- | contrib/libs/poco/JSON/CMakeLists.darwin.txt | 44 | ||||
-rw-r--r-- | contrib/libs/poco/JSON/CMakeLists.linux.txt | 45 | ||||
-rw-r--r-- | contrib/libs/poco/JSON/CMakeLists.txt | 36 |
3 files changed, 94 insertions, 31 deletions
diff --git a/contrib/libs/poco/JSON/CMakeLists.darwin.txt b/contrib/libs/poco/JSON/CMakeLists.darwin.txt new file mode 100644 index 0000000000..4785ba8cc3 --- /dev/null +++ b/contrib/libs/poco/JSON/CMakeLists.darwin.txt @@ -0,0 +1,44 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-poco-JSON) +target_compile_options(libs-poco-JSON PRIVATE + -DPOCO_ENABLE_CPP11 + -DPOCO_ENABLE_CPP14 + -DPOCO_NO_AUTOMATIC_LIBS + -DPOCO_UNBUNDLED + -DPOCO_OS_FAMILY_UNIX + -Wno-everything +) +target_include_directories(libs-poco-JSON PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/include +) +target_include_directories(libs-poco-JSON PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src +) +target_link_libraries(libs-poco-JSON PUBLIC + contrib-libs-cxxsupp + libs-poco-Foundation +) +target_sources(libs-poco-JSON PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Array.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Handler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/JSONException.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Object.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/ParseHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Parser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/ParserImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/PrintHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Query.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Stringifier.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Template.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/TemplateCache.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/pdjson.c +) diff --git a/contrib/libs/poco/JSON/CMakeLists.linux.txt b/contrib/libs/poco/JSON/CMakeLists.linux.txt new file mode 100644 index 0000000000..a84a5cda67 --- /dev/null +++ b/contrib/libs/poco/JSON/CMakeLists.linux.txt @@ -0,0 +1,45 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-poco-JSON) +target_compile_options(libs-poco-JSON PRIVATE + -DPOCO_ENABLE_CPP11 + -DPOCO_ENABLE_CPP14 + -DPOCO_NO_AUTOMATIC_LIBS + -DPOCO_UNBUNDLED + -DPOCO_OS_FAMILY_UNIX + -DPOCO_HAVE_FD_EPOLL + -Wno-everything +) +target_include_directories(libs-poco-JSON PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/include +) +target_include_directories(libs-poco-JSON PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src +) +target_link_libraries(libs-poco-JSON PUBLIC + contrib-libs-cxxsupp + libs-poco-Foundation +) +target_sources(libs-poco-JSON PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Array.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Handler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/JSONException.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Object.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/ParseHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Parser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/ParserImpl.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/PrintHandler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Query.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Stringifier.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Template.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/TemplateCache.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/pdjson.c +) diff --git a/contrib/libs/poco/JSON/CMakeLists.txt b/contrib/libs/poco/JSON/CMakeLists.txt index 121ceef23a..79468a5d8d 100644 --- a/contrib/libs/poco/JSON/CMakeLists.txt +++ b/contrib/libs/poco/JSON/CMakeLists.txt @@ -6,34 +6,8 @@ # original buildsystem will not be accepted. - -add_library(libs-poco-JSON) -target_compile_options(libs-poco-JSON PRIVATE - -Wno-everything -) -target_include_directories(libs-poco-JSON PUBLIC - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/include -) -target_include_directories(libs-poco-JSON PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src -) -target_link_libraries(libs-poco-JSON PUBLIC - contrib-libs-cxxsupp - libs-poco-Foundation -) -target_sources(libs-poco-JSON PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Array.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Handler.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/JSONException.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Object.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/ParseHandler.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Parser.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/ParserImpl.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/PrintHandler.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Query.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Stringifier.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/Template.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/TemplateCache.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/poco/JSON/src/pdjson.c -) +if (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() |