include unicode patch in lua meson wrap (#1908)

This commit is contained in:
Jan 2024-10-22 19:19:42 +02:00 committed by GitHub
parent 1ce8cd1d82
commit efa257ddbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 2 additions and 7 deletions

View File

@ -230,7 +230,6 @@ jobs:
shell: bash shell: bash
run: | run: |
meson subprojects download meson subprojects download
cat resources/windows/001-lua-unicode.diff | patch -Np1 -d "$LUA_SUBPROJECT_PATH"
- name: Configure - name: Configure
run: meson setup --wrap-mode=forcefallback build run: meson setup --wrap-mode=forcefallback build

View File

@ -2,7 +2,7 @@ project('lite-xl',
['c'], ['c'],
version : '2.1.5', version : '2.1.5',
license : 'MIT', license : 'MIT',
meson_version : '>= 0.56', meson_version : '>= 0.63',
default_options : [ default_options : [
'c_std=gnu11' 'c_std=gnu11'
] ]

View File

@ -17,7 +17,6 @@ This folder contains resources that is used for building or packaging the projec
- `macos/background.tiff`: TIFF image for packaging macOS DMGs. - `macos/background.tiff`: TIFF image for packaging macOS DMGs.
- `macos/Info.plist.in`: Template for generating `info.plist` on macOS. See `macos/macos-retina-display.md` for details. - `macos/Info.plist.in`: Template for generating `info.plist` on macOS. See `macos/macos-retina-display.md` for details.
- `macos/lite-xl-dmg.py`: Configuration options for dmgbuild for packaging macOS DMGs. - `macos/lite-xl-dmg.py`: Configuration options for dmgbuild for packaging macOS DMGs.
- `windows/001-lua-unicode.diff`: Patch for allowing Lua to load files with UTF-8 filenames on Windows.
### Development ### Development

View File

@ -192,10 +192,6 @@ main() {
# download the subprojects so we can start patching before configure. # download the subprojects so we can start patching before configure.
# this will prevent reconfiguring the project. # this will prevent reconfiguring the project.
meson subprojects download meson subprojects download
lua_subproject_path="subprojects/$(awk -F ' *= *' '/directory/ { printf $2 }' subprojects/lua.wrap)"
if [[ -d $lua_subproject_path ]]; then
patch -d $lua_subproject_path -p1 --forward < resources/windows/001-lua-unicode.diff
fi
fi fi
CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS meson setup \ CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS meson setup \

View File

@ -8,6 +8,7 @@ patch_url = https://wrapdb.mesonbuild.com/v2/lua_5.4.6-4/get_patch
patch_hash = b5a8c9b3673fbe58afaf842041bc9551f1f742c363fd3be8d47db2e6a483b54c patch_hash = b5a8c9b3673fbe58afaf842041bc9551f1f742c363fd3be8d47db2e6a483b54c
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/lua_5.4.6-4/lua-5.4.6.tar.gz source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/lua_5.4.6-4/lua-5.4.6.tar.gz
wrapdb_version = 5.4.6-4 wrapdb_version = 5.4.6-4
diff_files = lua/lua-unicode.diff
[provide] [provide]
lua-5.4 = lua_dep lua-5.4 = lua_dep