summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt27
1 files changed, 0 insertions, 27 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5f2d65a..4cafc4fa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -65,25 +65,6 @@ include (Depends.cmake)
65# Package resources. 65# Package resources.
66message (STATUS "Preparing resources...") 66message (STATUS "Preparing resources...")
67make_fontpack (res/default.fontpack) 67make_fontpack (res/default.fontpack)
68# Fonts to install as separate files.
69set (FONTPACKS
70# arabic.fontpack
71# cjk.fontpack
72# firasans.fontpack
73# literata.fontpack
74# nunito.fontpack
75# tinos.fontpack
76)
77foreach (fp ${FONTPACKS})
78 make_fontpack (res/${fp})
79 set_source_files_properties (${CMAKE_BINARY_DIR}/${fp}
80 PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
81endforeach (fp)
82macro (install_fonts dst)
83 foreach (fp ${FONTPACKS})
84 install (FILES ${CMAKE_BINARY_DIR}/${fp} DESTINATION ${dst})
85 endforeach (fp)
86endmacro ()
87set (EMBED_RESOURCES 68set (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)
243if (APPLE)
244 foreach (fp ${FONTPACKS})
245 list (APPEND SOURCES ${CMAKE_BINARY_DIR}/${fp})
246 endforeach (fp)
247endif ()
248if (ENABLE_IPC) 224if (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 (.)
464elseif (UNIX AND NOT APPLE) 438elseif (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)
497endif () 470endif ()