summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt21
1 files changed, 12 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1bb50791..fc579321 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,20 +18,20 @@
18cmake_minimum_required (VERSION 3.9) 18cmake_minimum_required (VERSION 3.9)
19 19
20project (Lagrange 20project (Lagrange
21 VERSION 1.10.0 21 VERSION 1.10.4
22 DESCRIPTION "A Beautiful Gemini Client" 22 DESCRIPTION "A Beautiful Gemini Client"
23 LANGUAGES C 23 LANGUAGES C
24) 24)
25set (COPYRIGHT_YEAR 2022) 25set (COPYRIGHT_YEAR 2022)
26if (IOS) 26if (IOS)
27 set (PROJECT_VERSION 1.10) 27 set (PROJECT_VERSION 1.10)
28 set (IOS_BUNDLE_VERSION 9) 28 set (IOS_BUNDLE_VERSION 12)
29 set (IOS_BUILD_DATE "2022-01-01") 29 set (IOS_BUILD_DATE "2022-01-28")
30endif () 30endif ()
31if (ANDROID) 31if (ANDROID)
32 set (PROJECT_VERSION 1.10) 32 set (PROJECT_VERSION 1.10)
33 set (ANDROID_BUILD_VERSION a3) # remember to update Gradle, AndroidManifest.xml 33 set (ANDROID_BUILD_VERSION a5) # remember to update Gradle, AndroidManifest.xml
34 set (ANDROID_BUILD_DATE "2022-01-03") 34 set (ANDROID_BUILD_DATE "2022-01-24")
35endif () 35endif ()
36 36
37# Defaults that depend on environment. 37# Defaults that depend on environment.
@@ -118,6 +118,8 @@ elseif (ANDROID)
118else () 118else ()
119 list (APPEND RESOURCES 119 list (APPEND RESOURCES
120 res/about/help.gmi 120 res/about/help.gmi
121 res/about/version-0.13.gmi
122 res/about/version-1.5.gmi
121 res/about/version.gmi 123 res/about/version.gmi
122 res/arg-help.txt 124 res/arg-help.txt
123 ) 125 )
@@ -232,7 +234,7 @@ set (SOURCES
232 src/ui/scrollwidget.c 234 src/ui/scrollwidget.c
233 src/ui/scrollwidget.h 235 src/ui/scrollwidget.h
234 src/ui/sidebarwidget.c 236 src/ui/sidebarwidget.c
235 src/ui/sidebarwidget.h 237 src/ui/sidebarwidget.h
236 src/ui/text.c 238 src/ui/text.c
237 src/ui/text.h 239 src/ui/text.h
238 src/ui/touch.c 240 src/ui/touch.c
@@ -294,6 +296,7 @@ elseif (APPLE)
294 add_definitions (-DiPlatformAppleDesktop=1) 296 add_definitions (-DiPlatformAppleDesktop=1)
295 list (APPEND SOURCES src/macos.m src/macos.h) 297 list (APPEND SOURCES src/macos.m src/macos.h)
296 list (APPEND RESOURCES "res/Lagrange.icns") 298 list (APPEND RESOURCES "res/Lagrange.icns")
299 set_source_files_properties ("res/Lagrange.icns" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
297endif () 300endif ()
298if (MSYS) 301if (MSYS)
299 set (WINRC_FILE_VERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH},0) 302 set (WINRC_FILE_VERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH},0)
@@ -301,7 +304,6 @@ if (MSYS)
301 configure_file (res/lagrange.rc.in ${CMAKE_CURRENT_BINARY_DIR}/lagrange.rc NEWLINE_STYLE WIN32) 304 configure_file (res/lagrange.rc.in ${CMAKE_CURRENT_BINARY_DIR}/lagrange.rc NEWLINE_STYLE WIN32)
302 list (APPEND SOURCES src/win32.c src/win32.h ${CMAKE_CURRENT_BINARY_DIR}/lagrange.rc) 305 list (APPEND SOURCES src/win32.c src/win32.h ${CMAKE_CURRENT_BINARY_DIR}/lagrange.rc)
303endif () 306endif ()
304#set_source_files_properties (${RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
305if (MSYS OR (APPLE AND NOT MOBILE) OR (UNIX AND NOT MOBILE)) 307if (MSYS OR (APPLE AND NOT MOBILE) OR (UNIX AND NOT MOBILE))
306 add_definitions (-DiPlatformPcDesktop=1) 308 add_definitions (-DiPlatformPcDesktop=1)
307endif () 309endif ()
@@ -435,7 +437,7 @@ if (APPLE)
435 XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "fi.skyjake.lagrange" 437 XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "fi.skyjake.lagrange"
436 ) 438 )
437 if (IOS) 439 if (IOS)
438 target_compile_definitions (app PUBLIC 440 target_compile_definitions (app PUBLIC
439 LAGRANGE_IOS_VERSION="${IOS_BUNDLE_VERSION}" 441 LAGRANGE_IOS_VERSION="${IOS_BUNDLE_VERSION}"
440 LAGRANGE_IOS_BUILD_DATE="${IOS_BUILD_DATE}" 442 LAGRANGE_IOS_BUILD_DATE="${IOS_BUILD_DATE}"
441 ) 443 )
@@ -464,7 +466,7 @@ endif ()
464if (MSYS) 466if (MSYS)
465 target_link_libraries (app PUBLIC d2d1 uuid dwmapi) # querying DPI 467 target_link_libraries (app PUBLIC d2d1 uuid dwmapi) # querying DPI
466 if (ENABLE_WINSPARKLE) 468 if (ENABLE_WINSPARKLE)
467 target_link_libraries (app PUBLIC winsparkle) 469 target_link_libraries (app PUBLIC winsparkle)
468 endif () 470 endif ()
469endif () 471endif ()
470if (UNIX) 472if (UNIX)
@@ -522,6 +524,7 @@ MimeType=x-scheme-handler/gemini;x-scheme-handler/gopher;
522 install (FILES res/fi.skyjake.Lagrange.appdata.xml 524 install (FILES res/fi.skyjake.Lagrange.appdata.xml
523 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo 525 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo
524 ) 526 )
527 install (FILES res/lagrange.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
525 if (NOT ENABLE_RELATIVE_EMBED) 528 if (NOT ENABLE_RELATIVE_EMBED)
526 target_compile_definitions (app PUBLIC 529 target_compile_definitions (app PUBLIC
527 LAGRANGE_EMB_BIN="${CMAKE_INSTALL_FULL_DATADIR}/lagrange/resources.lgr") 530 LAGRANGE_EMB_BIN="${CMAKE_INSTALL_FULL_DATADIR}/lagrange/resources.lgr")