diff options
author | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-04-08 21:20:14 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-04-08 21:20:14 +0300 |
commit | d6efaab16218e74875dd94c978b659d867327aa4 (patch) | |
tree | 7b94679be430d5f7e311766882f371a57b17dca3 /contrib/libs/expat | |
parent | 928a92f82931e03961e4eac761c7f68d5d8070ba (diff) | |
download | ydb-d6efaab16218e74875dd94c978b659d867327aa4.tar.gz |
Add rule to generate cmake file. KIKIMR-14679
ref:520f7b10e2f41d081d1552c1ce75159826498334
Diffstat (limited to 'contrib/libs/expat')
-rw-r--r-- | contrib/libs/expat/CMakeLists.linux.txt | 22 | ||||
-rw-r--r-- | contrib/libs/expat/CMakeLists.txt | 17 |
2 files changed, 25 insertions, 14 deletions
diff --git a/contrib/libs/expat/CMakeLists.linux.txt b/contrib/libs/expat/CMakeLists.linux.txt new file mode 100644 index 0000000000..242054b589 --- /dev/null +++ b/contrib/libs/expat/CMakeLists.linux.txt @@ -0,0 +1,22 @@ + +# 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(contrib-libs-expat) +target_compile_options(contrib-libs-expat PRIVATE + -DHAVE_EXPAT_CONFIG_H +) +target_include_directories(contrib-libs-expat PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/expat + ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib +) +target_sources(contrib-libs-expat PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib/xmlparse.c + ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib/xmlrole.c + ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib/xmltok.c +) diff --git a/contrib/libs/expat/CMakeLists.txt b/contrib/libs/expat/CMakeLists.txt index 242054b589..c031ddb850 100644 --- a/contrib/libs/expat/CMakeLists.txt +++ b/contrib/libs/expat/CMakeLists.txt @@ -6,17 +6,6 @@ # original buildsystem will not be accepted. - -add_library(contrib-libs-expat) -target_compile_options(contrib-libs-expat PRIVATE - -DHAVE_EXPAT_CONFIG_H -) -target_include_directories(contrib-libs-expat PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/expat - ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib -) -target_sources(contrib-libs-expat PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib/xmlparse.c - ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib/xmlrole.c - ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib/xmltok.c -) +if (UNIX) + include(CMakeLists.linux.txt) +endif() |