2021-04-08 01:15:36 -04:00
|
|
|
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()
|
|
|
|
|
|
|
|
project(VITA-Homebrew-Sorter)
|
|
|
|
include("${VITASDK}/share/vita.cmake" REQUIRED)
|
|
|
|
|
|
|
|
set(VITA_APP_NAME "VITA Homebrew Sorter")
|
|
|
|
set(VITA_TITLEID "VITAHBSRT")
|
2021-09-01 18:43:44 -04:00
|
|
|
set(VITA_VERSION "01.24")
|
2021-04-08 01:15:36 -04:00
|
|
|
|
|
|
|
add_definitions(-DAPP_VERSION="${VITA_VERSION}")
|
|
|
|
|
2021-09-01 18:43:44 -04:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -ffast-math -mtune=cortex-a9 -mfpu=neon -Wall -Wno-psabi -std=gnu++17")
|
2021-04-08 01:15:36 -04:00
|
|
|
set(VITA_MKSFOEX_FLAGS "${VITA_MKSFOEX_FLAGS} -d PARENTAL_LEVEL=1")
|
|
|
|
|
|
|
|
include_directories(
|
2021-04-20 16:37:05 -04:00
|
|
|
${VITASDK}/arm-vita-eabi/include/freetype2/
|
2021-04-08 01:15:36 -04:00
|
|
|
libs/imgui
|
|
|
|
include
|
|
|
|
)
|
|
|
|
|
|
|
|
link_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/libs/lib
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
libs/imgui/imgui.cpp
|
|
|
|
libs/imgui/imgui_draw.cpp
|
|
|
|
libs/imgui/imgui_impl_vitagl.cpp
|
|
|
|
libs/imgui/imgui_tables.cpp
|
|
|
|
libs/imgui/imgui_widgets.cpp
|
2021-04-20 16:37:05 -04:00
|
|
|
libs/imgui/misc/freetype/imgui_freetype.cpp
|
2021-04-08 01:15:36 -04:00
|
|
|
source/applist.cpp
|
2021-04-08 11:58:17 -04:00
|
|
|
source/fs.cpp
|
2021-04-08 01:15:36 -04:00
|
|
|
source/gui.cpp
|
2021-04-11 14:32:15 -04:00
|
|
|
source/keyboard.cpp
|
|
|
|
source/loadouts.cpp
|
2021-04-08 11:58:17 -04:00
|
|
|
source/log.cpp
|
2021-04-08 01:15:36 -04:00
|
|
|
source/main.cpp
|
2021-08-27 19:50:35 -04:00
|
|
|
source/power.cpp
|
2021-07-20 19:29:32 -04:00
|
|
|
source/sqlite.cpp
|
2021-04-08 17:27:28 -04:00
|
|
|
source/textures.cpp
|
2021-04-08 01:15:36 -04:00
|
|
|
source/utils.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
2021-04-20 16:37:05 -04:00
|
|
|
freetype
|
2021-04-08 01:15:36 -04:00
|
|
|
png
|
|
|
|
pthread
|
|
|
|
lzma
|
|
|
|
z
|
|
|
|
vitaGL
|
|
|
|
vitashark
|
|
|
|
mathneon
|
|
|
|
SceAppMgr_stub
|
|
|
|
SceAppUtil_stub
|
|
|
|
SceCommonDialog_stub
|
|
|
|
SceCtrl_stub
|
|
|
|
SceDisplay_stub
|
|
|
|
SceGxm_stub
|
2021-08-23 19:14:57 -04:00
|
|
|
SceKernelDmacMgr_stub
|
2021-04-08 01:15:36 -04:00
|
|
|
SceLibKernel_stub
|
2021-04-08 23:32:27 -04:00
|
|
|
ScePower_stub
|
2021-04-08 01:15:36 -04:00
|
|
|
SceShaccCg_stub
|
|
|
|
SceSqlite_stub
|
|
|
|
SceSysmodule_stub
|
|
|
|
SceTouch_stub
|
|
|
|
)
|
|
|
|
|
|
|
|
## Create Vita files
|
|
|
|
vita_create_self(${PROJECT_NAME}.self ${PROJECT_NAME} UNSAFE)
|
|
|
|
# The FILE directive lets you add additional files to the VPK, the syntax is
|
|
|
|
# FILE src_path dst_path_in_vpk. In this case, we add the LiveArea paths.
|
|
|
|
vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} ${PROJECT_NAME}.self
|
|
|
|
VERSION ${VITA_VERSION}
|
|
|
|
NAME ${VITA_APP_NAME}
|
|
|
|
FILE sce_sys/icon0.png sce_sys/icon0.png
|
2021-06-05 14:46:59 -04:00
|
|
|
FILE sce_sys/pic0.png sce_sys/pic0.png
|
2021-04-08 01:15:36 -04:00
|
|
|
FILE sce_sys/livearea/contents/bg.png sce_sys/livearea/contents/bg.png
|
|
|
|
FILE sce_sys/livearea/contents/startup.png sce_sys/livearea/contents/startup.png
|
|
|
|
FILE sce_sys/livearea/contents/template.xml sce_sys/livearea/contents/template.xml
|
2021-04-08 22:29:37 -04:00
|
|
|
FILE res/app.png res/app.png
|
2021-04-11 14:32:15 -04:00
|
|
|
FILE res/db.png res/db.png
|
2021-04-08 22:29:37 -04:00
|
|
|
FILE res/folder.png res/folder.png
|
2021-09-01 00:46:51 -04:00
|
|
|
FILE res/trash.png res/trash.png
|
2021-04-08 01:15:36 -04:00
|
|
|
)
|