[Build] Convert build system to raw cmake and remove premake layer

This commit is contained in:
Herman S.
2026-03-04 15:28:01 +09:00
parent f1bfb9416d
commit 71c5702ee8
106 changed files with 1829 additions and 3249 deletions

View File

@@ -0,0 +1,8 @@
add_library(xenia-apu STATIC)
xe_platform_sources(xenia-apu ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(xenia-apu PRIVATE
${PROJECT_SOURCE_DIR}/third_party/FFmpeg
${PROJECT_SOURCE_DIR}/third_party/ffmpeg-xenia
)
target_link_libraries(xenia-apu PUBLIC libavcodec libavutil libavformat xenia-base)
xe_target_defaults(xenia-apu)

View File

@@ -0,0 +1,7 @@
add_library(xenia-apu-alsa STATIC)
xe_platform_sources(xenia-apu-alsa ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(xenia-apu-alsa PUBLIC xenia-apu xenia-base)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_libraries(xenia-apu-alsa PRIVATE asound pthread)
endif()
xe_target_defaults(xenia-apu-alsa)

View File

@@ -1,18 +0,0 @@
group("src")
project("xenia-apu-alsa")
uuid("8c2e1340-f847-4f9a-8b2e-5d8c1b7a8f9e")
kind("StaticLib")
language("C++")
links({
"xenia-apu",
"xenia-base",
})
defines({
})
local_platform_files()
filter("platforms:Linux")
links({
"asound",
"pthread",
})

View File

@@ -0,0 +1,4 @@
add_library(xenia-apu-nop STATIC)
xe_platform_sources(xenia-apu-nop ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(xenia-apu-nop PUBLIC xenia-base xenia-apu)
xe_target_defaults(xenia-apu-nop)

View File

@@ -1,13 +0,0 @@
project_root = "../../../.."
include(project_root.."/tools/build")
group("src")
project("xenia-apu-nop")
uuid("f37dbf3a-d200-4cc0-83f0-f801b1bdd862")
kind("StaticLib")
language("C++")
links({
"xenia-base",
"xenia-apu",
})
local_platform_files()

View File

@@ -1,19 +0,0 @@
project_root = "../../.."
include(project_root.."/tools/build")
group("src")
project("xenia-apu")
uuid("f4df01f0-50e4-4c67-8f54-61660696cc79")
kind("StaticLib")
language("C++")
links({
"libavcodec",
"libavutil",
"libavformat",
"xenia-base",
})
includedirs({
project_root.."/third_party/FFmpeg",
project_root.."/third_party/ffmpeg-xenia",
})
local_platform_files()

View File

@@ -0,0 +1,4 @@
add_library(xenia-apu-sdl STATIC)
xe_platform_sources(xenia-apu-sdl ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(xenia-apu-sdl PUBLIC xenia-apu xenia-base xenia-helper-sdl SDL2)
xe_target_defaults(xenia-apu-sdl)

View File

@@ -1,16 +0,0 @@
project_root = "../../../.."
include(project_root.."/tools/build")
group("src")
project("xenia-apu-sdl")
uuid("153b4e8b-813a-40e6-9366-4b51abc73c45")
kind("StaticLib")
language("C++")
links({
"xenia-apu",
"xenia-base",
"xenia-helper-sdl",
"SDL2",
})
local_platform_files()
sdl2_include()

View File

@@ -0,0 +1,4 @@
add_library(xenia-apu-xaudio2 STATIC)
xe_platform_sources(xenia-apu-xaudio2 ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(xenia-apu-xaudio2 PUBLIC xenia-base xenia-apu)
xe_target_defaults(xenia-apu-xaudio2)

View File

@@ -1,13 +0,0 @@
project_root = "../../../.."
include(project_root.."/tools/build")
group("src")
project("xenia-apu-xaudio2")
uuid("7a54a497-24d9-4c0e-a013-8507a04231f9")
kind("StaticLib")
language("C++")
links({
"xenia-base",
"xenia-apu",
})
local_platform_files()