mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 14:00:16 +02:00
I may have gotten carried away. - I missed some stuff for end parenthesis because I accidentally searched within project files instead of the entire directory (so some thunk/test/windows stuff was missed), cleaned those up. - `INTERFACE`, `PUBLIC`, `PRIVATE`, `RUNTIME`, `LIBRARY` should be on the same line as the target name. (I should really invest in making a style guide...) - Some short statements were unnecessarily split across multiple lines--cleaned those up - Made a common `LinkerGC` module that applies gc-sections etc. to a target in Release mode - Usually for functions you want to have something on the first line, e.g. `FILES`/`DIRECTORY` for install, or the target/a positional argument, etc etc. Not always though, notably for some custom_command calls TODO: - What's with the `list(APPEND LIBS...)` stuff? It's used really inconsistently, sometimes not at all, sometimes it looks like there're duplicates? A more thorough cleanup is in order there. Signed-off-by: crueter <crueter@eden-emu.dev>
27 lines
704 B
CMake
27 lines
704 B
CMake
add_library(arm64ecfex SHARED
|
|
Module.cpp
|
|
Module.S
|
|
libarm64ecfex.def
|
|
$<TARGET_OBJECTS:FEXCore_object>)
|
|
|
|
patch_library_wine(arm64ecfex)
|
|
|
|
target_include_directories(arm64ecfex PRIVATE
|
|
"${CMAKE_SOURCE_DIR}/Source/Windows/include/"
|
|
"${CMAKE_SOURCE_DIR}/Source/"
|
|
"${CMAKE_SOURCE_DIR}/Source/Windows/")
|
|
|
|
target_link_libraries(arm64ecfex PRIVATE
|
|
FEXCore_Base
|
|
Common
|
|
CommonTools
|
|
CommonWindows
|
|
CommonWindowsRuntime
|
|
ntdll_ex)
|
|
|
|
target_link_options(arm64ecfex PRIVATE -static -nostdlib -nostartfiles -nodefaultlibs -lc++ -lc++abi -lunwind)
|
|
target_link_libraries(arm64ecfex PRIVATE ${LIBGCC_PATH})
|
|
install(TARGETS arm64ecfex RUNTIME
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
COMPONENT Runtime)
|