xref: /openbsd/gnu/llvm/lld/COFF/CMakeLists.txt (revision 3cab2bb3)
1set(LLVM_TARGET_DEFINITIONS Options.td)
2tablegen(LLVM Options.inc -gen-opt-parser-defs)
3add_public_tablegen_target(COFFOptionsTableGen)
4
5if(NOT LLD_BUILT_STANDALONE)
6  set(tablegen_deps intrinsics_gen)
7endif()
8
9add_lld_library(lldCOFF
10  Chunks.cpp
11  DebugTypes.cpp
12  DLL.cpp
13  Driver.cpp
14  DriverUtils.cpp
15  ICF.cpp
16  InputFiles.cpp
17  LTO.cpp
18  MapFile.cpp
19  MarkLive.cpp
20  MinGW.cpp
21  PDB.cpp
22  SymbolTable.cpp
23  Symbols.cpp
24  Writer.cpp
25
26  LINK_COMPONENTS
27  ${LLVM_TARGETS_TO_BUILD}
28  BinaryFormat
29  Core
30  DebugInfoCodeView
31  DebugInfoDWARF
32  DebugInfoMSF
33  DebugInfoPDB
34  Demangle
35  LibDriver
36  LTO
37  MC
38  Object
39  Option
40  Passes
41  Support
42  WindowsManifest
43
44  LINK_LIBS
45  lldCommon
46  ${LLVM_PTHREAD_LIB}
47
48  DEPENDS
49  COFFOptionsTableGen
50  ${tablegen_deps}
51  )
52