-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
96 lines (80 loc) · 4.34 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
cmake_minimum_required(VERSION 3.1)
project(game.shader.presets)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(CheckIncludeFiles)
# --- Add-on Dependencies ------------------------------------------------------
find_package(Kodi REQUIRED)
find_package(kodiplatform REQUIRED)
find_package(p8-platform REQUIRED)
include_directories(${INCLUDES}
${PROJECT_SOURCE_DIR}/src/depends/libretro-common/include
${PROJECT_SOURCE_DIR}/src/depends
${PROJECT_SOURCE_DIR}/src
${KODI_INCLUDE_DIR}/.. # Hack way with "/..", need bigger Kodi cmake rework to match right include ways (becomes done in future)
${kodiplatform_INCLUDE_DIRS}
${p8-platform_INCLUDE_DIRS})
set(SHADERPRESETS_SOURCES src/addon.cpp
src/log/Log.cpp
src/log/LogAddon.cpp
src/log/LogConsole.cpp
src/utils/RarchTranslator.cpp
src/utils/StringUtils.cpp
src/utils/URIUtils.cpp
src/depends/file_path_special.c
src/depends/gfx/video_shader_parse.c
src/depends/gfx/video_state_tracker.c
src/depends/libretro-common/compat/compat_posix_string.c
src/depends/libretro-common/compat/compat_strcasestr.c
src/depends/libretro-common/compat/compat_strl.c
src/depends/libretro-common/file/config_file.c
src/depends/libretro-common/file/file_path.c
src/depends/libretro-common/file/retro_stat.c
src/depends/libretro-common/hash/rhash.c
src/depends/libretro-common/lists/string_list.c
src/depends/libretro-common/streams/file_stream.c
src/depends/libretro-common/string/stdstring.c)
set(SHADERPRESETS_HEADERS src/addon.h
src/log/ILog.h
src/log/Log.h
src/log/LogAddon.h
src/log/LogConsole.h
src/utils/CommonIncludes.h
src/utils/CommonMacros.h
src/utils/RarchTranslator.h
src/utils/StringUtils.h
src/utils/URIUtils.h
src/depends/file_path_special.h
src/depends/gfx/video_shader_parse.h
src/depends/gfx/video_state_tracker.h
src/depends/libretro-common/include/boolean.h
src/depends/libretro-common/include/compat/msvc.h
src/depends/libretro-common/include/compat/posix_string.h
src/depends/libretro-common/include/compat/strcasestr.h
src/depends/libretro-common/include/compat/strl.h
src/depends/libretro-common/include/file/config_file.h
src/depends/libretro-common/include/file/file_path.h
src/depends/libretro-common/include/lists/string_list.h
src/depends/libretro-common/include/retro_assert.h
src/depends/libretro-common/include/retro_stat.h
src/depends/libretro-common/include/retro_common_api.h
src/depends/libretro-common/include/retro_inline.h
src/depends/libretro-common/include/retro_miscellaneous.h
src/depends/libretro-common/include/rhash.h
src/depends/libretro-common/include/streams/file_stream.h
src/depends/libretro-common/include/string/stdstring.h)
add_definitions(-DRARCH_INTERNAL)
if(CORE_SYSTEM_NAME STREQUAL windows)
list(APPEND SHADERPRESETS_SOURCES src/utils/windows/CharsetConverter.cpp)
list(APPEND SHADERPRESETS_HEADERS src/utils/windows/CharsetConverter.h)
endif()
check_include_files("syslog.h" HAVE_SYSLOG)
if(HAVE_SYSLOG)
list(APPEND SHADERPRESETS_SOURCES src/log/LogSyslog.cpp)
list(APPEND SHADERPRESETS_HEADERS src/log/LogSyslog.h)
endif()
list(APPEND DEPLIBS ${kodiplatform_LIBRARIES}
${p8-platform_LIBRARIES})
if(CORE_SYSTEM_NAME STREQUAL osx)
list(APPEND DEPLIBS "-framework CoreFoundation")
endif()
build_addon(game.shader.presets SHADERPRESETS DEPLIBS)