This repository has been archived by the owner on Jul 10, 2021. It is now read-only.
forked from Princess-of-Sleeping/PSP2-CustomBootSplash
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
57 lines (47 loc) · 1.42 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
cmake_minimum_required(VERSION 2.8)
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()
set(SHORT_NAME cbs_manager)
project(${SHORT_NAME})
include("${VITASDK}/share/vita.cmake" REQUIRED)
set(VITA_APP_NAME "Custom Boot Splash Manager")
set(VITA_TITLEID "SKGCBSMGR")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -fno-builtin-printf")
if (DEFINED SAFETY)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror")
endif()
set(IGNORE_WARNING "${SAFETY}")
include_directories(${PROJECT_BINARY_DIR})
include_directories(
src
)
add_executable(${SHORT_NAME}
src/main.c
src/debug_screen.c
src/debug_screen_font.c
)
target_link_libraries(${SHORT_NAME}
SceDisplay_stub
SceCtrl_stub
SceShellSvc_stub
SceProcessmgr_stub
SceVshBridge_stub
SceNet_stub
SceNetCtl_stub
SceSysmodule_stub
SceSblUpdateMgr_stub
)
vita_create_self(${SHORT_NAME}.self ${SHORT_NAME} UNSAFE)
vita_create_vpk(${SHORT_NAME}.vpk ${VITA_TITLEID} ${SHORT_NAME}.self
VERSION ${VITA_VERSION}
NAME ${VITA_APP_NAME}
FILE ${CMAKE_BINARY_DIR}/plugin/user/cbsm.suprx cbsm.suprx
FILE ${CMAKE_BINARY_DIR}/plugin/kernel/cbsm.skprx cbsm.skprx
FILE ${CMAKE_SOURCE_DIR}/banim.xgif banim.xgif
FILE ${CMAKE_SOURCE_DIR}/lbanim.xgif lbanim.xgif
)