-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmeson.llvm.build
94 lines (89 loc) · 2.34 KB
/
meson.llvm.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
project('llvm', ['cpp'])
cpp = meson.get_compiler('cpp')
deps = ['LLVMAggressiveInstCombine',
'LLVMAnalysis',
'LLVMAsmParser',
'LLVMAsmPrinter',
'LLVMBinaryFormat',
'LLVMBitReader',
'LLVMBitstreamReader',
'LLVMBitWriter',
'LLVMCFGuard',
'LLVMCGData',
'LLVMCodeGen',
'LLVMCodeGenTypes',
'LLVMCore',
'LLVMCoroutines',
'LLVMDebugInfoBTF',
'LLVMDebugInfoCodeView',
'LLVMDebugInfoDWARF',
'LLVMDebugInfoMSF',
'LLVMDebugInfoPDB',
'LLVMDemangle',
'LLVMExecutionEngine',
'LLVMFrontendAtomic',
'LLVMFrontendOffloading',
'LLVMFrontendOpenMP',
'LLVMGlobalISel',
'LLVMHipStdPar',
'LLVMInstCombine',
'LLVMInstrumentation',
'LLVMInterpreter',
'LLVMipo',
'LLVMIRPrinter',
'LLVMIRReader',
'LLVMLinker',
'LLVMMC',
'LLVMMCA',
'LLVMMCDisassembler',
'LLVMMCJIT',
'LLVMMCParser',
'LLVMObjCARCOpts',
'LLVMObject',
'LLVMOrcShared',
'LLVMOrcTargetProcess',
'LLVMPasses',
'LLVMProfileData',
'LLVMRemarks',
'LLVMRuntimeDyld',
'LLVMSandboxIR',
'LLVMScalarOpts',
'LLVMSelectionDAG',
'LLVMSupport',
'LLVMSymbolize',
'LLVMTarget',
'LLVMTargetParser',
'LLVMTextAPI',
'LLVMTransformUtils',
'LLVMVectorize']
if host_machine.cpu_family() == 'aarch64'
folder = '../../../llvm-arm64'
deps += ['LLVMAArch64AsmParser',
'LLVMAArch64CodeGen',
'LLVMAArch64Desc',
'LLVMAArch64Disassembler',
'LLVMAArch64Info',
'LLVMAArch64Utils']
else
if host_machine.cpu_family() == 'x86_64'
folder = '../../../llvm-x64'
else
folder = '../../../llvm-x86'
endif
deps += ['LLVMX86AsmParser',
'LLVMX86CodeGen',
'LLVMX86Desc',
'LLVMX86Disassembler',
'LLVMX86Info',
'LLVMX86TargetMCA']
endif
_deps = []
_search = join_paths(meson.current_source_dir(), folder + '/lib')
foreach d : deps
_deps += cpp.find_library(d, dirs : _search)
endforeach
dep_llvm = declare_dependency(
include_directories : include_directories(folder + '/include'),
dependencies : _deps,
version : '20.1.0',
)