- Add albums browsing and navigation (src/albums.c, src/app.c) - Extract API calls into dedicated src/api.c module - Improve display and UI components - Update CMakeLists.txt to include new source files - Refactor Dockerfile for better build process Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
69 lines
1.8 KiB
CMake
69 lines
1.8 KiB
CMake
cmake_minimum_required(VERSION 3.10)
|
|
|
|
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(vitaImmich C)
|
|
include("${VITASDK}/share/vita.cmake" REQUIRED)
|
|
|
|
set(VITA_APP_NAME "Immich")
|
|
set(VITA_TITLEID "VIMM00001")
|
|
set(VITA_VERSION "01.00")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O2")
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
src/main.c
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
vita2d
|
|
curl
|
|
ssl
|
|
crypto
|
|
zstd
|
|
freetype
|
|
png
|
|
jpeg
|
|
z
|
|
m
|
|
# OpenSSL 1.0.2's libcrypto.a has a threads_pthread.o that references
|
|
# pthread_getspecific/pthread_self/pthread_equal; the Vita newlib stubs that
|
|
# live in libpthread.a.
|
|
pthread
|
|
SceDisplay_stub
|
|
SceGxm_stub
|
|
SceSysmodule_stub
|
|
SceCtrl_stub
|
|
SceTouch_stub
|
|
SceCommonDialog_stub
|
|
SceIme_stub
|
|
ScePgf_stub
|
|
SceAppMgr_stub
|
|
SceNet_stub
|
|
SceNetCtl_stub
|
|
SceAvPlayer_stub
|
|
SceAudio_stub
|
|
)
|
|
|
|
# UNSAFE: reading the camera folders (ux0:picture, ux0:video) is outside
|
|
# the safe-homebrew sandbox
|
|
vita_create_self(${PROJECT_NAME}.self ${PROJECT_NAME} UNSAFE)
|
|
vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} ${PROJECT_NAME}.self
|
|
VERSION ${VITA_VERSION}
|
|
NAME ${VITA_APP_NAME}
|
|
FILE ${CMAKE_SOURCE_DIR}/assets/sce_sys/icon0.png sce_sys/icon0.png
|
|
FILE ${CMAKE_SOURCE_DIR}/assets/Overpass-SemiBold.ttf font.ttf
|
|
FILE ${CMAKE_SOURCE_DIR}/assets/OFL-Overpass.txt OFL-Overpass.txt
|
|
FILE ${CMAKE_SOURCE_DIR}/assets/immich_logo.png logo.png
|
|
FILE ${CMAKE_SOURCE_DIR}/assets/cloud_server.png cloud_server.png
|
|
FILE ${CMAKE_SOURCE_DIR}/assets/cloud_device.png cloud_device.png
|
|
FILE ${CMAKE_SOURCE_DIR}/assets/cloud_both.png cloud_both.png
|
|
FILE ${CMAKE_SOURCE_DIR}/assets/maptiles.pak maptiles.pak
|
|
)
|