-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
71 lines (59 loc) · 1.75 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
cmake_minimum_required(VERSION 3.2.0)
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()
include("$ENV{VITASDK}/share/vita.cmake" REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-q -Wall -Wno-unknown-pragmas -O3 -Wno-unused-function -Wno-unused-variable")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fno-exceptions")
project(8BitVita)
add_executable(${PROJECT_NAME}
src/bluetooth.c
)
set_target_properties(${PROJECT_NAME}
PROPERTIES LINK_FLAGS "-nostdlib"
COMPILE_FLAGS "-D__VITA_KERNEL__"
)
target_link_libraries(${PROJECT_NAME}
gcc
taihenForKernel_stub
SceSysclibForDriver_stub
SceSysmemForDriver_stub
SceThreadmgrForDriver_stub
SceIofilemgrForDriver_stub
taihenModuleUtils_stub
SceBtForDriver_stub
SceDebugForDriver_stub
SceKernelSuspendForDriver_stub
SceCtrlForDriver_stub
SceSblAIMgrForDriver_stub
)
vita_create_stubs(stubs ${PROJECT_NAME} ${PROJECT_NAME}.yml KERNEL)
add_executable(8BitVitaCompanion
src/debug.c
)
target_link_libraries(8BitVitaCompanion
SceCtrl_stub
${CMAKE_SOURCE_DIR}/build/stubs/lib8BitVita_stub_weak.a
vita2d
SceShellSvc_stub
SceDisplay_stub
SceGxm_stub
ScePgf_stub
ScePvf_stub
SceSysmodule_stub
SceVshBridge_stub
SceAppMgr_stub
m
SceCommonDialog_stub
)
vita_create_self(8BitVitaCompanion.self 8BitVitaCompanion UNSAFE)
vita_create_self(${PROJECT_NAME}.skprx ${PROJECT_NAME} CONFIG ${PROJECT_NAME}.yml UNSAFE)
vita_create_vpk("8BitVitaCompanion.vpk" "DEBG00002" "8BitVitaCompanion.self"
VERSION "01.00"
NAME "8BitVita Companion"
FILE sce_sys sce_sys
)