[Build] Convert build system to raw cmake and remove premake layer
This commit is contained in:
11
src/xenia/hid/CMakeLists.txt
Normal file
11
src/xenia/hid/CMakeLists.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
add_library(xenia-hid STATIC)
|
||||
xe_platform_sources(xenia-hid ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
# Exclude demo files
|
||||
file(GLOB _hid_demo "${CMAKE_CURRENT_SOURCE_DIR}/*_demo.cc")
|
||||
get_target_property(_hid_srcs xenia-hid SOURCES)
|
||||
if(_hid_demo AND _hid_srcs)
|
||||
list(REMOVE_ITEM _hid_srcs ${_hid_demo})
|
||||
set_target_properties(xenia-hid PROPERTIES SOURCES "${_hid_srcs}")
|
||||
endif()
|
||||
target_link_libraries(xenia-hid PUBLIC xenia-base xenia-hid-skylander)
|
||||
xe_target_defaults(xenia-hid)
|
||||
4
src/xenia/hid/nop/CMakeLists.txt
Normal file
4
src/xenia/hid/nop/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
add_library(xenia-hid-nop STATIC)
|
||||
xe_platform_sources(xenia-hid-nop ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(xenia-hid-nop PUBLIC xenia-base xenia-hid)
|
||||
xe_target_defaults(xenia-hid-nop)
|
||||
@@ -1,13 +0,0 @@
|
||||
project_root = "../../../.."
|
||||
include(project_root.."/tools/build")
|
||||
|
||||
group("src")
|
||||
project("xenia-hid-nop")
|
||||
uuid("887b6f26-b0c1-43c1-a013-a37e7b9634fd")
|
||||
kind("StaticLib")
|
||||
language("C++")
|
||||
links({
|
||||
"xenia-base",
|
||||
"xenia-hid",
|
||||
})
|
||||
local_platform_files()
|
||||
@@ -1,16 +0,0 @@
|
||||
project_root = "../../.."
|
||||
include(project_root.."/tools/build")
|
||||
|
||||
group("src")
|
||||
project("xenia-hid")
|
||||
uuid("88a4ef38-c550-430f-8c22-8ded4e4ef601")
|
||||
kind("StaticLib")
|
||||
language("C++")
|
||||
links({
|
||||
"xenia-base",
|
||||
"xenia-hid-skylander",
|
||||
})
|
||||
local_platform_files()
|
||||
removefiles({
|
||||
"*_demo.cc",
|
||||
})
|
||||
4
src/xenia/hid/sdl/CMakeLists.txt
Normal file
4
src/xenia/hid/sdl/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
add_library(xenia-hid-sdl STATIC)
|
||||
xe_platform_sources(xenia-hid-sdl ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(xenia-hid-sdl PUBLIC xenia-base xenia-hid xenia-ui SDL2)
|
||||
xe_target_defaults(xenia-hid-sdl)
|
||||
@@ -1,16 +0,0 @@
|
||||
project_root = "../../../.."
|
||||
include(project_root.."/tools/build")
|
||||
|
||||
group("src")
|
||||
project("xenia-hid-sdl")
|
||||
uuid("44f5b9a1-00f8-4825-acf1-5c93f26eba9b")
|
||||
kind("StaticLib")
|
||||
language("C++")
|
||||
links({
|
||||
"xenia-base",
|
||||
"xenia-hid",
|
||||
"xenia-ui",
|
||||
"SDL2",
|
||||
})
|
||||
local_platform_files()
|
||||
sdl2_include()
|
||||
14
src/xenia/hid/skylander/CMakeLists.txt
Normal file
14
src/xenia/hid/skylander/CMakeLists.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
add_library(xenia-hid-skylander STATIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/skylander_portal.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/skylander_portal.cc
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/skylander_emulated.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/skylander_emulated.cc
|
||||
)
|
||||
if(WIN32)
|
||||
target_sources(xenia-hid-skylander PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/skylander_hardware.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/skylander_hardware.cc
|
||||
)
|
||||
target_link_libraries(xenia-hid-skylander PUBLIC libusb)
|
||||
endif()
|
||||
xe_target_defaults(xenia-hid-skylander)
|
||||
@@ -1,23 +0,0 @@
|
||||
project_root = "../../../.."
|
||||
include(project_root.."/tools/build")
|
||||
|
||||
group("src")
|
||||
project("xenia-hid-skylander")
|
||||
uuid("ddc114da-a279-4868-8b20-53108599bd78")
|
||||
kind("StaticLib")
|
||||
language("C++")
|
||||
files({
|
||||
"skylander_portal.h",
|
||||
"skylander_portal.cc",
|
||||
"skylander_emulated.h",
|
||||
"skylander_emulated.cc"
|
||||
})
|
||||
|
||||
filter({"platforms:Windows"})
|
||||
links({
|
||||
"libusb",
|
||||
})
|
||||
files({
|
||||
"skylander_hardware.h",
|
||||
"skylander_hardware.cc"
|
||||
})
|
||||
4
src/xenia/hid/winkey/CMakeLists.txt
Normal file
4
src/xenia/hid/winkey/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
add_library(xenia-hid-winkey STATIC)
|
||||
xe_platform_sources(xenia-hid-winkey ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(xenia-hid-winkey PUBLIC xenia-base xenia-hid xenia-ui)
|
||||
xe_target_defaults(xenia-hid-winkey)
|
||||
@@ -1,14 +0,0 @@
|
||||
project_root = "../../../.."
|
||||
include(project_root.."/tools/build")
|
||||
|
||||
group("src")
|
||||
project("xenia-hid-winkey")
|
||||
uuid("fd16e19a-6219-4ab7-b95a-7c78523c50c3")
|
||||
kind("StaticLib")
|
||||
language("C++")
|
||||
links({
|
||||
"xenia-base",
|
||||
"xenia-hid",
|
||||
"xenia-ui",
|
||||
})
|
||||
local_platform_files()
|
||||
4
src/xenia/hid/xinput/CMakeLists.txt
Normal file
4
src/xenia/hid/xinput/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
add_library(xenia-hid-xinput STATIC)
|
||||
xe_platform_sources(xenia-hid-xinput ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(xenia-hid-xinput PUBLIC xenia-base xenia-hid)
|
||||
xe_target_defaults(xenia-hid-xinput)
|
||||
@@ -1,13 +0,0 @@
|
||||
project_root = "../../../.."
|
||||
include(project_root.."/tools/build")
|
||||
|
||||
group("src")
|
||||
project("xenia-hid-xinput")
|
||||
uuid("3d49e251-07a7-40ae-9bc6-aae984c85568")
|
||||
kind("StaticLib")
|
||||
language("C++")
|
||||
links({
|
||||
"xenia-base",
|
||||
"xenia-hid",
|
||||
})
|
||||
local_platform_files()
|
||||
Reference in New Issue
Block a user