Skip to content

Commit 2ddc590

Browse files
committed
Merge branch 'dev' into release
# Conflicts: # CMakeLists.txt # res/about/version.gmi
2 parents ed6f201 + d0f206c commit 2ddc590

32 files changed

+3329
-101
lines changed

CMakeLists.txt

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
cmake_minimum_required (VERSION 3.10)
1919

2020
project (Lagrange
21-
VERSION 1.18.5
21+
VERSION 1.18.6
2222
DESCRIPTION "A Beautiful Gemini Client"
2323
LANGUAGES C
2424
)
2525
set (COPYRIGHT_YEAR 2025)
2626
if (IOS)
2727
set (PROJECT_VERSION 1.18)
28-
set (IOS_BUNDLE_VERSION 9)
29-
set (IOS_BUILD_DATE "2025-03-09")
28+
set (IOS_BUNDLE_VERSION 10)
29+
set (IOS_BUILD_DATE "2025-06-04")
3030
endif ()
3131
if (ANDROID)
3232
set (PROJECT_VERSION 1.18)
@@ -111,6 +111,7 @@ set (RESOURCES
111111
res/lang/nl.bin
112112
res/lang/pl.bin
113113
res/lang/ru.bin
114+
res/lang/sgs.bin
114115
res/lang/sk.bin
115116
res/lang/sr.bin
116117
res/lang/tok.bin
@@ -149,7 +150,7 @@ else ()
149150
res/arg-help.txt
150151
)
151152
endif ()
152-
if ((UNIX AND NOT APPLE) OR MSYS)
153+
if ((UNIX AND NOT APPLE) OR MSYS OR MINGW)
153154
list (APPEND RESOURCES res/lagrange-64.png)
154155
endif ()
155156
set (EMB_BIN ${CMAKE_CURRENT_BINARY_DIR}/resources.lgr)
@@ -362,14 +363,14 @@ elseif (APPLE)
362363
list (APPEND RESOURCES "res/Lagrange.icns")
363364
set_source_files_properties ("res/Lagrange.icns" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
364365
endif ()
365-
if (MSYS)
366+
if (MSYS OR MINGW)
366367
set (WINRC_FILE_VERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH},0)
367368
set (WINRC_PRODUCT_VERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},0,0)
368369
configure_file (res/lagrange.rc.in ${CMAKE_CURRENT_BINARY_DIR}/lagrange.rc NEWLINE_STYLE WIN32)
369370
list (APPEND SOURCES src/win32.c src/win32.h ${CMAKE_CURRENT_BINARY_DIR}/lagrange.rc)
370371
list (APPEND TUI_SOURCES src/win32.c src/win32.h)
371372
endif ()
372-
if (MSYS OR (UNIX AND NOT MOBILE AND NOT APPLE))
373+
if (MSYS OR MINGW OR (UNIX AND NOT MOBILE AND NOT APPLE))
373374
add_definitions (-DiPlatformPcDesktop=1)
374375
endif ()
375376
if (MOBILE)
@@ -449,7 +450,7 @@ if (ENABLE_GUI)
449450
if (APPLE AND NOT MOBILE)
450451
target_compile_definitions (app PUBLIC -DiPlatformAppleDesktop=1)
451452
endif ()
452-
if (ENABLE_CUSTOM_FRAME AND MSYS)
453+
if (ENABLE_CUSTOM_FRAME AND (MSYS OR MINGW))
453454
target_compile_definitions (app PUBLIC LAGRANGE_ENABLE_CUSTOM_FRAME=1)
454455
endif ()
455456
if (ENABLE_KERNING)
@@ -570,7 +571,7 @@ if (ENABLE_GUI)
570571
LAGRANGE_ANDROID_BUILD_DATE="${ANDROID_BUILD_DATE}"
571572
)
572573
endif ()
573-
if (MSYS)
574+
if (MSYS OR MINGW)
574575
target_link_libraries (app PUBLIC d2d1 uuid dwmapi) # querying DPI
575576
if (ENABLE_WINSPARKLE)
576577
target_link_libraries (app PUBLIC winsparkle)
@@ -614,6 +615,16 @@ if (MSYS)
614615
if (INSTALL_THE_FOUNDATION)
615616
install (PROGRAMS $<TARGET_FILE:the_Foundation::the_Foundation> DESTINATION .)
616617
endif ()
618+
elseif (MINGW)
619+
if (TARGET app)
620+
install (TARGETS app DESTINATION .)
621+
install (PROGRAMS ${SDL2_LIBDIR}/SDL2.dll DESTINATION .)
622+
endif ()
623+
install (FILES ${EMB_BIN} DESTINATION .)
624+
install (PROGRAMS res/urlopen.bat DESTINATION .)
625+
if (INSTALL_THE_FOUNDATION)
626+
install (PROGRAMS $<TARGET_FILE:the_Foundation::the_Foundation> DESTINATION .)
627+
endif ()
617628
elseif (HAIKU)
618629
if (TARGET app)
619630
install (TARGETS app DESTINATION .)

