-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vcpkg-tool-meson] Update to 1.6.0 (#41395)
- Loading branch information
Showing
6 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
diff --git a/mesonbuild/cmake/toolchain.py b/mesonbuild/cmake/toolchain.py | ||
index abf2cf6..477629e 100644 | ||
index 7d73a7c..564e6de 100644 | ||
--- a/mesonbuild/cmake/toolchain.py | ||
+++ b/mesonbuild/cmake/toolchain.py | ||
@@ -204,6 +204,6 @@ class CMakeToolchain: | ||
@@ -196,7 +196,7 @@ class CMakeToolchain: | ||
@staticmethod | ||
def is_cmdline_option(compiler: 'Compiler', arg: str) -> bool: | ||
if compiler.get_argument_syntax() == 'msvc': | ||
- return arg.startswith('/') | ||
+ return arg.startswith(('/','-')) | ||
else: | ||
return arg.startswith('-') | ||
if compiler.exelist[0] == 'zig' and arg in {'ar', 'cc', 'c++', 'dlltool', 'lib', 'ranlib', 'objcopy', 'rc'}: | ||
return True |
8 changes: 4 additions & 4 deletions
8
ports/vcpkg-tool-meson/remove-freebsd-pcfile-specialization.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py | ||
index ebe0d92..904090b 100644 | ||
index 1bdf829..5f1bfd9 100644 | ||
--- a/mesonbuild/modules/pkgconfig.py | ||
+++ b/mesonbuild/modules/pkgconfig.py | ||
@@ -693,6 +693,9 @@ class PkgConfigModule(NewExtensionModule): | ||
@@ -701,6 +701,9 @@ class PkgConfigModule(NewExtensionModule): | ||
pcfile = filebase + '.pc' | ||
pkgroot = pkgroot_name = kwargs['install_dir'] or default_install_dir | ||
if pkgroot is None: | ||
+ pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(mesonlib.OptionKey('libdir'))), 'pkgconfig') | ||
+ pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(OptionKey('libdir'))), 'pkgconfig') | ||
+ pkgroot_name = os.path.join('{libdir}', 'pkgconfig') | ||
+ elif False: | ||
if mesonlib.is_freebsd(): | ||
pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(mesonlib.OptionKey('prefix'))), 'libdata', 'pkgconfig') | ||
pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(OptionKey('prefix'))), 'libdata', 'pkgconfig') | ||
pkgroot_name = os.path.join('{prefix}', 'libdata', 'pkgconfig') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters