-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCMakeLists.txt
153 lines (131 loc) · 6.08 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
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()
OPTION(DEFINE_DEBUG
"Build the project using debugging code"
OFF)
IF(DEFINE_DEBUG)
MESSAGE("Adding Debug flag...")
ADD_DEFINITIONS(-DDEFINE_DEBUG)
#SET(CMAKE_BUILD_TYPE Debug)
MESSAGE("Build type is " ${CMAKE_BUILD_TYPE})
ENDIF(DEFINE_DEBUG)
set(SHORT_NAME vita_cord)
project(${SHORT_NAME})
include("${VITASDK}/share/vita.cmake" REQUIRED)
set(VITA_APP_NAME "VitaCord")
set(VITA_TITLEID "VTCD00001")
set(VITA_VERSION "01.50")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fpermissive -std=gnu11 -Wall ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fpermissive -std=c++11 -Wall ")
find_package(CURL REQUIRED)
find_package(OpenSSL REQUIRED)
include_directories(
../common
)
add_executable(${SHORT_NAME}.elf
src/VitaGUI.cpp
src/Discord.cpp
src/easyencryptor.cpp
src/DiscordApp.cpp
src/VitaNet.cpp
src/main.cpp
src/log.cpp
src/VitaIME.cpp
src/VitaPad.cpp
src/VitaTouch.cpp
)
target_link_libraries(${SHORT_NAME}.elf
debugnet
vita2d
SceNet_stub
ScePgf_stub
ScePvf_stub
SceGxm_stub
SceHttp_stub
SceCtrl_stub
SceTouch_stub
SceNetCtl_stub
SceAppUtil_stub
SceDisplay_stub
SceLibKernel_stub
SceSysmodule_stub
ScePower_stub
SceCommonDialog_stub
SceRegistryMgr_stub
${CURL_LIBRARIES}
${OPENSSL_LIBRARIES}
c
m
z
png
jpeg
pthread
freetype
)
vita_create_self(${SHORT_NAME}.self ${SHORT_NAME}.elf)
vita_create_vpk(${SHORT_NAME}.vpk ${VITA_TITLEID} ${SHORT_NAME}.self
VERSION ${VITA_VERSION}
NAME ${VITA_APP_NAME}
FILE sce_sys/pic0.png sce_sys/pic0.png
FILE sce_sys/icon0.png sce_sys/icon0.png
FILE sce_sys/livearea/contents/bg.png sce_sys/livearea/contents/bg.png
FILE sce_sys/livearea/contents/frame1.png sce_sys/livearea/contents/frame1.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
FILE assets/emoji/emojispritesheettable.json assets/emoji/emojispritesheettable.json
FILE assets/emoji/emojispritesheet.png assets/emoji/emojispritesheet.png
FILE assets/font/droidsans.ttf assets/font/droidsans.ttf
FILE assets/font/whitney-book.ttf assets/font/whitney-book.ttf
FILE assets/images/BinaryFile.png assets/images/BinaryFile.png
FILE assets/images/Vitacord-DMIcon-8BIT.png assets/images/Vitacord-DMIcon-8BIT.png
FILE assets/images/Vitacord-statbar-icon.png assets/images/Vitacord-statbar-icon.png
FILE assets/images/Vitacord-Loading-8BIT.png assets/images/Vitacord-Loading-8BIT.png
FILE assets/images/Vitacord-GuildsBG-8BIT.png assets/images/Vitacord-GuildsBG-8BIT.png
FILE assets/images/Vitacord-LoginForm-8BIT.png assets/images/Vitacord-LoginForm-8BIT.png
FILE assets/images/Vitacord-messager-input.png assets/images/Vitacord-messager-input.png
FILE assets/images/Vitacord-Background-8BIT.png assets/images/Vitacord-Background-8BIT.png
FILE assets/images/Vitacord-statbar-battery.png assets/images/Vitacord-statbar-battery.png
FILE assets/images/Vitacord-USERIcondefault-8BIT.png assets/images/Vitacord-USERIcondefault-8BIT.png
FILE assets/images/Vitacord-sidebar-default-usericon.png assets/images/Vitacord-sidebar-default-usericon.png
FILE assets/images/Vitacord-statbar-battery-charge.png assets/images/Vitacord-statbar-battery-charge.png
FILE assets/images/loading/thumb001.png assets/images/loading/thumb001.png
FILE assets/images/loading/thumb002.png assets/images/loading/thumb002.png
FILE assets/images/loading/thumb003.png assets/images/loading/thumb003.png
FILE assets/images/loading/thumb004.png assets/images/loading/thumb004.png
FILE assets/images/loading/thumb005.png assets/images/loading/thumb005.png
FILE assets/images/loading/thumb006.png assets/images/loading/thumb006.png
FILE assets/images/loading/thumb007.png assets/images/loading/thumb007.png
FILE assets/images/loading/thumb008.png assets/images/loading/thumb008.png
FILE assets/images/loading/thumb009.png assets/images/loading/thumb009.png
FILE assets/images/loading/thumb010.png assets/images/loading/thumb010.png
FILE assets/images/loading/thumb011.png assets/images/loading/thumb011.png
FILE assets/images/loading/thumb012.png assets/images/loading/thumb012.png
FILE assets/images/loading/thumb013.png assets/images/loading/thumb013.png
FILE assets/images/loading/thumb014.png assets/images/loading/thumb014.png
FILE assets/images/loading/thumb015.png assets/images/loading/thumb015.png
FILE assets/images/loading/thumb016.png assets/images/loading/thumb016.png
FILE assets/images/loading/thumb017.png assets/images/loading/thumb017.png
FILE assets/images/loading/thumb018.png assets/images/loading/thumb018.png
FILE assets/images/loading/thumb019.png assets/images/loading/thumb019.png
FILE assets/images/loading/thumb020.png assets/images/loading/thumb020.png
FILE assets/images/loading/thumb021.png assets/images/loading/thumb021.png
FILE assets/images/loading/thumb022.png assets/images/loading/thumb022.png
FILE assets/images/loading/thumb023.png assets/images/loading/thumb023.png
FILE assets/images/loading/thumb024.png assets/images/loading/thumb024.png
FILE assets/images/loading/thumb025.png assets/images/loading/thumb025.png
FILE assets/images/loading/thumb026.png assets/images/loading/thumb026.png
FILE assets/images/loading/thumb027.png assets/images/loading/thumb027.png
FILE assets/images/loading/thumb028.png assets/images/loading/thumb028.png
FILE assets/images/loading/thumb029.png assets/images/loading/thumb029.png
FILE assets/images/loading/thumb030.png assets/images/loading/thumb030.png
FILE assets/images/loading/thumb031.png assets/images/loading/thumb031.png
FILE assets/images/loading/thumb032.png assets/images/loading/thumb032.png
FILE assets/images/loading/thumb033.png assets/images/loading/thumb033.png
FILE assets/images/loading/thumb034.png assets/images/loading/thumb034.png
)