forked from 61bcdefg/Hikari-LLVM15-Core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·53 lines (52 loc) · 1.53 KB
/
CMakeLists.txt
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
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
add_llvm_component_library(LLVMObfuscation
FunctionCallObfuscate.cpp
CryptoUtils.cpp
BogusControlFlow.cpp
SubstituteImpl.cpp
Substitution.cpp
Flattening.cpp
Utils.cpp
SplitBasicBlocks.cpp
AntiClassDump.cpp
AntiDebugging.cpp
AntiHooking.cpp
StringEncryption.cpp
IndirectBranch.cpp
FunctionWrapper.cpp
ConstantEncryption.cpp
Obfuscation.cpp
DEPENDS
intrinsics_gen
LINK_COMPONENTS
Linker
)
else()
add_llvm_component_library(LLVMObfuscation
FunctionCallObfuscate.cpp
CryptoUtils.cpp
BogusControlFlow.cpp
SubstituteImpl.cpp
Substitution.cpp
Flattening.cpp
Utils.cpp
SplitBasicBlocks.cpp
AntiClassDump.cpp
AntiDebugging.cpp
AntiHooking.cpp
StringEncryption.cpp
IndirectBranch.cpp
FunctionWrapper.cpp
ConstantEncryption.cpp
Obfuscation.cpp
DEPENDS
intrinsics_gen
)
endif()
execute_process(
COMMAND git log -1 --format=%H
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
OUTPUT_VARIABLE HIKARI_GIT_COMMIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
target_compile_definitions(LLVMObfuscation PRIVATE "-DGIT_COMMIT_HASH=\"${HIKARI_GIT_COMMIT_HASH}\"")