mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-19 19:15:08 +00:00
Define both pkg-config and pkgconfig for meson
In Meson cross-files, "pkgconfig" was deprecated in favor of
"pkg-config" in meson 1.3.0.
The new name is used since 85a94dd4b5
to
avoid a warning, but then it fails with older versions of meson.
To avoid the problem, define both pkg-config and pkgconfig.
> For backward compatibility it is still allowed to define both with the
> same value, in that case no deprecation warning is printed.
<https://mesonbuild.com/Release-notes-for-1-3-0.html#machine-files-pkgconfig-field-deprecated-and-replaced-by-pkgconfig>
This commit is contained in:
parent
6469054b15
commit
f751274b17
3 changed files with 4 additions and 6 deletions
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
@ -137,9 +137,6 @@ jobs:
|
||||||
libavutil-dev libswresample-dev libusb-1.0-0 libusb-1.0-0-dev \
|
libavutil-dev libswresample-dev libusb-1.0-0 libusb-1.0-0-dev \
|
||||||
mingw-w64 mingw-w64-tools libz-mingw-w64-dev
|
mingw-w64 mingw-w64-tools libz-mingw-w64-dev
|
||||||
|
|
||||||
- name: Workaround for old meson version run by Github Actions
|
|
||||||
run: sed -i 's/^pkg-config/pkgconfig/' cross_win32.txt
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: release/build_windows.sh 32
|
run: release/build_windows.sh 32
|
||||||
|
|
||||||
|
@ -171,9 +168,6 @@ jobs:
|
||||||
libavutil-dev libswresample-dev libusb-1.0-0 libusb-1.0-0-dev \
|
libavutil-dev libswresample-dev libusb-1.0-0 libusb-1.0-0-dev \
|
||||||
mingw-w64 mingw-w64-tools libz-mingw-w64-dev
|
mingw-w64 mingw-w64-tools libz-mingw-w64-dev
|
||||||
|
|
||||||
- name: Workaround for old meson version run by Github Actions
|
|
||||||
run: sed -i 's/^pkg-config/pkgconfig/' cross_win64.txt
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: release/build_windows.sh 64
|
run: release/build_windows.sh 64
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@ cpp = 'i686-w64-mingw32-g++'
|
||||||
ar = 'i686-w64-mingw32-ar'
|
ar = 'i686-w64-mingw32-ar'
|
||||||
strip = 'i686-w64-mingw32-strip'
|
strip = 'i686-w64-mingw32-strip'
|
||||||
pkg-config = 'i686-w64-mingw32-pkg-config'
|
pkg-config = 'i686-w64-mingw32-pkg-config'
|
||||||
|
# backward compatibility
|
||||||
|
pkgconfig = 'i686-w64-mingw32-pkg-config'
|
||||||
windres = 'i686-w64-mingw32-windres'
|
windres = 'i686-w64-mingw32-windres'
|
||||||
|
|
||||||
[host_machine]
|
[host_machine]
|
||||||
|
|
|
@ -7,6 +7,8 @@ cpp = 'x86_64-w64-mingw32-g++'
|
||||||
ar = 'x86_64-w64-mingw32-ar'
|
ar = 'x86_64-w64-mingw32-ar'
|
||||||
strip = 'x86_64-w64-mingw32-strip'
|
strip = 'x86_64-w64-mingw32-strip'
|
||||||
pkg-config = 'x86_64-w64-mingw32-pkg-config'
|
pkg-config = 'x86_64-w64-mingw32-pkg-config'
|
||||||
|
# backward compatibility
|
||||||
|
pkgconfig = 'x86_64-w64-mingw32-pkg-config'
|
||||||
windres = 'x86_64-w64-mingw32-windres'
|
windres = 'x86_64-w64-mingw32-windres'
|
||||||
|
|
||||||
[host_machine]
|
[host_machine]
|
||||||
|
|
Loading…
Add table
Reference in a new issue