-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
45 lines (35 loc) · 902 Bytes
/
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
cmake_minimum_required(VERSION 3.19)
set(CMAKE_TOOLCHAIN_FILE "$ENV{SCE_PSP2_SDK_DIR}/host_tools/build/cmake/psp2-snc-toolchain.cmake")
project(CapUnlocker)
include(VitaDevelopmentSuite)
enable_language(EMD)
set(CMAKE_C_STANDARD 99)
add_compile_options(
-Xdiag=0 -Xquit=2 -O3
)
add_link_options(
--prx-no-runtime-support
--strip-unused-data
--strip-duplicates
--strip-report=strip-report.txt
)
include_directories(
${VDSUITE_KERNEL_INCLUDE_DIRECTORIES}
)
link_directories(
${VDSUITE_LIBRARY_DIRECTORIES}
)
add_library("${PROJECT_NAME}.elf" MODULE
main.c
lib.emd
)
target_link_libraries("${PROJECT_NAME}.elf"
SceDebugForDriver_stub
SceSysmemForDriver_stub
SceThreadmgrForDriver_stub
SceSysclibForDriver_stub
SceSysrootForDriver_stub
taihenForKernel_stub
taihenModuleUtils_stub
)
VDSuiteSignElf("${PROJECT_NAME}.skprx" "${PROJECT_NAME}.elf" COMPRESS ON STRIP ON)