diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-11-03 18:12:45 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-11-03 18:12:45 +0200 |
commit | 8913f836cba97fdd509314456eca9fb0df7aa035 (patch) | |
tree | ab09a9de3d75920687f1f12b576870b34f2b976b /CMakeLists.txt | |
parent | db0f86a18a97fc719a1d7afbb971bf63594d0829 (diff) | |
parent | e84188ee0e03d60b9cd20df72ac10701dedae9e6 (diff) |
Merge branch 'dev' of skyjake.fi:gemini/lagrange into dev
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6abfd094..378a1bba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -18,7 +18,7 @@ | |||
18 | cmake_minimum_required (VERSION 3.9) | 18 | cmake_minimum_required (VERSION 3.9) |
19 | 19 | ||
20 | project (Lagrange | 20 | project (Lagrange |
21 | VERSION 1.8.0 | 21 | VERSION 1.8.1 |
22 | DESCRIPTION "A Beautiful Gemini Client" | 22 | DESCRIPTION "A Beautiful Gemini Client" |
23 | LANGUAGES C | 23 | LANGUAGES C |
24 | ) | 24 | ) |
@@ -65,25 +65,6 @@ include (Depends.cmake) | |||
65 | # Package resources. | 65 | # Package resources. |
66 | message (STATUS "Preparing resources...") | 66 | message (STATUS "Preparing resources...") |
67 | make_fontpack (res/default.fontpack) | 67 | make_fontpack (res/default.fontpack) |
68 | # Fonts to install as separate files. | ||
69 | set (FONTPACKS | ||
70 | # arabic.fontpack | ||
71 | # cjk.fontpack | ||
72 | # firasans.fontpack | ||
73 | # literata.fontpack | ||
74 | # nunito.fontpack | ||
75 | # tinos.fontpack | ||
76 | ) | ||
77 | foreach (fp ${FONTPACKS}) | ||
78 | make_fontpack (res/${fp}) | ||
79 | set_source_files_properties (${CMAKE_BINARY_DIR}/${fp} | ||
80 | PROPERTIES MACOSX_PACKAGE_LOCATION Resources) | ||
81 | endforeach (fp) | ||
82 | macro (install_fonts dst) | ||
83 | foreach (fp ${FONTPACKS}) | ||
84 | install (FILES ${CMAKE_BINARY_DIR}/${fp} DESTINATION ${dst}) | ||
85 | endforeach (fp) | ||
86 | endmacro () | ||
87 | set (EMBED_RESOURCES | 68 | set (EMBED_RESOURCES |
88 | res/about/about.gmi | 69 | res/about/about.gmi |
89 | res/about/help.gmi | 70 | res/about/help.gmi |
@@ -240,11 +221,6 @@ set (SOURCES | |||
240 | ${CMAKE_CURRENT_BINARY_DIR}/embedded.h | 221 | ${CMAKE_CURRENT_BINARY_DIR}/embedded.h |
241 | ${CMAKE_CURRENT_BINARY_DIR}/resources.lgr | 222 | ${CMAKE_CURRENT_BINARY_DIR}/resources.lgr |
242 | ) | 223 | ) |
243 | if (APPLE) | ||
244 | foreach (fp ${FONTPACKS}) | ||
245 | list (APPEND SOURCES ${CMAKE_BINARY_DIR}/${fp}) | ||
246 | endforeach (fp) | ||
247 | endif () | ||
248 | if (ENABLE_IPC) | 224 | if (ENABLE_IPC) |
249 | list (APPEND SOURCES | 225 | list (APPEND SOURCES |
250 | src/ipc.c | 226 | src/ipc.c |
@@ -444,7 +420,6 @@ if (MSYS) | |||
444 | if (NOT ENABLE_RESOURCE_EMBED) | 420 | if (NOT ENABLE_RESOURCE_EMBED) |
445 | install (FILES ${EMB_BIN} DESTINATION .) | 421 | install (FILES ${EMB_BIN} DESTINATION .) |
446 | endif () | 422 | endif () |
447 | install_fonts (.) | ||
448 | install (PROGRAMS | 423 | install (PROGRAMS |
449 | ${SDL2_LIBDIR}/SDL2.dll | 424 | ${SDL2_LIBDIR}/SDL2.dll |
450 | res/urlopen.bat | 425 | res/urlopen.bat |
@@ -460,7 +435,6 @@ elseif (HAIKU) | |||
460 | LAGRANGE_EMB_BIN="${CMAKE_INSTALL_PREFIX}/resources.lgr") | 435 | LAGRANGE_EMB_BIN="${CMAKE_INSTALL_PREFIX}/resources.lgr") |
461 | install (FILES ${EMB_BIN} DESTINATION .) | 436 | install (FILES ${EMB_BIN} DESTINATION .) |
462 | endif () | 437 | endif () |
463 | install_fonts (.) | ||
464 | elseif (UNIX AND NOT APPLE) | 438 | elseif (UNIX AND NOT APPLE) |
465 | set_target_properties (app PROPERTIES | 439 | set_target_properties (app PROPERTIES |
466 | INSTALL_RPATH_USE_LINK_PATH YES | 440 | INSTALL_RPATH_USE_LINK_PATH YES |
@@ -493,5 +467,4 @@ MimeType=x-scheme-handler/gemini;x-scheme-handler/gopher; | |||
493 | endif () | 467 | endif () |
494 | install (FILES ${EMB_BIN} DESTINATION share/lagrange) | 468 | install (FILES ${EMB_BIN} DESTINATION share/lagrange) |
495 | endif () | 469 | endif () |
496 | install_fonts (share/lagrange) | ||
497 | endif () | 470 | endif () |