mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-22 21:17:14 +00:00
Linux support. (#3)
* Compiling and running on Linux. * Fix xpointer constructor. * Convert dependencies to submodules. * Fix wchar_t usage for Linux.
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
|
||||
project("PowerAnalyse")
|
||||
|
||||
add_executable(PowerAnalyse "main.cpp" "function.h" "function.cpp")
|
||||
add_library(LibPowerAnalyse "function.h" "function.cpp")
|
||||
|
||||
find_package(fmt CONFIG REQUIRED)
|
||||
|
||||
target_include_directories(LibPowerAnalyse PUBLIC .)
|
||||
target_link_libraries(LibPowerAnalyse PUBLIC PowerUtils)
|
||||
add_executable(PowerAnalyse
|
||||
"main.cpp"
|
||||
"function.cpp")
|
||||
|
||||
target_link_libraries(PowerAnalyse PRIVATE PowerUtils fmt::fmt)
|
||||
|
||||
add_library(LibPowerAnalyse "function.cpp")
|
||||
target_include_directories(LibPowerAnalyse PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(LibPowerAnalyse PUBLIC PowerUtils)
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <vector>
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
@@ -364,7 +364,7 @@ int main()
|
||||
|
||||
if (f.base == 0x82BD7420)
|
||||
{
|
||||
__debugbreak();
|
||||
__builtin_debugtrap();
|
||||
}
|
||||
|
||||
image.symbols.emplace(fmt::format("sub_{:X}", f.base), f.base, f.size, Symbol_Function);
|
||||
|
Reference in New Issue
Block a user