-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
82 lines (71 loc) · 1.9 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
cmake_minimum_required(VERSION 3.2)
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
if(DEFINED ENV{VITASDK})
set(CMAKE_TOOLCHAIN_FILE "$ENV{VITASDK}/share/vita.toolchain.cmake" CACHE PATH "toolchain file")
else()
message(FATAL_ERROR "Please define VITASDK to point to your SDK path!")
endif()
endif()
project(vixen)
include("${VITASDK}/share/vita.cmake" REQUIRED)
add_executable(${PROJECT_NAME}
src/main.c
src/devicelist.c
src/controller.c
src/controllers/xbox_controller.c
src/controllers/xbox_360_controller.c
src/controllers/xbox_360w_controller.c
src/controllers/ds3_controller.c
src/controllers/dinput_controller.c
)
target_link_libraries(${PROJECT_NAME}
SceDebugForDriver_stub
SceSblAIMgrForDriver_stub
SceCtrlForDriver_stub
SceKernelSuspendForDriver_stub
SceSysclibForDriver_stub
SceSysmemForDriver_stub
SceThreadmgrForDriver_stub
SceUsbdForDriver_stub
SceUsbServForDriver_stub
taihenForKernel_stub
)
set_target_properties(${PROJECT_NAME}
PROPERTIES LINK_FLAGS "-nostdlib"
)
vita_create_self(${PROJECT_NAME}.skprx ${PROJECT_NAME}
CONFIG vixen.yml
UNSAFE
)
add_executable(${PROJECT_NAME}_ds3
src/main.c
src/devicelist.c
src/controller.c
src/controllers/xbox_controller.c
src/controllers/xbox_360_controller.c
src/controllers/xbox_360w_controller.c
src/controllers/ds3_controller.c
src/controllers/dinput_controller.c
)
target_link_libraries(${PROJECT_NAME}_ds3
SceDebugForDriver_stub
SceSblAIMgrForDriver_stub
SceCtrlForDriver_stub
SceKernelSuspendForDriver_stub
SceSysclibForDriver_stub
SceSysmemForDriver_stub
SceThreadmgrForDriver_stub
SceUsbdForDriver_stub
SceUsbServForDriver_stub
taihenForKernel_stub
)
set_target_properties(${PROJECT_NAME}_ds3
PROPERTIES LINK_FLAGS "-nostdlib"
)
target_compile_definitions(${PROJECT_NAME}_ds3
PRIVATE WITH_DS3
)
vita_create_self(${PROJECT_NAME}_ds3.skprx ${PROJECT_NAME}_ds3
CONFIG vixen.yml
UNSAFE
)