annotate clang/lib/Basic/CMakeLists.txt @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 set(LLVM_LINK_COMPONENTS
anatofuz
parents:
diff changeset
2 Core
anatofuz
parents:
diff changeset
3 MC
anatofuz
parents:
diff changeset
4 Support
anatofuz
parents:
diff changeset
5 )
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 find_first_existing_vc_file("${LLVM_MAIN_SRC_DIR}" llvm_vc)
anatofuz
parents:
diff changeset
8 find_first_existing_vc_file("${CLANG_SOURCE_DIR}" clang_vc)
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 # The VC revision include that we want to generate.
anatofuz
parents:
diff changeset
11 set(version_inc "${CMAKE_CURRENT_BINARY_DIR}/VCSVersion.inc")
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 set(generate_vcs_version_script "${LLVM_CMAKE_PATH}/GenerateVersionFromVCS.cmake")
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 if(llvm_vc AND LLVM_APPEND_VC_REV)
anatofuz
parents:
diff changeset
16 set(llvm_source_dir ${LLVM_MAIN_SRC_DIR})
anatofuz
parents:
diff changeset
17 endif()
anatofuz
parents:
diff changeset
18 if(clang_vc AND LLVM_APPEND_VC_REV)
anatofuz
parents:
diff changeset
19 set(clang_source_dir ${CLANG_SOURCE_DIR})
anatofuz
parents:
diff changeset
20 endif()
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 # Create custom target to generate the VC revision include.
anatofuz
parents:
diff changeset
23 add_custom_command(OUTPUT "${version_inc}"
anatofuz
parents:
diff changeset
24 DEPENDS "${llvm_vc}" "${clang_vc}" "${generate_vcs_version_script}"
anatofuz
parents:
diff changeset
25 COMMAND ${CMAKE_COMMAND} "-DNAMES=\"LLVM;CLANG\""
anatofuz
parents:
diff changeset
26 "-DLLVM_SOURCE_DIR=${llvm_source_dir}"
anatofuz
parents:
diff changeset
27 "-DCLANG_SOURCE_DIR=${clang_source_dir}"
anatofuz
parents:
diff changeset
28 "-DHEADER_FILE=${version_inc}"
anatofuz
parents:
diff changeset
29 -P "${generate_vcs_version_script}")
anatofuz
parents:
diff changeset
30
anatofuz
parents:
diff changeset
31 # Mark the generated header as being generated.
anatofuz
parents:
diff changeset
32 set_source_files_properties("${version_inc}"
anatofuz
parents:
diff changeset
33 PROPERTIES GENERATED TRUE
anatofuz
parents:
diff changeset
34 HEADER_FILE_ONLY TRUE)
anatofuz
parents:
diff changeset
35
anatofuz
parents:
diff changeset
36 set_property(SOURCE Version.cpp APPEND PROPERTY
anatofuz
parents:
diff changeset
37 COMPILE_DEFINITIONS "HAVE_VCS_VERSION_INC")
anatofuz
parents:
diff changeset
38
anatofuz
parents:
diff changeset
39 add_clang_library(clangBasic
anatofuz
parents:
diff changeset
40 Attributes.cpp
anatofuz
parents:
diff changeset
41 Builtins.cpp
anatofuz
parents:
diff changeset
42 CharInfo.cpp
anatofuz
parents:
diff changeset
43 CodeGenOptions.cpp
anatofuz
parents:
diff changeset
44 Cuda.cpp
anatofuz
parents:
diff changeset
45 Diagnostic.cpp
anatofuz
parents:
diff changeset
46 DiagnosticIDs.cpp
anatofuz
parents:
diff changeset
47 DiagnosticOptions.cpp
anatofuz
parents:
diff changeset
48 FileManager.cpp
anatofuz
parents:
diff changeset
49 FileSystemStatCache.cpp
anatofuz
parents:
diff changeset
50 FixedPoint.cpp
anatofuz
parents:
diff changeset
51 IdentifierTable.cpp
anatofuz
parents:
diff changeset
52 LangOptions.cpp
anatofuz
parents:
diff changeset
53 LangStandards.cpp
anatofuz
parents:
diff changeset
54 Module.cpp
anatofuz
parents:
diff changeset
55 ObjCRuntime.cpp
anatofuz
parents:
diff changeset
56 OpenMPKinds.cpp
anatofuz
parents:
diff changeset
57 OperatorPrecedence.cpp
anatofuz
parents:
diff changeset
58 SanitizerBlacklist.cpp
anatofuz
parents:
diff changeset
59 SanitizerSpecialCaseList.cpp
anatofuz
parents:
diff changeset
60 Sanitizers.cpp
anatofuz
parents:
diff changeset
61 SourceLocation.cpp
anatofuz
parents:
diff changeset
62 SourceManager.cpp
anatofuz
parents:
diff changeset
63 Stack.cpp
anatofuz
parents:
diff changeset
64 TargetInfo.cpp
anatofuz
parents:
diff changeset
65 Targets.cpp
anatofuz
parents:
diff changeset
66 Targets/AArch64.cpp
anatofuz
parents:
diff changeset
67 Targets/AMDGPU.cpp
anatofuz
parents:
diff changeset
68 Targets/ARC.cpp
anatofuz
parents:
diff changeset
69 Targets/ARM.cpp
anatofuz
parents:
diff changeset
70 Targets/AVR.cpp
anatofuz
parents:
diff changeset
71 Targets/BPF.cpp
anatofuz
parents:
diff changeset
72 Targets/Hexagon.cpp
anatofuz
parents:
diff changeset
73 Targets/Lanai.cpp
anatofuz
parents:
diff changeset
74 Targets/Le64.cpp
anatofuz
parents:
diff changeset
75 Targets/MSP430.cpp
anatofuz
parents:
diff changeset
76 Targets/Mips.cpp
anatofuz
parents:
diff changeset
77 Targets/NVPTX.cpp
anatofuz
parents:
diff changeset
78 Targets/OSTargets.cpp
anatofuz
parents:
diff changeset
79 Targets/PNaCl.cpp
anatofuz
parents:
diff changeset
80 Targets/PPC.cpp
anatofuz
parents:
diff changeset
81 Targets/RISCV.cpp
anatofuz
parents:
diff changeset
82 Targets/SPIR.cpp
anatofuz
parents:
diff changeset
83 Targets/Sparc.cpp
anatofuz
parents:
diff changeset
84 Targets/SystemZ.cpp
anatofuz
parents:
diff changeset
85 Targets/TCE.cpp
anatofuz
parents:
diff changeset
86 Targets/WebAssembly.cpp
anatofuz
parents:
diff changeset
87 Targets/X86.cpp
anatofuz
parents:
diff changeset
88 Targets/XCore.cpp
anatofuz
parents:
diff changeset
89 TokenKinds.cpp
anatofuz
parents:
diff changeset
90 Version.cpp
anatofuz
parents:
diff changeset
91 Warnings.cpp
anatofuz
parents:
diff changeset
92 XRayInstr.cpp
anatofuz
parents:
diff changeset
93 XRayLists.cpp
anatofuz
parents:
diff changeset
94 ${version_inc}
anatofuz
parents:
diff changeset
95 )
anatofuz
parents:
diff changeset
96