diff options
author | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2022-09-01 05:47:31 +0300 |
---|---|---|
committer | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2022-09-01 05:47:31 +0300 |
commit | e83b936566d59e48df0aa4c414beaf0c4519c772 (patch) | |
tree | 43d715760743f81e2060d6ee6f4d4c9d8693751e /contrib/libs/llvm12 | |
parent | fc8096bf8173562afc5da58dbbb019af2ce1ee2f (diff) | |
download | ydb-e83b936566d59e48df0aa4c414beaf0c4519c772.tar.gz |
Update external build system generation utility
* [cmake] Hierarchical add_subdirectroy structure
* [cmake] Support for same file compilation multiple times with different flags
Diffstat (limited to 'contrib/libs/llvm12')
18 files changed, 199 insertions, 26 deletions
diff --git a/contrib/libs/llvm12/CMakeLists.txt b/contrib/libs/llvm12/CMakeLists.txt index e664110afd..ee668ea149 100644 --- a/contrib/libs/llvm12/CMakeLists.txt +++ b/contrib/libs/llvm12/CMakeLists.txt @@ -6,6 +6,9 @@ # original buildsystem will not be accepted. +add_subdirectory(include) +add_subdirectory(lib) +add_subdirectory(utils) add_library(contrib-libs-llvm12 INTERFACE) target_include_directories(contrib-libs-llvm12 INTERFACE diff --git a/contrib/libs/llvm12/lib/Bitcode/CMakeLists.txt b/contrib/libs/llvm12/lib/Bitcode/CMakeLists.txt new file mode 100644 index 0000000000..2c4b89cdf6 --- /dev/null +++ b/contrib/libs/llvm12/lib/Bitcode/CMakeLists.txt @@ -0,0 +1,10 @@ + +# 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_subdirectory(Reader) +add_subdirectory(Writer) diff --git a/contrib/libs/llvm12/lib/Bitstream/CMakeLists.txt b/contrib/libs/llvm12/lib/Bitstream/CMakeLists.txt new file mode 100644 index 0000000000..cd07ec46be --- /dev/null +++ b/contrib/libs/llvm12/lib/Bitstream/CMakeLists.txt @@ -0,0 +1,9 @@ + +# 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_subdirectory(Reader) diff --git a/contrib/libs/llvm12/lib/CMakeLists.txt b/contrib/libs/llvm12/lib/CMakeLists.txt new file mode 100644 index 0000000000..7eb0a3dec9 --- /dev/null +++ b/contrib/libs/llvm12/lib/CMakeLists.txt @@ -0,0 +1,30 @@ + +# 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_subdirectory(Analysis) +add_subdirectory(AsmParser) +add_subdirectory(BinaryFormat) +add_subdirectory(Bitcode) +add_subdirectory(Bitstream) +add_subdirectory(CodeGen) +add_subdirectory(DebugInfo) +add_subdirectory(Demangle) +add_subdirectory(ExecutionEngine) +add_subdirectory(Frontend) +add_subdirectory(IR) +add_subdirectory(IRReader) +add_subdirectory(Linker) +add_subdirectory(MC) +add_subdirectory(Object) +add_subdirectory(ProfileData) +add_subdirectory(Remarks) +add_subdirectory(Support) +add_subdirectory(TableGen) +add_subdirectory(Target) +add_subdirectory(TextAPI) +add_subdirectory(Transforms) diff --git a/contrib/libs/llvm12/lib/CodeGen/CMakeLists.txt b/contrib/libs/llvm12/lib/CodeGen/CMakeLists.txt index e9be0827ee..1fa45f425d 100644 --- a/contrib/libs/llvm12/lib/CodeGen/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/CodeGen/CMakeLists.txt @@ -6,6 +6,9 @@ # original buildsystem will not be accepted. +add_subdirectory(AsmPrinter) +add_subdirectory(GlobalISel) +add_subdirectory(SelectionDAG) add_library(llvm12-lib-CodeGen) target_compile_options(llvm12-lib-CodeGen PRIVATE diff --git a/contrib/libs/llvm12/lib/DebugInfo/CMakeLists.txt b/contrib/libs/llvm12/lib/DebugInfo/CMakeLists.txt new file mode 100644 index 0000000000..865d0ebbff --- /dev/null +++ b/contrib/libs/llvm12/lib/DebugInfo/CMakeLists.txt @@ -0,0 +1,13 @@ + +# 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_subdirectory(CodeView) +add_subdirectory(DWARF) +add_subdirectory(MSF) +add_subdirectory(PDB) +add_subdirectory(Symbolize) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.darwin.txt b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.darwin.txt new file mode 100644 index 0000000000..40aae59a90 --- /dev/null +++ b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.darwin.txt @@ -0,0 +1,36 @@ + +# 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_subdirectory(MCJIT) +add_subdirectory(RuntimeDyld) + +add_library(llvm12-lib-ExecutionEngine) +target_compile_options(llvm12-lib-ExecutionEngine PRIVATE + -Wno-everything +) +target_include_directories(llvm12-lib-ExecutionEngine PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine +) +target_link_libraries(llvm12-lib-ExecutionEngine PUBLIC + contrib-libs-cxxsupp + contrib-libs-llvm12 + libs-llvm12-include + lib-ExecutionEngine-RuntimeDyld + llvm12-lib-IR + llvm12-lib-MC + llvm12-lib-Object + llvm12-lib-Support + llvm12-lib-Target +) +target_sources(llvm12-lib-ExecutionEngine PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/ExecutionEngine.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/ExecutionEngineBindings.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/GDBRegistrationListener.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/SectionMemoryManager.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/TargetSelect.cpp +) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux.txt new file mode 100644 index 0000000000..74965dc236 --- /dev/null +++ b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux.txt @@ -0,0 +1,37 @@ + +# 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_subdirectory(MCJIT) +add_subdirectory(PerfJITEvents) +add_subdirectory(RuntimeDyld) + +add_library(llvm12-lib-ExecutionEngine) +target_compile_options(llvm12-lib-ExecutionEngine PRIVATE + -Wno-everything +) +target_include_directories(llvm12-lib-ExecutionEngine PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine +) +target_link_libraries(llvm12-lib-ExecutionEngine PUBLIC + contrib-libs-cxxsupp + contrib-libs-llvm12 + libs-llvm12-include + lib-ExecutionEngine-RuntimeDyld + llvm12-lib-IR + llvm12-lib-MC + llvm12-lib-Object + llvm12-lib-Support + llvm12-lib-Target +) +target_sources(llvm12-lib-ExecutionEngine PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/ExecutionEngine.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/ExecutionEngineBindings.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/GDBRegistrationListener.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/SectionMemoryManager.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/TargetSelect.cpp +) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.txt b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.txt index e26a6ef664..fc7b1ee73c 100644 --- a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.txt @@ -6,29 +6,8 @@ # original buildsystem will not be accepted. - -add_library(llvm12-lib-ExecutionEngine) -target_compile_options(llvm12-lib-ExecutionEngine PRIVATE - -Wno-everything -) -target_include_directories(llvm12-lib-ExecutionEngine PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine -) -target_link_libraries(llvm12-lib-ExecutionEngine PUBLIC - contrib-libs-cxxsupp - contrib-libs-llvm12 - libs-llvm12-include - lib-ExecutionEngine-RuntimeDyld - llvm12-lib-IR - llvm12-lib-MC - llvm12-lib-Object - llvm12-lib-Support - llvm12-lib-Target -) -target_sources(llvm12-lib-ExecutionEngine PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/ExecutionEngine.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/ExecutionEngineBindings.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/GDBRegistrationListener.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/SectionMemoryManager.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/TargetSelect.cpp -) +if (APPLE) + include(CMakeLists.darwin.txt) +elseif (UNIX AND NOT APPLE) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/llvm12/lib/Frontend/CMakeLists.txt b/contrib/libs/llvm12/lib/Frontend/CMakeLists.txt new file mode 100644 index 0000000000..8c1b874e3c --- /dev/null +++ b/contrib/libs/llvm12/lib/Frontend/CMakeLists.txt @@ -0,0 +1,9 @@ + +# 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_subdirectory(OpenMP) diff --git a/contrib/libs/llvm12/lib/MC/CMakeLists.txt b/contrib/libs/llvm12/lib/MC/CMakeLists.txt index e30f70c19b..9daf06006e 100644 --- a/contrib/libs/llvm12/lib/MC/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/MC/CMakeLists.txt @@ -6,6 +6,8 @@ # original buildsystem will not be accepted. +add_subdirectory(MCDisassembler) +add_subdirectory(MCParser) add_library(llvm12-lib-MC) target_compile_options(llvm12-lib-MC PRIVATE diff --git a/contrib/libs/llvm12/lib/Target/CMakeLists.txt b/contrib/libs/llvm12/lib/Target/CMakeLists.txt index 0506e18714..a2d54963f0 100644 --- a/contrib/libs/llvm12/lib/Target/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/Target/CMakeLists.txt @@ -6,6 +6,7 @@ # original buildsystem will not be accepted. +add_subdirectory(X86) add_library(llvm12-lib-Target) target_compile_options(llvm12-lib-Target PRIVATE diff --git a/contrib/libs/llvm12/lib/Target/X86/CMakeLists.txt b/contrib/libs/llvm12/lib/Target/X86/CMakeLists.txt index 82de35d9e8..ed1fc6d50e 100644 --- a/contrib/libs/llvm12/lib/Target/X86/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/Target/X86/CMakeLists.txt @@ -6,6 +6,10 @@ # original buildsystem will not be accepted. +add_subdirectory(AsmParser) +add_subdirectory(Disassembler) +add_subdirectory(MCTargetDesc) +add_subdirectory(TargetInfo) add_library(lib-Target-X86) target_compile_options(lib-Target-X86 PRIVATE diff --git a/contrib/libs/llvm12/lib/TextAPI/CMakeLists.txt b/contrib/libs/llvm12/lib/TextAPI/CMakeLists.txt new file mode 100644 index 0000000000..e510446281 --- /dev/null +++ b/contrib/libs/llvm12/lib/TextAPI/CMakeLists.txt @@ -0,0 +1,9 @@ + +# 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_subdirectory(MachO) diff --git a/contrib/libs/llvm12/lib/Transforms/CMakeLists.txt b/contrib/libs/llvm12/lib/Transforms/CMakeLists.txt new file mode 100644 index 0000000000..bc8c9460d5 --- /dev/null +++ b/contrib/libs/llvm12/lib/Transforms/CMakeLists.txt @@ -0,0 +1,17 @@ + +# 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_subdirectory(AggressiveInstCombine) +add_subdirectory(CFGuard) +add_subdirectory(IPO) +add_subdirectory(InstCombine) +add_subdirectory(Instrumentation) +add_subdirectory(ObjCARC) +add_subdirectory(Scalar) +add_subdirectory(Utils) +add_subdirectory(Vectorize) diff --git a/contrib/libs/llvm12/utils/CMakeLists.txt b/contrib/libs/llvm12/utils/CMakeLists.txt new file mode 100644 index 0000000000..96eb85cbfb --- /dev/null +++ b/contrib/libs/llvm12/utils/CMakeLists.txt @@ -0,0 +1,9 @@ + +# 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_subdirectory(TableGen) diff --git a/contrib/libs/llvm12/utils/TableGen/CMakeLists.darwin.txt b/contrib/libs/llvm12/utils/TableGen/CMakeLists.darwin.txt index fbd169466f..a90cbd7db3 100644 --- a/contrib/libs/llvm12/utils/TableGen/CMakeLists.darwin.txt +++ b/contrib/libs/llvm12/utils/TableGen/CMakeLists.darwin.txt @@ -6,6 +6,7 @@ # original buildsystem will not be accepted. +add_subdirectory(GlobalISel) add_executable(llvm-tblgen) target_compile_options(llvm-tblgen PRIVATE diff --git a/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux.txt b/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux.txt index b21240ea2f..8482d8f5bc 100644 --- a/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux.txt +++ b/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux.txt @@ -6,6 +6,7 @@ # original buildsystem will not be accepted. +add_subdirectory(GlobalISel) add_executable(llvm-tblgen) target_compile_options(llvm-tblgen PRIVATE |