Skip to content

Commit 87e3509

Browse files
Rebrand to XenonRecomp.
1 parent 7fb8af1 commit 87e3509

54 files changed

Lines changed: 69 additions & 64 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ endif()
1414
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
1515

1616
add_subdirectory(${THIRDPARTY_ROOT})
17-
set(POWERANALYSE_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/PowerAnalyse)
18-
set(POWERUTILS_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/PowerUtils)
19-
set(POWERRECOMP_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/PowerRecomp)
17+
set(XENONANALYSE_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/XenonAnalyse)
18+
set(XENONUTILS_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/XenonUtils)
19+
set(XENONRECOMP_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/XenonRecomp)
2020

21-
project ("PowerRecomp-ALL")
21+
project ("XenonRecomp-ALL")
2222

23-
add_subdirectory(${POWERANALYSE_ROOT})
24-
add_subdirectory(${POWERRECOMP_ROOT})
25-
add_subdirectory(${POWERUTILS_ROOT})
23+
add_subdirectory(${XENONANALYSE_ROOT})
24+
add_subdirectory(${XENONRECOMP_ROOT})
25+
add_subdirectory(${XENONUTILS_ROOT})
2626

2727
# Only build sample and tests if this is the top level project
2828
if (${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR})
29-
add_subdirectory(PowerSample)
30-
add_subdirectory(PowerTests)
29+
add_subdirectory(XenonSample)
30+
add_subdirectory(XenonTests)
3131
endif()

PowerAnalyse/CMakeLists.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

PowerRecomp/CMakeLists.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.

PowerUtils/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

XenonAnalyse/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# cmake_minimum_required (VERSION 3.16)
2+
3+
project("XenonAnalyse")
4+
5+
add_executable(XenonAnalyse
6+
"main.cpp"
7+
"function.cpp")
8+
9+
target_link_libraries(XenonAnalyse PRIVATE XenonUtils fmt::fmt)
10+
11+
add_library(LibXenonAnalyse "function.cpp")
12+
target_include_directories(LibXenonAnalyse PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
13+
target_link_libraries(LibXenonAnalyse PUBLIC XenonUtils)
14+

XenonRecomp/CMakeLists.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
cmake_minimum_required (VERSION 3.8)
2+
3+
project("XenonRecomp")
4+
5+
add_executable(XenonRecomp
6+
"main.cpp"
7+
"recompiler.cpp"
8+
"test_recompiler.cpp"
9+
"recompiler_config.cpp")
10+
11+
target_precompile_headers(XenonRecomp PUBLIC "pch.h")
12+
13+
target_link_libraries(XenonRecomp PRIVATE
14+
LibXenonAnalyse
15+
XenonUtils
16+
fmt::fmt
17+
tomlplusplus::tomlplusplus
18+
xxHash::xxhash)
19+
20+
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
21+
target_compile_options(XenonRecomp PRIVATE -Wno-switch -Wno-unused-variable -Wno-null-arithmetic)
22+
endif()
23+
24+
target_compile_definitions(XenonRecomp PRIVATE _CRT_SECURE_NO_WARNINGS)
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
int main(int argc, char* argv[])
55
{
66
const char* path =
7-
#ifdef CONFIG_FILE_PATH
8-
CONFIG_FILE_PATH
7+
#ifdef XENON_RECOMP_CONFIG_FILE_PATH
8+
XENON_RECOMP_CONFIG_FILE_PATH
99
#else
1010
argv[1]
1111
#endif
@@ -24,8 +24,8 @@ int main(int argc, char* argv[])
2424
}
2525

2626
const char* headerFilePath =
27-
#ifdef HEADER_FILE_PATH
28-
HEADER_FILE_PATH
27+
#ifdef XENON_RECOMP_HEADER_FILE_PATH
28+
XENON_RECOMP_HEADER_FILE_PATH
2929
#else
3030
argv[2]
3131
#endif

0 commit comments

Comments
 (0)