[Build] Convert build system to raw cmake and remove premake layer
This commit is contained in:
23
src/xenia/kernel/CMakeLists.txt
Normal file
23
src/xenia/kernel/CMakeLists.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
add_library(xenia-kernel STATIC)
|
||||
xe_platform_sources(xenia-kernel ${CMAKE_CURRENT_SOURCE_DIR} RECURSIVE)
|
||||
target_compile_definitions(xenia-kernel PRIVATE
|
||||
X86_FEATURES
|
||||
X86_HAVE_XSAVE_INTRIN
|
||||
X86_SSSE3
|
||||
X86_SSE42
|
||||
WITH_GZFILEOP
|
||||
)
|
||||
if(WIN32)
|
||||
target_compile_definitions(xenia-kernel PRIVATE
|
||||
X86_SSE2
|
||||
X86_AVX2
|
||||
X86_AVX512
|
||||
X86_AVX512VNNI
|
||||
X86_PCLMULQDQ_CRC
|
||||
X86_VPCLMULQDQ_CRC
|
||||
)
|
||||
endif()
|
||||
target_link_libraries(xenia-kernel PUBLIC
|
||||
aes_128 fmt zlib-ng pugixml xenia-apu xenia-base xenia-cpu xenia-hid xenia-vfs
|
||||
)
|
||||
xe_target_defaults(xenia-kernel)
|
||||
@@ -1,40 +0,0 @@
|
||||
project_root = "../../.."
|
||||
include(project_root.."/tools/build")
|
||||
|
||||
group("src")
|
||||
project("xenia-kernel")
|
||||
uuid("ae185c4a-1c4f-4503-9892-328e549e871a")
|
||||
kind("StaticLib")
|
||||
language("C++")
|
||||
links({
|
||||
"aes_128",
|
||||
"fmt",
|
||||
"zlib-ng",
|
||||
"pugixml",
|
||||
"xenia-apu",
|
||||
"xenia-base",
|
||||
"xenia-cpu",
|
||||
"xenia-hid",
|
||||
"xenia-vfs",
|
||||
})
|
||||
defines({
|
||||
"X86_FEATURES",
|
||||
"X86_HAVE_XSAVE_INTRIN",
|
||||
"X86_SSSE3",
|
||||
"X86_SSE42",
|
||||
"WITH_GZFILEOP",
|
||||
})
|
||||
if os.istarget("windows") then
|
||||
defines({
|
||||
"X86_SSE2",
|
||||
"X86_AVX2",
|
||||
"X86_AVX512",
|
||||
"X86_AVX512VNNI",
|
||||
"X86_PCLMULQDQ_CRC",
|
||||
"X86_VPCLMULQDQ_CRC",
|
||||
})
|
||||
end
|
||||
recursive_platform_files()
|
||||
files({
|
||||
"debug_visualizers.natvis",
|
||||
})
|
||||
Reference in New Issue
Block a user