cmake/Depends.cmake

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ if (ENABLE_HARFBUZZ)
7373
ExternalProject_Add (harfbuzz-ext
7474
PREFIX ${CMAKE_BINARY_DIR}/harfbuzz-ext
7575
SOURCE_DIR ${CMAKE_SOURCE_DIR}/lib/harfbuzz
76-
CONFIGURE_COMMAND NINJA=${NINJA_EXECUTABLE} ${MESON_EXECUTABLE}
76+
CONFIGURE_COMMAND ${MESON_EXECUTABLE}
7777
${CMAKE_SOURCE_DIR}/lib/harfbuzz
7878
-Dbuildtype=release
7979
-Ddefault_library=both
@@ -85,6 +85,7 @@ if (ENABLE_HARFBUZZ)
8585
--prefix ${_dst}
8686
BUILD_COMMAND ${NINJA_EXECUTABLE} install
8787
INSTALL_COMMAND ""
88+
BUILD_BYPRODUCTS ${_dst}/lib/libharfbuzz.a
8889
)
8990
list (APPEND _dependsToBuild harfbuzz-ext)
9091
add_library (harfbuzz-lib INTERFACE)
@@ -93,6 +94,8 @@ if (ENABLE_HARFBUZZ)
9394
# Link dynamically.
9495
target_link_libraries (harfbuzz-lib INTERFACE -L${_dst}/lib harfbuzz)
9596
install (PROGRAMS ${_dst}/bin/msys-harfbuzz-0.dll DESTINATION .)
97+
elseif (MINGW)
98+
target_link_libraries (harfbuzz-lib INTERFACE ${_dst}/lib/libharfbuzz.a)
9699
else ()
97100
if (APPLE)
98101
target_link_libraries (harfbuzz-lib INTERFACE ${_dst}/lib/libharfbuzz.0.dylib)
@@ -139,7 +142,7 @@ if (ENABLE_FRIBIDI)
139142
ExternalProject_Add (fribidi-ext
140143
PREFIX ${CMAKE_BINARY_DIR}/fribidi-ext
141144
SOURCE_DIR ${CMAKE_SOURCE_DIR}/lib/fribidi
142-
CONFIGURE_COMMAND NINJA=${NINJA_EXECUTABLE} ${MESON_EXECUTABLE}
145+
CONFIGURE_COMMAND ${MESON_EXECUTABLE}
143146
${CMAKE_SOURCE_DIR}/lib/fribidi
144147
-Dbuildtype=release
145148
-Ddefault_library=static
@@ -160,6 +163,7 @@ if (ENABLE_FRIBIDI)
160163
add_library (fribidi-lib INTERFACE)
161164
target_include_directories (fribidi-lib INTERFACE ${_dst}/include)
162165
target_link_libraries (fribidi-lib INTERFACE ${_dst}/lib/libfribidi.a)
166+
target_compile_definitions (fribidi-lib INTERFACE FRIBIDI_LIB_STATIC=1)
163167
set (FRIBIDI_FOUND YES)
164168
endif ()
165169
endif ()

lib/the_Foundation

Submodule the_Foundation updated from 4dbb415 to 77165c3

po/compile.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# Parses all the .po files and generates binary language strings to be loaded
2+
# Parses all the .po files and generates binary language strings to be loaded
33
# at runtime via embedded data.
44

55
import os, sys
@@ -23,6 +23,7 @@
2323
'nl',
2424
'pl',
2525
'ru',
26+
'sgs',
2627
'sk',
2728
'sr',
2829
'tok',
@@ -64,9 +65,9 @@ def unquote(string):
6465
is_escape = True
6566
else:
6667
out += c
67-
return out
68-
69-
68+
return out
69+
70+
7071
def parse_po(src):
7172
messages = []
7273
is_multi = False # string is multiple lines
@@ -87,7 +88,7 @@ def parse_po(src):
8788
elif line.startswith('msgid'):
8889
msg_id = unquote(line[6:])
8990
is_plural = False
90-
elif line.startswith('msgstr'):
91+
elif line.startswith('msgstr'):
9192
if line[6] == '[':
9293
msg_index = int(line[7])
9394
line = line[9:]
@@ -111,15 +112,15 @@ def parse_po(src):
111112
pluralized.append((msg_id, msg_str))
112113
#print(msg_id, '=>', msg_str)
113114
return pluralized
114-
115-
115+
116+
116117
def compile_string(msg_id, msg_str):
117118
return msg_id.encode('utf-8') + bytes([0]) + \
118119
msg_str.encode('utf-8') + bytes([0])
119-
120+
120121

121122
os.chdir(os.path.dirname(__file__))
122-
123+
123124
if MODE == 'compile':
124125
BASE_STRINGS = {}
125126
PLURALS = set()
@@ -156,4 +157,4 @@ def compile_string(msg_id, msg_str):
156157
for msg_id, _ in messages:
157158
print(f'\nmsgid "{msg_id}"\nmsgstr ""\n', file=f)
158159

159-
160+

po/eu.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Report-Msgid-Bugs-To: [email protected]\n"
4-
"PO-Revision-Date: 2024-10-06 10:28+0000\n"
4+
"PO-Revision-Date: 2025-06-26 16:44+0000\n"
55
"Last-Translator: xabi <[email protected]>\n"
66
"Language-Team: Basque <http://weblate.skyjake.fi/projects/lagrange/ui/eu/>\n"
77
"Language: eu\n"
@@ -2890,3 +2890,7 @@ msgstr "Bidali kopia bat nire buruari"
28902890

28912891
msgid "upload.type"
28922892
msgstr "Edukia"
2893+
2894+
#, fuzzy
2895+
msgid "prefs.expandline"
2896+
msgstr "Hedatu lerro luzeetara:"

po/gl.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ msgstr ""
33
"Project-Id-Version: PACKAGE VERSION\n"
44
"Report-Msgid-Bugs-To: [email protected]\n"
55
"POT-Creation-Date: 2023-01-25 09:20+0000\n"
6-
"PO-Revision-Date: 2024-10-06 10:28+0000\n"
6+
"PO-Revision-Date: 2025-07-07 06:44+0000\n"
77
"Last-Translator: Xosé M. <[email protected]>\n"
88
"Language-Team: Galician <http://weblate.skyjake.fi/projects/lagrange/ui/gl/>"
99
"\n"
@@ -2859,3 +2859,6 @@ msgstr "Envíame unha copia"
28592859

28602860
msgid "upload.type"
28612861
msgstr "Contido"
2862+
2863+
msgid "prefs.expandline"
2864+
msgstr "Despregar en liñas longas:"

0 commit comments

Comments
 (0)