././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077351.3879237
meson-1.5.1/ 0000775 0001750 0001750 00000000000 14651150247 013040 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089015.0
meson-1.5.1/COPYING 0000644 0001750 0001750 00000026136 14626131367 014105 0 ustar 00jpakkane jpakkane
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/MANIFEST.in 0000644 0001750 0001750 00000000524 14626131364 014576 0 ustar 00jpakkane jpakkane graft test?cases
graft manual?tests
graft cross
graft data
graft graphics
graft man
graft tools
graft packaging
graft unittests
include contributing.md
include COPYING
include README.md
include run_cross_test.py
include run_tests.py
include run_unittests.py
include run_meson_command_tests.py
include run_project_tests.py
include meson.py
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077351.3879237
meson-1.5.1/PKG-INFO 0000644 0001750 0001750 00000003334 14651150247 014136 0 ustar 00jpakkane jpakkane Metadata-Version: 2.1
Name: meson
Version: 1.5.1
Summary: A high performance build system
Home-page: https://mesonbuild.com
Author: Jussi Pakkanen
Author-email: jpakkane@gmail.com
License: Apache License, Version 2.0
Project-URL: Source, https://github.com/mesonbuild/meson
Keywords: meson,mesonbuild,build system,cmake
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: BSD
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Build Tools
Requires-Python: >=3.7
License-File: COPYING
Provides-Extra: ninja
Requires-Dist: ninja>=1.8.2; extra == "ninja"
Provides-Extra: progress
Requires-Dist: tqdm; extra == "progress"
Provides-Extra: typing
Requires-Dist: mypy; extra == "typing"
Requires-Dist: typing_extensions; python_version < "3.8" and extra == "typing"
Meson is a cross-platform build system designed to be both as fast and as user friendly as possible. It supports many languages and compilers, including GCC, Clang, PGI, Intel, and Visual Studio. Its build definitions are written in a simple non-Turing complete DSL.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089010.0
meson-1.5.1/README.md 0000644 0001750 0001750 00000006413 14626131362 014320 0 ustar 00jpakkane jpakkane
MesonĀ® is a project to create the best possible next-generation
build system.
#### Status
[](https://pypi.python.org/pypi/meson)
[](https://dev.azure.com/jussi0947/jussi/_build/latest?definitionId=1)
[](https://codecov.io/gh/mesonbuild/meson/branch/master)
#### Dependencies
- [Python](https://python.org) (version 3.7 or newer)
- [Ninja](https://ninja-build.org) (version 1.8.2 or newer)
Latest Meson version supporting previous Python versions:
- Python 3.6: **0.61.5**
- Python 3.5: **0.56.2**
- Python 3.4: **0.45.1**
#### Installing from source
Meson is available on [PyPi](https://pypi.python.org/pypi/meson), so
it can be installed with `pip3 install meson`. The exact command to
type to install with `pip` can vary between systems, be sure to use
the Python 3 version of `pip`.
If you wish you can install it locally with the standard Python command:
```console
python3 -m pip install meson
```
For builds using Ninja, Ninja can be downloaded directly from Ninja
[GitHub release page](https://github.com/ninja-build/ninja/releases)
or via [PyPi](https://pypi.python.org/pypi/ninja)
```console
python3 -m pip install ninja
```
More on Installing Meson build can be found at the
[getting meson page](https://mesonbuild.com/Getting-meson.html).
#### Creating a standalone script
Meson can be run as a [Python zip
app](https://docs.python.org/3/library/zipapp.html). To generate the
executable run the following command:
./packaging/create_zipapp.py --outfile meson.pyz --interpreter '/usr/bin/env python3'
#### Running
Meson requires that you have a source directory and a build directory
and that these two are different. In your source root must exist a
file called `meson.build`. To generate the build system run this
command:
`meson setup `
Depending on how you obtained Meson the command might also be called
`meson.py` instead of plain `meson`. In the rest of this document we
are going to use the latter form.
You can omit either of the two directories, and Meson will substitute
the current directory and autodetect what you mean. This allows you to
do things like this:
```console
cd
meson setup builddir
```
To compile, cd into your build directory and type `ninja`. To run unit
tests, type `ninja test`.
More on running Meson build system commands can be found at the
[running meson page](https://mesonbuild.com/Running-Meson.html)
or by typing `meson --help`.
#### Contributing
We love code contributions. See the [contribution
page](https://mesonbuild.com/Contributing.html) on the website for
details.
#### IRC
The channel to use is `#mesonbuild` either via Matrix ([web
interface][matrix_web]) or [OFTC IRC][oftc_irc].
[matrix_web]: https://app.element.io/#/room/#mesonbuild:matrix.org
[oftc_irc]: https://www.oftc.net/
#### Further info
More information about the Meson build system can be found at the
[project's home page](https://mesonbuild.com).
Meson is a registered trademark of ***Jussi Pakkanen***.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089015.0
meson-1.5.1/contributing.md 0000644 0001750 0001750 00000000505 14626131367 016073 0 ustar 00jpakkane jpakkane ## Contributing to the Meson build system
Thank you for your interest in participating to the development!
A large fraction of Meson is contributed by people outside
the core team and we are *excited* to see what you do.
**Contribution instructions can be found on the website**
@ https://mesonbuild.com/Contributing.html
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077349.2559202
meson-1.5.1/cross/ 0000775 0001750 0001750 00000000000 14651150245 014167 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/arm64cl.txt 0000644 0001750 0001750 00000000572 14626131364 016205 0 ustar 00jpakkane jpakkane [binaries]
c = 'cl'
cpp = 'cl'
fc = 'false'
ar = 'lib'
windres = 'rc'
[built-in options]
c_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP']
c_link_args = ['-APPCONTAINER', 'WindowsApp.lib']
cpp_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP']
cpp_link_args = ['-APPCONTAINER', 'WindowsApp.lib']
[host_machine]
system = 'windows'
cpu_family = 'aarch64'
cpu = 'armv8'
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/armcc.txt 0000644 0001750 0001750 00000001132 14626131364 016013 0 ustar 00jpakkane jpakkane # This file assumes that path to the arm compiler toolchain is added
# to the environment(PATH) variable, so that Meson can find
# the armcc, armlink and armar while building.
[binaries]
c = 'armcc'
cpp = 'armcc'
ar = 'armar'
strip = 'armar'
[built-in options]
# The '--cpu' option with the appropriate target type should be mentioned
# to cross compile c/c++ code with armcc,.
c_args = ['--cpu=Cortex-M0plus']
cpp_args = ['--cpu=Cortex-M0plus']
[host_machine]
system = 'bare metal' # Update with your system name - bare metal/OS.
cpu_family = 'arm'
cpu = 'Cortex-M0+'
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/armclang-linux.txt 0000644 0001750 0001750 00000002352 14626131364 017654 0 ustar 00jpakkane jpakkane # Using ARM compilers from Linux command line is tricky and
# not really well documented because they want you to use
# their IDE instead.
#
# First you need to do the full install with the IDE and set
# up license files et al. This may be possible from the command
# line.
#
# Then you need to do the following:
#
# Select toolchain by running /opt/arm/developmentstudio-2019.0/bin/select_default_toolchain
# Armcc is only available in toolchain version 5.
# Armclang is only available in toolchain version 6.
# Start shell with /opt/arm/developmentstudio-2019.0/bin/suite_exec zsh
# Now the compilers will work.
[binaries]
# we could set exe_wrapper = qemu-arm-static but to test the case
# when cross compiled binaries can't be run we don't do that
c = ['/opt/arm/developmentstudio-2019.0/sw/ARMCompiler6.12/bin/armclang', '--target=aarch64-arm-none-eabi']
#c = '/opt/arm/developmentstudio-2019.0/sw/ARMCompiler5.06u6/bin/armcc'
#cpp = '/usr/bin/arm-linux-gnueabihf-g++'
ar = '/opt/arm/developmentstudio-2019.0/sw/ARMCompiler6.12/bin/armar'
#strip = '/usr/arm-linux-gnueabihf/bin/strip'
#pkg-config = '/usr/bin/arm-linux-gnueabihf-pkg-config'
[host_machine]
system = 'baremetal'
cpu_family = 'arm'
cpu = 'armv7' # Not sure if correct.
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/armclang.txt 0000644 0001750 0001750 00000001255 14626131364 016520 0 ustar 00jpakkane jpakkane # This file assumes that path to the arm compiler toolchain is added
# to the environment(PATH) variable, so that Meson can find
# the armclang, armlink and armar while building.
[binaries]
c = ['armclang', '--target=arm-arm-none-eabi']
cpp = ['armclang', '--target=arm-arm-none-eabi']
ar = 'armar'
strip = 'armar'
[built-in options]
# The '--target', '-mcpu' options with the appropriate values should be mentioned
# to cross compile c/c++ code with armclang.
c_args = ['-mcpu=cortex-m0plus']
cpp_args = ['-mcpu=cortex-m0plus']
[host_machine]
system = 'bare metal' # Update with your system name - bare metal/OS.
cpu_family = 'arm'
cpu = 'Cortex-M0+'
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/c2000.txt 0000644 0001750 0001750 00000001022 14626131364 015450 0 ustar 00jpakkane jpakkane # This file assumes that path to the Texas Instruments C20000 toolchain is added
# to the environment(PATH) variable, so that Meson can find
# cl2000 and ar2000 while building.
[binaries]
c = 'cl2000'
ar = 'ar2000'
strip = 'cl2000'
[host_machine]
system = 'bare metal'
cpu_family = 'c2000'
cpu = 'c28x'
endian = 'little'
[built-in options]
c_args = [
'-v28',
'-ml',
'-mt']
c_link_args = [
'-z',
'--rom_model',
'\f28004x_flash.cmd']
cpp_args = []
cpp_link_args = []
[properties]
needs_exe_wrapper = true
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/ccomp-armv7a.txt 0000644 0001750 0001750 00000000416 14626131364 017226 0 ustar 00jpakkane jpakkane [binaries]
c = ['ccomp', '-target', 'armv7a-eabi']
ar = 'ccomp'
strip = 'strip'
[built-in options]
c_args = ['-fall']
[host_machine]
system = 'bare metal' # Update with your system name - bare metal/OS.
cpu_family = 'arm'
cpu = 'Cortex-A9'
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/ccrx.txt 0000644 0001750 0001750 00000001041 14626131364 015664 0 ustar 00jpakkane jpakkane # This file assumes that path to the Renesas CC-RX toolchain is added
# to the environment(PATH) variable, so that Meson can find
# ccrx and rlink while building.
[binaries]
c = 'ccrx'
cpp = 'ccrx'
ar = 'rlink'
strip = 'rlink'
[built-in options]
# The '--cpu' option with the appropriate target type should be mentioned
# to cross compile c/c++ code with ccrx,.
c_args = ['-cpu=rx600']
cpp_args = ['-cpu=rx600']
c_link_args = []
cpp_link_args = []
[host_machine]
system = 'bare metal'
cpu_family = 'rx'
cpu = 'rx600'
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/iphone.txt 0000644 0001750 0001750 00000002564 14626131364 016222 0 ustar 00jpakkane jpakkane # This is a cross compilation file from OSX Yosemite to iPhone
# Apple keeps changing the location and names of files so
# these might not work for you. Use the googles and xcrun.
[binaries]
c = ['clang', '-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk']
cpp = ['clang++', '-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk']
objc = ['clang', '-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk']
objcpp = ['clang++', '-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk']
ar = 'ar'
strip = 'strip'
[built-in options]
c_args = ['-miphoneos-version-min=11.0']
cpp_args = ['-miphoneos-version-min=11.0']
c_link_args = ['-miphoneos-version-min=11.0']
cpp_link_args = ['-miphoneos-version-min=11.0']
objc_args = ['-miphoneos-version-min=11.0']
objcpp_args = ['-miphoneos-version-min=11.0']
[properties]
root = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer'
has_function_printf = true
has_function_hfkerhisadf = false
[host_machine]
system = 'darwin'
subsystem = 'ios'
kernel = 'xnu'
cpu_family = 'aarch64'
cpu = 'aarch64'
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/linux-mingw-w64-32bit.json 0000644 0001750 0001750 00000000310 14626131364 020672 0 ustar 00jpakkane jpakkane {
"file": "linux-mingw-w64-32bit.txt",
"tests": ["common", "cmake"],
"env": {
"WINEPATH": "/usr/lib/gcc/i686-w64-mingw32/9.2-posix;/usr/i686-w64-mingw32/bin;/usr/i686-w64-mingw32/lib"
}
}
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/linux-mingw-w64-32bit.txt 0000644 0001750 0001750 00000001626 14626131364 020553 0 ustar 00jpakkane jpakkane [binaries]
c = '/usr/bin/i686-w64-mingw32-gcc'
cpp = '/usr/bin/i686-w64-mingw32-g++'
objc = '/usr/bin/i686-w64-mingw32-gcc'
ar = '/usr/bin/i686-w64-mingw32-ar'
strip = '/usr/bin/i686-w64-mingw32-strip'
pkg-config = '/usr/bin/i686-w64-mingw32-pkg-config'
windres = '/usr/bin/i686-w64-mingw32-windres'
exe_wrapper = 'wine'
ld = '/usr/bin/i686-w64-mingw32-ld'
cmake = '/usr/bin/cmake'
[properties]
# Directory that contains 'bin', 'lib', etc
root = '/usr/i686-w64-mingw32'
# Directory that contains 'bin', 'lib', etc for the toolchain and system libraries
sys_root = '/usr/i686-w64-mingw32/sys-root/mingw'
[host_machine]
system = 'windows'
cpu_family = 'x86'
cpu = 'i686'
endian = 'little'
[cmake]
CMAKE_BUILD_WITH_INSTALL_RPATH = 'ON'
CMAKE_FIND_ROOT_PATH_MODE_PROGRAM = 'NEVER'
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY = 'ONLY'
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE = 'ONLY'
CMAKE_FIND_ROOT_PATH_MODE_PACKAGE = 'ONLY'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/linux-mingw-w64-64bit.json 0000644 0001750 0001750 00000000316 14626131364 020705 0 ustar 00jpakkane jpakkane {
"file": "linux-mingw-w64-64bit.txt",
"tests": ["common", "cmake"],
"env": {
"WINEPATH": "/usr/lib/gcc/x86_64-w64-mingw32/9.2-posix;/usr/x86_64-w64-mingw32/bin;/usr/x86_64-w64-mingw32/lib"
}
}
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/linux-mingw-w64-64bit.txt 0000644 0001750 0001750 00000001611 14626131364 020552 0 ustar 00jpakkane jpakkane [binaries]
c = '/usr/bin/x86_64-w64-mingw32-gcc'
cpp = '/usr/bin/x86_64-w64-mingw32-g++'
objc = '/usr/bin/x86_64-w64-mingw32-gcc'
ar = '/usr/bin/x86_64-w64-mingw32-ar'
strip = '/usr/bin/x86_64-w64-mingw32-strip'
pkg-config = '/usr/bin/x86_64-w64-mingw32-pkg-config'
windres = '/usr/bin/x86_64-w64-mingw32-windres'
exe_wrapper = 'wine'
cmake = '/usr/bin/cmake'
[properties]
# Directory that contains 'bin', 'lib', etc
root = '/usr/x86_64-w64-mingw32'
# Directory that contains 'bin', 'lib', etc for the toolchain and system libraries
sys_root = '/usr/x86_64-w64-mingw32/sys-root/mingw'
[host_machine]
system = 'windows'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'
[cmake]
CMAKE_BUILD_WITH_INSTALL_RPATH = 'ON'
CMAKE_FIND_ROOT_PATH_MODE_PROGRAM = 'NEVER'
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY = 'ONLY'
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE = 'ONLY'
CMAKE_FIND_ROOT_PATH_MODE_PACKAGE = 'ONLY'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/metrowerks-arm.txt 0000644 0001750 0001750 00000001116 14626131364 017707 0 ustar 00jpakkane jpakkane # This file assumes that the path to your Metrowerks Embedded ARM
# toolchain is added to the environment(PATH) variable, so that
# Meson can find the binaries while building.
[binaries]
c = 'mwccarm'
c_ld = 'mwldarm'
cpp = 'mwccarm'
cpp_ld = 'mwldarm'
ar = 'mwldarm'
as = 'mwasmarm'
[built-in options]
c_args = ['-lang', 'c99', '-D_NITRO', '-nosyspath']
c_link_args = '@DIRNAME@' / 'metrowerks.lcf'
cpp_args = ['-lang', 'c++', '-D_NITRO', '-nosyspath']
cpp_link_args = '@DIRNAME@' / 'metrowerks.lcf'
[host_machine]
system = 'bare metal'
cpu = 'arm'
cpu_family = 'arm'
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/metrowerks-eppc.txt 0000644 0001750 0001750 00000001071 14626131364 020057 0 ustar 00jpakkane jpakkane # This file assumes that the path to your Metrowerks toolchain
# of choice is added to the environment(PATH) variable, so that
# Meson can find the binaries while building.
[binaries]
c = 'mwcceppc'
c_ld = 'mwldeppc'
cpp = 'mwcceppc'
cpp_ld = 'mwldeppc'
ar = 'mwldeppc'
as = 'mwasmeppc'
[built-in options]
c_args = ['-lang', 'c99', '-nosyspath']
c_link_args = '@DIRNAME@' / 'metrowerks.lcf'
cpp_args = ['-lang', 'c++', '-nosyspath']
cpp_link_args = '@DIRNAME@' / 'metrowerks.lcf'
[host_machine]
system = 'bare metal'
cpu = 'ppc'
cpu_family = 'ppc'
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/metrowerks.lcf 0000644 0001750 0001750 00000000633 14626131364 017062 0 ustar 00jpakkane jpakkane # General-purpose linker script for Metrowerks toolchains.
# This script will link a blank application. Its only purpose
# is to allow the toolchains to run Meson tests. To link an
# actual application, you need to write your own fine-tuned lcf.
MEMORY {
TEST (RWX) : ORIGIN=0, LENGTH=0
}
SECTIONS {
.TEST:{
* (.text)
* (.data)
* (.rodata)
* (.bss)
__startup=.;
} > TEST
} ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/msp430.txt 0000644 0001750 0001750 00000000777 14626131364 015772 0 ustar 00jpakkane jpakkane # This file assumes that path to the Texas Instruments MSP430 toolchain is added
# to the environment(PATH) variable, so that Meson can find
# cl430 and ar430 while building.
[binaries]
c = cl430
ar = ar430
strip = strip430
[host_machine]
system = 'baremetal'
cpu_family = 'msp430'
endian = 'little'
[built-in options]
c_args = [
'-vmsp',
'--printf_support=minimal']
c_link_args = [
'--rom_model',
'-llibc.a',]
cpp_args = []
cpp_link_args = []
[properties]
needs_exe_wrapper = true
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/none.txt 0000644 0001750 0001750 00000000465 14626131364 015675 0 ustar 00jpakkane jpakkane # native file used to make the build machine compiler unusable
[host_machine]
system = 'none'
cpu_family = 'none'
cpu = 'none'
endian = 'little'
[properties]
[binaries]
c = ['false']
cpp = ['false']
fc = ['false']
objc = ['false']
objcpp = ['false']
ar = ['false']
pkg-config = ['false']
cmake = ['false']
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/ownstdlib.txt 0000644 0001750 0001750 00000000417 14626131364 016740 0 ustar 00jpakkane jpakkane # This is a setup for compiling a program that runs natively
# but uses a custom std lib. This test will only work on
# x86_64.
[target_machine]
system = 'linux'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'
[properties]
c_stdlib = 'mylibc' # Subproject name
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1720637956.0
meson-1.5.1/cross/ti-c6000.txt 0000664 0001750 0001750 00000000702 14643555004 016074 0 ustar 00jpakkane jpakkane # Cross file tested on Texas Instruments C6000 compiler (bare metal DSP devices)
# This file assumes that path to the Texas Instruments C6000 toolchain is added
# to the environment(PATH) variable.
[host_machine]
system = 'c6000'
cpu_family = 'c6000'
cpu = 'c64x'
endian = 'little'
[binaries]
c = 'cl6x'
cpp = 'cl6x'
ar = 'ar6x'
strip = 'strip6x'
nm = 'nm6x'
as = 'asm6x'
[properties]
needs_exe_wrapper = true
has_function_printf = true
bits = 32
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/tvos.txt 0000644 0001750 0001750 00000001737 14626131364 015734 0 ustar 00jpakkane jpakkane # This is a cross compilation file from OSX Yosemite to Apple tvOS
# Apple keeps changing the location and names of files so
# these might not work for you. Use the googles and xcrun.
[binaries]
c = ['clang', '-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk']
cpp = ['clang++', '-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk']
ar = 'ar'
strip = 'strip'
[built-in options]
c_args = ['-mtvos-version-min=12.0']
cpp_args = ['-mtvos-version-min=12.0']
c_link_args = ['-mtvos-version-min=12.0']
cpp_link_args = ['-mtvos-version-min=12.0']
[properties]
root = '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer'
has_function_printf = true
has_function_hfkerhisadf = false
[host_machine]
system = 'darwin'
subsystem = 'tvos'
kernel = 'xnu'
cpu_family = 'arm'
cpu = 'arm64'
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/ubuntu-armhf.json 0000644 0001750 0001750 00000000105 14626131364 017474 0 ustar 00jpakkane jpakkane {
"file": "ubuntu-armhf.txt",
"tests": ["common"],
"env": {}
}
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/ubuntu-armhf.txt 0000644 0001750 0001750 00000001570 14626131364 017351 0 ustar 00jpakkane jpakkane [binaries]
# we could set exe_wrapper = qemu-arm-static but to test the case
# when cross compiled binaries can't be run we don't do that
c = ['/usr/bin/arm-linux-gnueabihf-gcc']
cpp = ['/usr/bin/arm-linux-gnueabihf-g++']
rust = ['rustc', '--target', 'arm-unknown-linux-gnueabihf', '-C', 'linker=/usr/bin/arm-linux-gnueabihf-gcc-7']
ar = '/usr/arm-linux-gnueabihf/bin/ar'
strip = '/usr/arm-linux-gnueabihf/bin/strip'
pkg-config = '/usr/bin/arm-linux-gnueabihf-pkg-config'
ld = '/usr/bin/arm-linux/gnueabihf-ld'
[built-in options]
# Used in unit test '140 get define'
c_args = ['-DMESON_TEST_ISSUE_1665=1']
cpp_args = '-DMESON_TEST_ISSUE_1665=1'
[properties]
root = '/usr/arm-linux-gnueabihf'
has_function_printf = true
has_function_hfkerhisadf = false
skip_sanity_check = true
[host_machine]
system = 'linux'
cpu_family = 'arm'
cpu = 'armv7' # Not sure if correct.
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/ubuntu-faketarget.txt 0000644 0001750 0001750 00000000617 14626131364 020372 0 ustar 00jpakkane jpakkane # This is a setup for compiling a program that runs natively
# but produces output that runs on a different platform.
# That is either a cross compiler or something like binutils.
# We don't need to specify any properties or compilers,
# for we use the native ones and can run the resulting
# binaries directly.
[target_machine]
system = 'linux'
cpu_family = 'mips'
cpu = 'mips'
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/wasm.txt 0000644 0001750 0001750 00000000377 14626131364 015707 0 ustar 00jpakkane jpakkane [binaries]
c = 'emcc'
cpp = 'em++'
ar = 'emar'
[built-in options]
c_args = []
c_link_args = ['-sEXPORT_ALL=1']
cpp_args = []
cpp_link_args = ['-sEXPORT_ALL=1']
[host_machine]
system = 'emscripten'
cpu_family = 'wasm32'
cpu = 'wasm32'
endian = 'little'
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/cross/xc16.txt 0000644 0001750 0001750 00000001037 14626131364 015513 0 ustar 00jpakkane jpakkane # This file assumes that path to the Microchip xc16 toolchain is added
# to the environment(PATH) variable, so that Meson can find
# xc16-gcc and xc16-ar while building.
[binaries]
c = 'xc16-gcc'
ar = 'xc16-ar'
strip = 'xc16-gcc'
[host_machine]
system = 'bare metal'
cpu_family = 'dspic'
cpu = '33ep64mc203'
endian = 'little'
[properties]
needs_exe_wrapper = true
[built-in options]
c_args = [
'-c',
'-mcpu=33EP64MC203',
'-omf=elf']
c_link_args = [
'-mcpu=33EP64MC203',
'-omf=elf',
'-Wl,--script=p33EP64MC203.gld,']
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077349.2559202
meson-1.5.1/data/ 0000775 0001750 0001750 00000000000 14651150245 013747 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/data/.coveragerc.in 0000644 0001750 0001750 00000000656 14626131364 016505 0 ustar 00jpakkane jpakkane [run]
branch = True
parallel = True
concurrency = multiprocessing
data_file = @ROOT@/.coverage/coverage
source = @ROOT@/mesonbuild/
[report]
exclude_lines =
if T.TYPE_CHECKING:
[paths]
mesonbuild =
mesonbuild/
__w/meson/meson/mesonbuild/
@ROOT@/mesonbuild/
[html]
directory = @ROOT@/.coverage/html
[xml]
output = @ROOT@/.coverage/coverage.xml
[json]
output = @ROOT@/.coverage/coverage.json
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/data/com.mesonbuild.install.policy 0000644 0001750 0001750 00000001600 14626131364 021551 0 ustar 00jpakkane jpakkane
The Meson Build System
https://github.com/mesonbuild/meson
Install the given project via Meson
Authentication is required to install this project
preferences-system
no
no
auth_admin_keep
/usr/bin/python3
/usr/bin/meson
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/data/macros.meson 0000644 0001750 0001750 00000002472 14626131364 016304 0 ustar 00jpakkane jpakkane %__meson %{_bindir}/meson
%__meson_wrap_mode nodownload
%__meson_auto_features enabled
%__meson_verbose 1
%meson \
%set_build_flags \
%{shrink:%{__meson} setup \
--buildtype=plain \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--bindir=%{_bindir} \
--sbindir=%{_sbindir} \
--includedir=%{_includedir} \
--datadir=%{_datadir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--localedir=%{_datadir}/locale \
--sysconfdir=%{_sysconfdir} \
--localstatedir=%{_localstatedir} \
--sharedstatedir=%{_sharedstatedir} \
--wrap-mode=%{__meson_wrap_mode} \
--auto-features=%{__meson_auto_features} \
%{_vpath_srcdir} %{_vpath_builddir} \
%{nil}}
%meson_build \
%{shrink:%{__meson} compile \
-C %{_vpath_builddir} \
-j %{_smp_build_ncpus} \
%{?__meson_verbose:--verbose} \
%{nil}}
%meson_install \
%{shrink:DESTDIR=%{buildroot} %{__meson} install \
-C %{_vpath_builddir} \
--no-rebuild \
%{!?__meson_verbose:--quiet} \
%{nil}}
%meson_test \
%{shrink:%{__meson} test \
-C %{_vpath_builddir} \
--num-processes %{_smp_build_ncpus} \
--print-errorlogs \
%{nil}}
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/data/schema.xsd 0000644 0001750 0001750 00000010541 14626131364 015731 0 ustar 00jpakkane jpakkane
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077348.9399195
meson-1.5.1/data/shell-completions/ 0000775 0001750 0001750 00000000000 14651150245 017410 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077349.2559202
meson-1.5.1/data/shell-completions/bash/ 0000775 0001750 0001750 00000000000 14651150245 020325 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1720637956.0
meson-1.5.1/data/shell-completions/bash/meson 0000664 0001750 0001750 00000064675 14643555004 021416 0 ustar 00jpakkane jpakkane # shellcheck shell=bash
_get_subprojects_dir() {
# TODO: meson-info/intro-projectinfo.json has the info for the subproject
# directory, but we can't know what the build directory is in these contexts.
# Let's default to subprojects.
# Get subprojects directory. All subprojects subcommands support --sourcedir,
# so if that argument was passed, use it to find subprojects.
subprojects_dir="subprojects"
for (( i=${#COMP_WORDS[@]} - 1; i >= 0; i-- )); do
# Exit early if we have made our way back to the command
if [[ "${COMP_WORDS[$i]}" = "subprojects" ]]; then
break
fi
prev=$((i - 1))
if [[ $prev -gt 0 ]] && [[ "${COMP_WORDS[$prev]}" = "--sourcedir" ]]; then
subprojects_dir="${COMP_WORDS[$i]}"
break
fi
done
echo "$subprojects_dir"
}
_subprojects() {
subprojects_dir=$(_get_subprojects_dir)
pushd "$subprojects_dir" &>/dev/null || return
local COMPREPLY=()
_filedir
# _filedir for whatever reason can't reason about symlinks, so -d will them.
# Filter out wrap files with this expresion.
IFS=$'\n' echo "${COMPREPLY[*]}" | grep -vE '\.wrap$' | xargs
popd &>/dev/null
}
_wraps() {
subprojects_dir=$(_get_subprojects_dir)
db="$subprojects_dir/wrapdb.json"
if [[ ! -f "$db" ]]; then
return
fi
document=$(cat "$db")
wraps=($(python3 -c 'import sys, json
for wrap in json.load(sys.stdin).keys():
print(wrap)
' <<< "$document"))
echo "${wraps[@]}"
}
_meson() {
command="${COMP_WORDS[1]}"
subcommands=(
setup
configure
dist
install
introspect
init
test
wrap
subprojects
help
rewrite
compile
devenv
env2mfile
)
if [[ " ${subcommands[*]} " =~ " ${command} " ]]; then
"_meson-$command" "${COMP_WORDS[@]:1}"
else
_meson-setup "${COMP_WORDS[@]}"
fi
} &&
complete -F _meson meson
_meson_complete_option() {
option_string=$1
if [[ $# -eq 2 ]] && ! [[ "$option_string" == *=* ]]; then
option_string="$option_string=$2"
fi
if [[ "$option_string" == *=* ]]; then
_meson_complete_option_value "$option_string"
else
_meson_complete_option_name "$option_string"
fi
}
_meson_complete_option_name() {
option=$1
options=($(python3 -c 'import sys, json
for option in json.load(sys.stdin):
print(option["name"])
' <<< "$(_meson_get_options)"))
compopt -o nospace
COMPREPLY=($(compgen -W '${options[@]}' -S= -- "$option"))
}
_meson_complete_option_value() {
cur=$1
option_name=${cur%%=*}
option_value=${cur#*=}
if _meson_complete_filedir "$option_name" "$option_value"; then
return
fi
options=($(python3 -c 'import sys, json
for option in json.load(sys.stdin):
if option["name"] != "'$option_name'":
continue
choices = []
if option["type"] == "boolean":
choices.append("true")
choices.append("false")
elif option["type"] == "combo":
for choice in option["choices"]:
choices.append(choice)
elif option["type"] == "feature":
choices.append("auto")
choices.append("enabled")
choices.append("disabled")
for choice in choices:
if choice.startswith("'$cur'"):
print(choice)
' <<< "$(_meson_get_options)"))
COMPREPLY=("${options[@]}")
}
_meson_get_options() {
local options
for builddir in "${COMP_WORDS[@]}"; do
if [[ -d "$builddir" ]]; then
break
fi
builddir=.
done
options=$(meson introspect "$builddir" --buildoptions 2>/dev/null) &&
echo "$options" ||
echo '[]'
}
_meson_complete_filedir() {
_filedir_in() {
pushd "$1" &>/dev/null
local COMPREPLY=()
_filedir
echo "${COMPREPLY[@]}"
popd &>/dev/null
}
option=$1
cur=$2
case $option in
prefix |\
bindir |\
datadir |\
includedir |\
infodir |\
libdir |\
licensedir |\
libexecdir |\
localedir |\
localstatedir |\
mandir |\
sbindir |\
sharedstatedir |\
sysconfdir |\
python.platlibdir |\
python.purelibdir |\
pkg-config-path |\
build.pkg-config-path |\
cmake-prefix-path |\
build.cmake-prefix-path)
_filedir -d
;;
cross-file)
_filedir
COMPREPLY+=($(_filedir_in "$XDG_DATA_DIRS"/meson/cross))
COMPREPLY+=($(_filedir_in /usr/local/share/meson/cross))
COMPREPLY+=($(_filedir_in /usr/share/meson/cross))
COMPREPLY+=($(_filedir_in "$XDG_DATA_HOME"/meson/cross))
COMPREPLY+=($(_filedir_in ~/.local/share/meson/cross))
;;
native-file)
_filedir
COMPREPLY+=($(_filedir_in "$XDG_DATA_DIRS"/meson/native))
COMPREPLY+=($(_filedir_in /usr/local/share/meson/native))
COMPREPLY+=($(_filedir_in /usr/share/meson/native))
COMPREPLY+=($(_filedir_in "$XDG_DATA_HOME"/meson/native))
COMPREPLY+=($(_filedir_in ~/.local/share/meson/native))
;;
*)
return 1;;
esac
return 0
}
_meson_compgen_options() {
local -r cur=$1
if [[ ${cur:0:2} == -- ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}' -- "${cur:2}"))
elif [[ ${cur:0:1} == - ]]; then
if [[ ${#cur} == 1 ]]; then
# Only add longopts if cur not "-something"
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}' -- ""))
fi
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}' -- "${cur:1}"))
else
return 1
fi
return 0
}
_meson_common_setup_configure_longopts=(
help
prefix
bindir
datadir
includedir
infodir
libdir
licensedir
libexecdir
localedir
localstatedir
mandir
sbindir
sharedstatedir
sysconfdir
auto-features
backend
genvslite
buildtype
debug
default-library
errorlogs
install-umask
layout
optimization
prefer-static
stdsplit
strip
unity
unity-size
warnlevel
werror
wrap-mode
force-fallback-for
vsenv
pkgconfig.relocatable
python.bytecompile
python.install-env
python.platlibdir
python.purelibdir
python.allow-limited-api
pkg-config-path
build.pkg-config-path
cmake-prefix-path
build.cmake-prefix-path
clearcache
)
_meson-setup() {
shortopts=(
h
D
v
)
longopts=(
${_meson_common_setup_configure_longopts[@]}
native-file
cross-file
version
fatal-meson-warnings
reconfigure
wipe
)
local cur prev
if _get_comp_words_by_ref cur prev &>/dev/null; then
if [[ ${prev:0:2} == -- ]] && _meson_complete_option "${prev:2}" "$cur"; then
return
elif [[ ${prev:0:1} == - ]] && [[ ${prev:1:2} != - ]] && _meson_complete_option "${prev:1}"; then
return
fi
fi
if _get_comp_words_by_ref -n '=' cur prev &>/dev/null; then
if [[ $prev == -D ]]; then
_meson_complete_option "$cur"
return
fi
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
_filedir -d
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
if [[ $COMP_CWORD == 1 ]]; then
COMPREPLY+=($(compgen -W '${subcommands[*]}' -- "$cur"))
fi
fi
}
_meson-configure() {
shortopts=(
h
D
)
longopts=(
${_meson_common_setup_configure_longopts[@]}
no-pager
)
local cur prev
if _get_comp_words_by_ref -n '=' cur prev &>/dev/null; then
if [[ $prev == -D ]]; then
_meson_complete_option "$cur"
return
fi
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
for dir in "${COMP_WORDS[@]}"; do
if [[ -d "$dir" ]]; then
break
fi
dir=.
done
if [[ ! -d "$dir/meson-private" ]]; then
_filedir -d
fi
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-dist() {
shortopts=(
h
C
)
longopts=(
allow-dirty
help
formats
include-subprojects
no-tests
)
local cur prev
if _get_comp_words_by_ref -n ':' cur prev &>/dev/null; then
case $prev in
-C)
_filedir -d
return
;;
--formats)
formats=(
xztar
gztar
zip
)
COMPREPLY+=($(compgen -W '${formats[*]}' -- "$cur"))
return
;;
esac
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-install() {
shortopts=(
h
n
C
)
longopts=(
help
no-rebuild
only-changed
quiet
destdir
dry-run
skip-subprojects
tags
strip
)
local cur prev
if _get_comp_words_by_ref -n ':' cur prev &>/dev/null; then
for i in "${!COMP_WORDS[@]}"; do
opt="${COMP_WORDS[i]}"
dir="${COMP_WORDS[i+1]}"
case "$opt" in
-C)
break
;;
esac
dir=.
done
case $prev in
-C | --destdir)
_filedir -d
return
;;
--tags)
tags=$(meson introspect "$dir" --install-plan | python3 -c 'import sys, json
targets = json.load(sys.stdin)["targets"]
for target, attributes in targets.items():
print(attributes["tag"])
' 2> /dev/null)
if [[ $? == 0 ]]; then
COMPREPLY+=($(compgen -W '${tags[*]}' -- "$cur"))
fi
return
;;
esac
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-introspect() {
shortopts=(
h
a
i
f
)
longopts=(
ast
benchmarks
buildoptions
buildsystem-files
dependencies
scan-dependencies
installed
install-plan
projectinfo
targets
tests
backend
all
indent
force-object-output
)
local cur prev
if ! _get_comp_words_by_ref cur prev &>/dev/null; then
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
for dir in "${COMP_WORDS[@]}"; do
if [[ -d "$dir" ]]; then
break
fi
dir=.
done
if [[ ! -d "$dir/meson-private" ]]; then
_filedir -d
fi
if [ -z "$cur" ]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-init() {
shortopts=(
h
C
n
e
d
l
b
f
)
longopts=(
help
name
executable
deps
language
build
builddir
force
type
version
)
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-test() {
shortopts=(
h
j
q
v
t
C
)
longopts=(
help
maxfail
repeat
no-rebuild
gdb
gdb-path
interactive
list
wrapper
suite
no-suite
no-stdsplit
print-errorlogs
benchmark
logbase
num-processes
verbose
quiet
timeout-multiplier
setup
max-lines
test-args
)
local cur prev
if _get_comp_words_by_ref -n ':' cur prev &>/dev/null; then
case $prev in
--maxfail | --repeat)
# number, can't be completed
return
;;
--wrapper)
_command_offset "$COMP_CWORD"
return
;;
--gdb-path)
_filedir
return
;;
-C)
_filedir -d
return
;;
--suite | --no-suite)
for i in "${!COMP_WORDS[@]}"; do
opt="${COMP_WORDS[i]}"
dir="${COMP_WORDS[i+1]}"
case "$opt" in
-C)
break
;;
esac
dir=.
done
suites=$(meson introspect "$dir" --tests | python3 -c 'import sys, json;
for test in json.load(sys.stdin):
for suite in test["suite"]:
print(suite)
' 2> /dev/null)
if [[ $? == 0 ]]; then
COMPREPLY+=($(compgen -W '${suites[*]}' -- "$cur"))
__ltrim_colon_completions "$cur"
fi
return
;;
--logbase)
# free string, can't be completed
return
;;
-j | --num-processes)
# number, can't be completed
return
;;
-t | --timeout-multiplier)
# number, can't be completed
return
;;
--setup)
# TODO
return
;;
--test-args)
return
;;
esac
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
for dir in "${COMP_WORDS[@]}"; do
if [[ -d "$dir" ]]; then
break
fi
dir=.
done
if [[ ! -d "$dir/meson-private" ]]; then
_filedir -d
fi
for i in "${!COMP_WORDS[@]}"; do
opt="${COMP_WORDS[i]}"
dir="${COMP_WORDS[i+1]}"
case "$opt" in
-C)
break
;;
esac
dir=.
done
tests=$(meson introspect "$dir" --tests | python3 -c 'import sys, json;
for test in json.load(sys.stdin):
print(test["name"])
' 2> /dev/null)
if [[ $? == 0 ]]; then
COMPREPLY+=($(compgen -W '${tests[*]}' -- "$cur"))
fi
if [ -z "$cur" ]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}' -- "${cur:2}"))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}' -- "${cur:1}"))
fi
fi
}
_meson-wrap() {
shortopts=(
h
)
longopts=(
help
)
subcommands=(
info
install
list
promote
search
status
update
update-db
)
for i in "$@"; do
if [[ " ${subcommands[*]} " =~ " $i " ]]; then
"_meson-wrap-$i" "${COMP_WORDS[i]:1}"
return
fi
done
local cur prev
if ! _get_comp_words_by_ref cur prev &>/dev/null; then
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
COMPREPLY+=($(compgen -W '${subcommands[*]}' -- "$cur"))
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-wrap-info() {
shortopts=(
h
)
longopts=(
allow-insecure
help
)
local cur prev
if ! _get_comp_words_by_ref cur prev &>/dev/null; then
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
read -ra wraps < <(_wraps)
COMPREPLY+=($(compgen -W '${wraps[*]}' -- "$cur"))
}
_meson-wrap-install() {
shortopts=(
h
)
longopts=(
allow-insecure
help
)
local cur prev
if ! _get_comp_words_by_ref cur prev &>/dev/null; then
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
read -ra wraps < <(_wraps)
COMPREPLY+=($(compgen -W '${wraps[*]}' -- "$cur"))
}
_meson-wrap-list() {
shortopts=(
h
)
longopts=(
allow-insecure
help
)
local cur prev
if ! _get_comp_words_by_ref cur prev &>/dev/null; then
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-wrap-promote() {
shortopts=(
h
)
longopts=(
help
)
local cur prev
if ! _get_comp_words_by_ref cur prev &>/dev/null; then
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
_filedir
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-wrap-search() {
shortopts=(
h
)
longopts=(
allow-insecure
help
)
local cur prev
if ! _get_comp_words_by_ref cur prev &>/dev/null; then
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
read -ra wraps < <(_wraps)
COMPREPLY+=($(compgen -W '${wraps[*]}' -- "$cur"))
}
_meson-wrap-status() {
shortopts=(
h
)
longopts=(
allow-insecure
help
)
local cur prev
if ! _get_comp_words_by_ref cur prev &>/dev/null; then
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-wrap-update() {
shortopts=(
h
)
longopts=(
allow-insecure
force
help
sourcedir
types
)
local cur prev
if _get_comp_words_by_ref cur prev &>/dev/null; then
case $prev in
--sourcedir)
_filedir -d
return
;;
--types)
types=(
file
git
hg
svn
)
COMPREPLY+=($(compgen -W '${types[*]}' -- "$cur"))
return
;;
-j | --num-processes)
# number, can't be completed
return
;;
esac
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
COMPREPLY+=($(_subprojects))
}
_meson-wrap-update-db() {
shortopts=(
h
)
longopts=(
allow-insecure
help
)
local cur prev
if ! _get_comp_words_by_ref cur prev &>/dev/null; then
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-subprojects() {
shortopts=(
h
)
longopts=(
help
)
subcommands=(
checkout
download
foreach
packagefiles
purge
update
)
for i in "$@"; do
if [[ " ${subcommands[*]} " =~ " $i " ]]; then
"_meson-subprojects-$i" "${COMP_WORDS[i]:1}"
return
fi
done
local cur prev
if ! _get_comp_words_by_ref cur prev &>/dev/null; then
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
COMPREPLY+=($(compgen -W '${subcommands[*]}' -- "$cur"))
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-subprojects-checkout() {
shortopts=(
b
h
j
)
longopts=(
allow-insecure
help
num-processes
sourcedir
types
)
local cur prev
if _get_comp_words_by_ref cur prev &>/dev/null; then
case $prev in
--sourcedir)
_filedir -d
return
;;
--types)
types=(
file
git
hg
svn
)
COMPREPLY+=($(compgen -W '${types[*]}' -- "$cur"))
return
;;
-j | --num-processes)
# number, can't be completed
return
;;
esac
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
COMPREPLY+=($(_subprojects))
}
_meson-subprojects-download() {
shortopts=(
h
j
)
longopts=(
allow-insecure
help
num-processes
sourcedir
types
)
local cur prev
if _get_comp_words_by_ref cur prev &>/dev/null; then
case $prev in
--sourcedir)
_filedir -d
return
;;
--types)
types=(
file
git
hg
svn
)
COMPREPLY+=($(compgen -W '${types[*]}' -- "$cur"))
return
;;
-j | --num-processes)
# number, can't be completed
return
;;
esac
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
COMPREPLY+=($(_subprojects))
}
_meson-subprojects-foreach() {
shortopts=(
h
j
)
longopts=(
allow-insecure
help
num-processes
sourcedir
types
)
local cur prev
if _get_comp_words_by_ref cur prev &>/dev/null; then
case $prev in
--sourcedir)
_filedir -d
return
;;
--types)
types=(
file
git
hg
svn
)
COMPREPLY+=($(compgen -W '${types[*]}' -- "$cur"))
return
;;
-j | --num-processes)
# number, can't be completed
return
;;
esac
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
COMPREPLY+=($(_subprojects))
}
_meson-subprojects-packagefiles() {
shortopts=(
h
j
)
longopts=(
allow-insecure
apply
help
num-processes
save
sourcedir
types
)
local cur prev
if _get_comp_words_by_ref cur prev &>/dev/null; then
case $prev in
--sourcedir)
_filedir -d
return
;;
--types)
types=(
file
git
hg
svn
)
COMPREPLY+=($(compgen -W '${types[*]}' -- "$cur"))
return
;;
-j | --num-processes)
# number, can't be completed
return
;;
--apply | --save)
return
;;
esac
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
COMPREPLY+=($(_subprojects))
}
_meson-subprojects-purge() {
shortopts=(
h
j
)
longopts=(
allow-insecure
confirm
help
include-cache
num-processes
sourcedir
types
)
local cur prev
if _get_comp_words_by_ref cur prev &>/dev/null; then
case $prev in
--sourcedir)
_filedir -d
return
;;
--types)
types=(
file
git
hg
svn
)
COMPREPLY+=($(compgen -W '${types[*]}' -- "$cur"))
return
;;
-j | --num-processes)
# number, can't be completed
return
;;
--apply | --save)
return
;;
esac
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
COMPREPLY+=($(_subprojects))
}
_meson-subprojects-update() {
shortopts=(
h
j
)
longopts=(
allow-insecure
help
num-processes
rebase
reset
sourcedir
types
)
local cur prev
if _get_comp_words_by_ref cur prev &>/dev/null; then
case $prev in
--sourcedir)
_filedir -d
return
;;
--types)
types=(
file
git
hg
svn
)
COMPREPLY+=($(compgen -W '${types[*]}' -- "$cur"))
return
;;
-j | --num-processes)
# number, can't be completed
return
;;
--rebase | --reset)
return
;;
esac
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
COMPREPLY+=($(_subprojects))
}
_meson-help() {
longopts=(
setup
configure
dist
install
introspect
init
test
wrap
subprojects
rewrite
compile
devenv
env2mfile
)
local cur prev
if _get_comp_words_by_ref cur prev &>/dev/null; then
COMPREPLY+=($(compgen -W '${longopts[*]}' -- "$cur"))
fi
}
_meson-rewrite() {
: TODO
}
_meson-compile() {
shortopts=(
h
C
j
l
v
)
longopts=(
help
clean
jobs
load-average
verbose
ninja-args
vs-args
xcode-args
)
local cur prev
if _get_comp_words_by_ref cur prev &>/dev/null; then
if [[ ${prev:0:2} == -- ]] && _meson_complete_option "${prev:2}" "$cur"; then
return
elif [[ ${prev:0:1} == - ]] && [[ ${prev:1:2} != - ]] && _meson_complete_option "${prev:1}"; then
return
fi
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
_filedir -d
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-devenv() {
shortopts=(
h
w
)
longopts=(
dump
dump-format
help
workdir
)
local cur prev
if _get_comp_words_by_ref -n ':' cur prev &>/dev/null; then
case $prev in
-C | -w | --workdir)
_filedir -d
return
;;
--dump)
_filedir
return
;;
--dump-format)
dump_formats=(
sh
export
vscode
)
COMPREPLY+=($(compgen -W '${dump_formats[*]}' -- "$cur"))
return
;;
esac
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
_meson-env2mfile() {
shortopts=(
h
o
)
longopts=(
cpu
cpu-family
cross
debarch
endian
gccsuffix
help
kernel
native
subsystem
system
)
local cur prev
if _get_comp_words_by_ref -n ':' cur prev &>/dev/null; then
case $prev in
--endian)
endianness=(
big
little
)
COMPREPLY+=($(compgen -W '${endianness[*]}' -- "$cur"))
return
;;
-o)
_filedir
return
;;
esac
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
if ! _meson_compgen_options "$cur"; then
if [[ -z $cur ]]; then
COMPREPLY+=($(compgen -P '--' -W '${longopts[*]}'))
COMPREPLY+=($(compgen -P '-' -W '${shortopts[*]}'))
fi
fi
}
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077349.2559202
meson-1.5.1/data/shell-completions/zsh/ 0000775 0001750 0001750 00000000000 14651150245 020214 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1722017104.0
meson-1.5.1/data/shell-completions/zsh/_meson 0000664 0001750 0001750 00000040502 14650762520 021424 0 ustar 00jpakkane jpakkane #compdef meson
# vim:ts=2 sw=2
# Copyright (c) 2017 Arseny Maslennikov
# All rights reserved. Individual authors, whether or not
# specifically named, retain copyright in all changes; in what follows, they
# are referred to as `the Meson development team'. This is for convenience
# only and this body has no legal status. This file is distributed under
# the following licence.
#
# Permission is hereby granted, without written agreement and without
# licence or royalty fees, to use, copy, modify, and distribute this
# software and to distribute modified versions of this software for any
# purpose, provided that the above copyright notice and the following
# two paragraphs appear in all copies of this software.
#
# In no event shall the Meson development team be liable to any party for
# direct, indirect, special, incidental, or consequential damages arising out
# of the use of this software and its documentation, even if the Meson
# development team have been advised of the possibility of such damage.
#
# The Meson development team specifically disclaim any warranties, including,
# but not limited to, the implied warranties of merchantability and fitness
# for a particular purpose. The software provided hereunder is on an "as is"
# basis, and the Meson development team have no obligation to provide
# maintenance, support, updates, enhancements, or modifications.
local curcontext="$curcontext" state line
local -i ret
local __meson_backends="(ninja xcode ${(j. .)${:-vs{,2010,2015,2017}}})"
local __meson_build_types="(plain debug debugoptimized minsize release)"
local __meson_wrap_modes="(WrapMode.{default,nofallback,nodownload,forcefallback})"
local __meson_dist_formats=("xztar" "bztar" "gztar" "zip")
local __meson_cd='-C[change into this directory before running]:target dir:_directories'
local -a __meson_common=(
'--prefix=[installation prefix]: :_directories'
'--bindir=[executable directory]: :_directories'
'--datadir=[data file directory]: :_directories'
'--includedir=[header file directory]: :_directories'
'--infodir=[info page directory]: :_directories'
'--libdir=[library directory]: :_directories'
'--libexecdir=[library executable directory]: :_directories'
'--localedir=[locale data directory]: :_directories'
'--localstatedir=[local state data directory]: :_directories'
'--mandir=[manual page directory]: :_directories'
'--sbindir=[system executable directory]: :_directories'
'--sharedstatedir=[arch-independent data directory]: :_directories'
'--sysconfdir=[system configuration directory]: :_directories'
'--auto-features=[default value for auto features]:auto features types:(auto disabled enabled)'
'--backend=[backend to use]:Meson backend:'"$__meson_backends"
'--buildtype=[build type to use]:Meson build type:'"$__meson_build_types"
'--debug[turn on building with debug]'
'--default-library=[default library type]:default library type:(shared static both)'
'--errorlogs[prints the logs from failing tests]'
'--install-umask=[default umask for permissions of all installed files]'
'--layout=[build directory layout]:build directory layout:(flat mirror)'
'--optimization=[optimization level for compiled targets]:optimization:(0 g 1 2 3 s)'
'--stdsplit=[split stdout and stderr in test logs]'
'--strip[strip targets on install]'
'--unity=[unity builds on/off]:whether to do unity builds:(on off subprojects)'
'--warnlevel=[compiler warning level]:compiler warning level:warning level:(1 2 3)'
'--werror[treat warnings as errors]'
'--wrap-mode=[special wrap mode]:wrap mode:'"$__meson_wrap_modes"
'--force-fallback-for=[force fallback for listed subprojects]'
'--pkg-config-path=[extra paths for HOST pkg-config to search]:paths:_dir_list -s ,'
'--build.pkg-config-path=[extra paths for BUILD pkg-config to search]:paths:_dir_list -s ,'
'--cmake-prefix-path=[extra prefixes for HOST cmake to search]:paths:_dir_list -s ,'
'--build.cmake-prefix-path=[extra prefix for BUILD cmake to search]:paths:_dir_list -s ,'
)
local -a meson_commands=(
'configure:configure a project'
'dist:generate release archive'
'init:create a new project'
'install:install one or more targets'
'introspect:query project properties'
'setup:set up a build directory'
'test:run tests'
'wrap:manage source dependencies'
'subprojects:manage subprojects'
'compile:Build the project'
)
(( $+functions[__meson_is_build_dir] )) || __meson_is_build_dir() {
local mpd="${1:-$PWD}/meson-private"
[[ -f "$mpd/build.dat" && -f "$mpd/coredata.dat" ]]
return $?
}
# TODO: implement build option completion
(( $+functions[__meson_build_options] )) || __meson_build_options() {}
# `meson introspect` currently can provide that information in JSON.
# We can:
# 1) pipe its output to python3 -m json.tool | grep "$alovelyregex" | cut <...>
# 2) teach mintro.py to use a different output format
# (or perhaps just to select the fields printed)
(( $+functions[__meson_test_names] )) || __meson_test_names() {
local rtests
if rtests="$(_call_program meson meson test ${opt_args[-C]:+-C "$opt_args[-C]"} --list)";
then
local -a tests=(${(@f)rtests})
_describe -t "tests" "Meson tests" tests
else
_message -r "current working directory is not a build directory"
_message -r 'use -C $build_dir or cd $build_dir'
fi
}
(( $+functions[__meson_wrap_names] )) || __meson_wrap_names() {
local rwraps
rwraps="$(_call_program meson meson wrap list)"
local -a wraps=(${(@f)rwraps})
_describe -t wraps "Meson wraps" wraps
}
(( $+functions[__meson_installed_wraps] )) || __meson_installed_wraps() {
local rwraps
if rwraps="$(ls subprojects/ | grep '\.wrap$' | cut -d . -f 1)"; then
local -a wraps=(${(@f)rwraps})
_describe -t wraps "Meson wraps" wraps
fi
}
(( $+functions[_meson_commands] )) || _meson_commands() {
_describe -t commands "Meson subcommands" meson_commands
}
(( $+functions[_meson-setup] )) || _meson-setup() {
local firstd secondd
if [[ -f "meson.build" ]]; then
# if there's no second argument on the command line
# cwd will implicitly be substituted:
# - as the source directory if it has a file with the name "meson.build";
# - as the build directory otherwise
# more info in mesonbuild/mesonmain.py
firstd="build"
secondd="source"
else
firstd="source"
secondd="build"
fi
_arguments \
'*-D-[set the value of a build option]:build option:__meson_build_options' \
'--cross-file=[cross-compilation environment description]:cross file:_files' \
'--native-file=[build machine compilation environment description]:native file:_files' \
'--clearcache[clear cached state]' \
'--fatal-meson-warnings=[exit when any meson warnings are encountered]' \
'(-v --version)'{'-v','--version'}'[print the meson version and exit]' \
'--reconfigure=[re-run build configuration]' \
'--wipe=[delete saved state and restart using saved command line options]' \
":$firstd directory:_directories" \
"::$secondd directory:_directories" \
"${(@)__meson_common}"
}
(( $+functions[_meson-configure] )) || _meson-configure() {
local curcontext="$curcontext"
# TODO: implement 'mesonconf @file'
local -a specs=(
'*-D-[set the value of a build option]:build option:__meson_build_options'
'::build directory:_directories'
)
_arguments \
'(: -)'{'--help','-h'}'[show a help message and quit]' \
"${(@)specs}" \
"${(@)__meson_common}"
}
(( $+functions[_meson-test] )) || _meson-test() {
local curcontext="$curcontext"
# TODO: complete test suites
local -a specs=(
'--repeat[number of times to run the tests]:number of times to repeat: '
'--no-rebuild[do not rebuild before running tests]'
'--gdb[run tests under gdb]'
'--gdb-path=[program to run for gdb (can be wrapper or compatible program)]:program:_path_commands'
'(--interactive -i)'{'--interactive','-i'}'[run tests with interactive input/output]'
'--list[list available tests]'
'(--wrapper --wrap)'{'--wrapper=','--wrap='}'[wrapper to run tests with]:wrapper program:_path_commands'
"$__meson_cd"
'(--suite)--no-suite[do not run tests from this suite]:test suite: '
'(--no-suite)--suite[only run tests from this suite]:test suite: '
'--no-stdsplit[do not split stderr and stdout in logs]'
'--print-errorlogs[print logs for failing tests]'
'--benchmark[run benchmarks instead of tests]'
'--logbase[base name for log file]:filename: '
'--num-processes[how many threads to use]:number of processes: '
'(--verbose -v)'{'--verbose','-v'}'[do not redirect stdout and stderr]'
'(--quiet -q)'{'--quiet','-q'}'[produce less output to the terminal]'
'(--timeout-multiplier -t)'{'--timeout-multiplier','-t'}'[a multiplier for test timeouts]:Python floating-point number: '
'--setup[which test setup to use]:test setup: '
'--max-lines[Maximum number of lines to show from a long test log]:Python integer number: '
'--test-args[arguments to pass to the tests]: : '
'*:Meson tests:__meson_test_names'
)
_arguments \
'(: -)'{'--help','-h'}'[show a help message and quit]' \
"${(@)specs}"
}
(( $+functions[_meson-install] )) || _meson-install() {
local curcontext="$curcontext"
local -a specs=(
"$__meson_cd"
'--no-rebuild[Do not rebuild before installing]'
'--only-changed[Do not overwrite files that are older than the copied file]'
'--quiet[Do not print every file that was installed]'
)
_arguments \
'(: -)'{'--help','-h'}'[show a help message and quit]' \
"${(@)specs}"
}
(( $+functions[_meson-introspect] )) || _meson-introspect() {
local curcontext="$curcontext"
local -a specs=(
'--ast[dump the ASK of the meson file]'
'--benchmarks[list all benchmarks]'
'--buildoptions[list all build options]'
'--buildsystem-files[list files that belong to the build system]'
'--dependencies[list external dependencies]'
'--installed[list all installed files and directories]'
'--projectinfo[show project information]'
'--targets[list top level targets]'
'--tests[list all unit tests]'
'--backend=[backend to use]:Meson backend:'"$__meson_backends"
'::build directory:_directories'
)
_arguments \
'(: -)'{'--help','-h'}'[show a help message and quit]' \
"${(@)specs}"
}
(( $+functions[_meson-init] )) || _meson-init() {
local curcontext="$curcontext"
local -a specs=(
"$__meson_cd"
'(-n --name)'{'-n','--name'}'=[the name of the project (defaults to directory name)]'
'(-e --executable)'{'-e','--executable'}'=[the name of the executable target to create (defaults to project name)]'
'(-d --deps)'{'-d','--deps'}'=[comma separated list of dependencies]'
'(-l --language)'{'-l','--language'}'=[comma separated list of languages (autodetected based on sources if unset)]:languages:_values , (c cpp cs cuda d fortran java objc objcpp rust)'
'(-b --build)'{'-b','--build'}'[build the project immediately after generation]'
'--builddir=[directory for building]:directory:_directories'
'(-f --force)'{'-f','--force'}'[overwrite any existing files and directories]'
'(-t --type)'{'-t','--type'}'=[project type, defaults to executable]:type:(executable library)'
'(-v --version)'{'-v','--version'}'[print the meson version and exit]'
)
_arguments \
'(: -)'{'--help','-h'}'[show a help message and quit]' \
"${(@)specs}"
}
(( $+functions[_meson-wrap] )) || _meson-wrap() {
local -a commands=(
'list:list all available wraps'
'search:search the db by name'
'install:install the specified project'
'update:Update a project to its newest available version'
'info:Show info about a wrap'
'status:Show the status of your subprojects'
)
if (( CURRENT == 2 )); then
_describe -t commands "Meson wrap subcommands" commands
else
local curcontext="$curcontext"
cmd="${${commands[(r)$words[2]:*]%%:*}}"
if (( $#cmd )); then
if [[ $cmd == status ]]; then
_message "no options"
elif [[ $cmd == "list" ]]; then
_arguments '*:meson wraps'
elif [[ $cmd == "search" ]]; then
_arguments '*:meson wraps'
elif [[ $cmd == "install" ]]; then
_arguments '*:meson wraps:__meson_wrap_names'
elif [[ $cmd == "update" ]]; then
_arguments '*:meson wraps:__meson_installed_wraps'
elif [[ $cmd == "info" ]]; then
_arguments '*:meson wraps:__meson_wrap_name'
elif [[ $cmd == "status" ]]; then
_arguments '*:'
elif [[ $cmd == "promote" ]]; then
# TODO: how do you figure out what wraps are provided by subprojects if
# they haven't been fetched yet?
_arguments '*:'
fi
else
_message "unknown meson wrap command: $words[2]"
fi
fi
}
(( $+functions[_meson-dist] )) || _meson-dist() {
local curcontext="$curcontext"
local -a specs=(
'--allow-dirty[Allow even when repository contains uncommitted changes]'
'--formats=[comma separated list of archive types to create]:archive formats:_values -s , format '"$__meson_dist_formats"
'--include-subprojects[Include source code of subprojects that have been used for the build]'
'--no-tests[Do not build and test generated packages]'
"$__meson_cd"
)
_arguments \
'(: -)'{'--help','-h'}'[show a help message and quit]' \
"${(@)specs}"
}
(( $+functions[_meson-subprojects-update] )) || _meson-subprojects-update() {
local curcontext="$curcontext"
local -a specs=(
"--rebase[rebase your branch on top of wrap's revision (git only)]"
'--sourcedir=[path to source directory]:_directories'
'*:subprojects:__meson_installed_wraps'
)
_arguments \
'(: -)'{'--help','-h'}'[show a help message and quit]' \
"${(@)specs}"
}
(( $+functions[_meson-subprojects-checkout] )) || _meson-subprojects-checkout() {
local curcontext="$curcontext"
local -a specs=(
'-b[create a new branch]'
'--sourcedir=[path to source directory]:_directories'
# FIXME: this doesn't work exactly right, but I can't figure it out
':branch name'
'*:subprojects:__meson_installed_wraps'
)
_arguments \
'(: -)'{'--help','-h'}'[show a help message and quit]' \
"${(@)specs}"
}
(( $+functions[_meson-subprojects-download] )) || _meson-subprojects-download() {
local curcontext="$curcontext"
local -a specs=(
'--sourcedir=[path to source directory]:_directories'
)
_arguments \
'(: -)'{'--help','-h'}'[show a help message and quit]' \
"${(@)specs}"
}
(( $+functions[_meson-subprojects-foreach] )) || _meson-subprojects-foreach() {
local curcontext="$curcontext"
local -a specs=(
'--sourcedir=[path to source directory]:_directories'
'*:command:_command_names -e'
)
_arguments \
'(: -)'{'--help','-h'}'[show a help message and quit]' \
"${(@)specs}"
}
(( $+functions[_meson-subprojects] )) || _meson-subprojects() {
local -a commands=(
'update:update all subprojects from wrap files'
'checkout:checkout a branch (git only)'
'download:ensure subprojects are fetched, even if not in use. Already downloaded subprojects are not modified.'
'foreach:execute a command in each subproject directory'
)
if (( CURRENT == 2 )); then
_describe -t commands "Meson subproject subcommands" commands
else
local curcontext="$curcontext"
cmd="${${commands[(r)$words[2]:*]%%:*}}"
if (( $#cmd )); then
if [[ $cmd == status ]]; then
_message "no options"
else
_meson-subprojects-$cmd
fi
else
_message "unknown meson subproject command: $words[2]"
fi
fi
}
(( $+functions[_meson-compile] )) || _meson-compile() {
local curcontext="$curcontext"
local -a specs=(
"$__meson_cd"
'--clean[Clean the build directory]'
'(-j --jobs)'{'-j','--jobs'}'=[the number fo work jobs to run (if supported)]:_guard "[0-9]#" "number of jobs"'
'(-l --load-average)'{'-l','--load-average'}'=[the system load average to try to maintain (if supported)]:_guard "[0-9]#" "load average"'
'(-v --verbose)'{'-v','--verbose'}'[Show more output]'
'--ninja-args=[Arguments to pass to ninja (only when using ninja)]'
'--vs-args=[Arguments to pass to vs (only when using msbuild)]'
)
_arguments \
'(: -)'{'--help','-h'}'[show a help message and quit]' \
"${(@)specs}"
}
if [[ $service != meson ]]; then
_call_function ret _$service
return ret
fi
_arguments -C -R \
'(: -)'{'--help','-h'}'[show a help message and quit]' \
'(: -)'{'--version','-v'}'[show version information and quit]' \
'(-): :_meson_commands' \
'*:: :->post-command' \
#
ret=$?
[[ $ret = 300 ]] && case "$state" in
post-command)
service="meson-$words[1]"
curcontext=${curcontext%:*:*}:$service:
_call_function ret _$service
;;
esac
return ret
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077348.9399195
meson-1.5.1/data/syntax-highlighting/ 0000775 0001750 0001750 00000000000 14651150245 017740 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077349.2559202
meson-1.5.1/data/syntax-highlighting/vim/ 0000775 0001750 0001750 00000000000 14651150245 020533 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/data/syntax-highlighting/vim/README 0000644 0001750 0001750 00000000205 14626131364 021411 0 ustar 00jpakkane jpakkane ftdetect sets the filetype
ftplugin sets Meson indentation rules
indent does Meson indentation
syntax does Meson syntax highlighting
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077349.2559202
meson-1.5.1/data/syntax-highlighting/vim/ftdetect/ 0000775 0001750 0001750 00000000000 14651150245 022335 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/data/syntax-highlighting/vim/ftdetect/meson.vim 0000644 0001750 0001750 00000000330 14626131364 024170 0 ustar 00jpakkane jpakkane au BufNewFile,BufRead meson.build set filetype=meson
au BufNewFile,BufRead meson.options set filetype=meson
au BufNewFile,BufRead meson_options.txt set filetype=meson
au BufNewFile,BufRead *.wrap set filetype=dosini
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077349.2559202
meson-1.5.1/data/syntax-highlighting/vim/ftplugin/ 0000775 0001750 0001750 00000000000 14651150245 022363 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/data/syntax-highlighting/vim/ftplugin/meson.vim 0000644 0001750 0001750 00000002172 14626131364 024224 0 ustar 00jpakkane jpakkane " Vim filetype plugin file
" Language: meson
" License: VIM License
" Maintainer: Liam Beguin
" Original Author: Laurent Pinchart
" Last Change: 2018 Nov 27
if exists("b:did_ftplugin") | finish | endif
let b:did_ftplugin = 1
let s:keepcpo= &cpo
set cpo&vim
setlocal commentstring=#\ %s
setlocal comments=:#
setlocal formatoptions+=croql formatoptions-=t
let b:undo_ftplugin = "setl com< cms< fo<"
if get(g:, "meson_recommended_style", 1)
setlocal expandtab
setlocal shiftwidth=2
setlocal softtabstop=2
let b:undo_ftplugin .= " | setl et< sts< sw<"
endif
if exists("loaded_matchit") && !exists("b:match_words")
let b:match_words = '\:\:\:\,' .
\ '\:\:\:\'
let b:undo_ftplugin .= " | unlet! b:match_words"
endif
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
let b:browsefilter = "Meson Build Files (meson.build)\tmeson.build\n" .
\ "All Files (*.*)\t*.*\n"
let b:undo_ftplugin .= " | unlet! b:browsefilter"
endif
let &cpo = s:keepcpo
unlet s:keepcpo
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077349.2559202
meson-1.5.1/data/syntax-highlighting/vim/indent/ 0000775 0001750 0001750 00000000000 14651150245 022014 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/data/syntax-highlighting/vim/indent/meson.vim 0000644 0001750 0001750 00000012307 14626131364 023656 0 ustar 00jpakkane jpakkane " Vim indent file
" Language: Meson
" License: VIM License
" Maintainer: Nirbheek Chauhan
" Liam Beguin
" Original Authors: David Bustos
" Bram Moolenaar
" Last Change: 2015 Feb 23
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
finish
endif
let b:did_indent = 1
" Some preliminary settings
setlocal nolisp " Make sure lisp indenting doesn't supersede us
setlocal autoindent " indentexpr isn't much help otherwise
setlocal indentexpr=GetMesonIndent(v:lnum)
setlocal indentkeys+==elif,=else,=endforeach,=endif,0)
let b:undo_indent = "setl ai< inde< indk< lisp<"
" Only define the function once.
if exists("*GetMesonIndent")
finish
endif
let s:keepcpo= &cpo
set cpo&vim
" Come here when loading the script the first time.
let s:maxoff = 50 " maximum number of lines to look backwards for ()
function GetMesonIndent(lnum)
echom getline(line("."))
" If this line is explicitly joined: If the previous line was also joined,
" line it up with that one, otherwise add two 'shiftwidth'
if getline(a:lnum - 1) =~ '\\$'
if a:lnum > 1 && getline(a:lnum - 2) =~ '\\$'
return indent(a:lnum - 1)
endif
return indent(a:lnum - 1) + (exists("g:mesonindent_continue") ? eval(g:mesonindent_continue) : (shiftwidth() * 2))
endif
" If the start of the line is in a string don't change the indent.
if has('syntax_items')
\ && synIDattr(synID(a:lnum, 1, 1), "name") =~ "String$"
return -1
endif
" Search backwards for the previous non-empty line.
let plnum = prevnonblank(v:lnum - 1)
if plnum == 0
" This is the first non-empty line, use zero indent.
return 0
endif
" If the previous line is inside parenthesis, use the indent of the starting
" line.
" Trick: use the non-existing "dummy" variable to break out of the loop when
" going too far back.
call cursor(plnum, 1)
let parlnum = searchpair('(\|{\|\[', '', ')\|}\|\]', 'nbW',
\ "line('.') < " . (plnum - s:maxoff) . " ? dummy :"
\ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
\ . " =~ '\\(Comment\\|Todo\\|String\\)$'")
if parlnum > 0
let plindent = indent(parlnum)
let plnumstart = parlnum
else
let plindent = indent(plnum)
let plnumstart = plnum
endif
" When inside parenthesis: If at the first line below the parenthesis add
" a 'shiftwidth', otherwise same as previous line.
" i = (a
" + b
" + c)
call cursor(a:lnum, 1)
let p = searchpair('(\|{\|\[', '', ')\|}\|\]', 'bW',
\ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
\ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
\ . " =~ '\\(Comment\\|Todo\\|String\\)$'")
if p > 0
if p == plnum
" When the start is inside parenthesis, only indent one 'shiftwidth'.
let pp = searchpair('(\|{\|\[', '', ')\|}\|\]', 'bW',
\ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
\ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
\ . " =~ '\\(Comment\\|Todo\\|String\\)$'")
if pp > 0
return indent(plnum) + (exists("g:pyindent_nested_paren") ? eval(g:pyindent_nested_paren) : shiftwidth())
endif
return indent(plnum) + (exists("g:pyindent_open_paren") ? eval(g:pyindent_open_paren) : shiftwidth())
endif
if plnumstart == p
return indent(plnum)
endif
return plindent
endif
" Get the line and remove a trailing comment.
" Use syntax highlighting attributes when possible.
let pline = getline(plnum)
let pline_len = strlen(pline)
if has('syntax_items')
" If the last character in the line is a comment, do a binary search for
" the start of the comment. synID() is slow, a linear search would take
" too long on a long line.
if synIDattr(synID(plnum, pline_len, 1), "name") =~ "\\(Comment\\|Todo\\)$"
let min = 1
let max = pline_len
while min < max
let col = (min + max) / 2
if synIDattr(synID(plnum, col, 1), "name") =~ "\\(Comment\\|Todo\\)$"
let max = col
else
let min = col + 1
endif
endwhile
let pline = strpart(pline, 0, min - 1)
endif
else
let col = 0
while col < pline_len
if pline[col] == '#'
let pline = strpart(pline, 0, col)
break
endif
let col = col + 1
endwhile
endif
" If the previous line ended the conditional/loop
if getline(plnum) =~ '^\s*\(endif\|endforeach\)\>\s*'
" Maintain indent
return -1
endif
" If the previous line ended with a builtin, indent this line
if pline =~ '^\s*\(foreach\|if\|else\|elif\)\>\s*'
return plindent + shiftwidth()
endif
" If the current line begins with a header keyword, deindent
if getline(a:lnum) =~ '^\s*\(else\|elif\|endif\|endforeach\)'
" Unless the previous line was a one-liner
if getline(plnumstart) =~ '^\s*\(foreach\|if\)\>\s*'
return plindent
endif
" Or the user has already dedented
if indent(a:lnum) <= plindent - shiftwidth()
return -1
endif
return plindent - shiftwidth()
endif
" When after a () construct we probably want to go back to the start line.
" a = (b
" + c)
" here
if parlnum > 0
return plindent
endif
return -1
endfunction
let &cpo = s:keepcpo
unlet s:keepcpo
" vim:sw=2
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077349.2559202
meson-1.5.1/data/syntax-highlighting/vim/syntax/ 0000775 0001750 0001750 00000000000 14651150245 022061 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089012.0
meson-1.5.1/data/syntax-highlighting/vim/syntax/meson.vim 0000644 0001750 0001750 00000007676 14626131364 023740 0 ustar 00jpakkane jpakkane " Vim syntax file
" Language: Meson
" License: VIM License
" Maintainer: Nirbheek Chauhan
" Liam Beguin
" Last Change: 2023 Aug 27
" Credits: Zvezdan Petkovic
" Neil Schemenauer
" Dmitry Vasiliev
"
" This version is copied and edited from python.vim
" It's very basic, and doesn't do many things I'd like it to
" For instance, it should show errors for syntax that is valid in
" Python but not in Meson.
"
" Optional highlighting can be controlled using these variables.
"
" let meson_space_error_highlight = 1
"
if exists("b:current_syntax")
finish
endif
" We need nocompatible mode in order to continue lines with backslashes.
" Original setting will be restored.
let s:cpo_save = &cpo
set cpo&vim
" http://mesonbuild.com/Syntax.html
syn keyword mesonConditional elif else if endif
syn keyword mesonRepeat foreach endforeach
syn keyword mesonOperator and not or in
syn keyword mesonStatement continue break
syn match mesonComment "#.*$" contains=mesonTodo,@Spell
syn keyword mesonTodo FIXME NOTE NOTES TODO XXX contained
" Strings can either be single quoted or triple counted across multiple lines,
" but always with a '
syn region mesonString
\ start="\z('\)" end="\z1" skip="\\\\\|\\\z1"
\ contains=mesonEscape,@Spell
syn region mesonString
\ start="\z('''\)" end="\z1" keepend
\ contains=mesonEscape,mesonSpaceError,@Spell
syn match mesonEscape "\\[abfnrtv'\\]" contained
syn match mesonEscape "\\\o\{1,3}" contained
syn match mesonEscape "\\x\x\{2}" contained
syn match mesonEscape "\%(\\u\x\{4}\|\\U\x\{8}\)" contained
" Meson allows case-insensitive Unicode IDs: http://www.unicode.org/charts/
syn match mesonEscape "\\N{\a\+\%(\s\a\+\)*}" contained
syn match mesonEscape "\\$"
" Meson only supports integer numbers
" http://mesonbuild.com/Syntax.html#numbers
syn match mesonNumber "\<\d\+\>"
syn match mesonNumber "\<0x\x\+\>"
syn match mesonNumber "\<0o\o\+\>"
" booleans
syn keyword mesonBoolean false true
" Built-in functions
syn keyword mesonBuiltin
\ build_machine
\ host_machine
\ meson
\ option
\ target_machine
\ add_global_arguments
\ add_global_link_arguments
\ add_languages
\ add_project_arguments
\ add_project_dependencies
\ add_project_link_arguments
\ add_test_setup
\ alias_target
\ assert
\ benchmark
\ both_libraries
\ build_target
\ configuration_data
\ configure_file
\ custom_target
\ debug
\ declare_dependency
\ dependency
\ disabler
\ environment
\ error
\ executable
\ files
\ find_program
\ generator
\ get_option
\ get_variable
\ import
\ include_directories
\ install_data
\ install_emptydir
\ install_headers
\ install_man
\ install_subdir
\ install_symlink
\ is_disabler
\ is_variable
\ jar
\ join_paths
\ library
\ message
\ project
\ range
\ run_command
\ run_target
\ set_variable
\ shared_library
\ shared_module
\ static_library
\ structured_sources
\ subdir
\ subdir_done
\ subproject
\ summary
\ test
\ unset_variable
\ vcs_tag
\ warning
if exists("meson_space_error_highlight")
" trailing whitespace
syn match mesonSpaceError display excludenl "\s\+$"
" mixed tabs and spaces
syn match mesonSpaceError display " \+\t"
syn match mesonSpaceError display "\t\+ "
endif
" The default highlight links. Can be overridden later.
hi def link mesonStatement Statement
hi def link mesonConditional Conditional
hi def link mesonRepeat Repeat
hi def link mesonOperator Operator
hi def link mesonComment Comment
hi def link mesonTodo Todo
hi def link mesonString String
hi def link mesonEscape Special
hi def link mesonNumber Number
hi def link mesonBuiltin Function
hi def link mesonBoolean Boolean
if exists("meson_space_error_highlight")
hi def link mesonSpaceError Error
endif
let b:current_syntax = "meson"
let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2 ts=8 noet:
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1722017104.0
meson-1.5.1/data/test.schema.json 0000664 0001750 0001750 00000007732 14650762520 017075 0 ustar 00jpakkane jpakkane {
"type": "object",
"additionalProperties": false,
"properties": {
"env": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"installed": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"file": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"file",
"python_file",
"dir",
"exe",
"shared_lib",
"python_lib",
"python_limited_lib",
"python_bytecode",
"pdb",
"implib",
"py_implib",
"py_limited_implib",
"implibempty",
"expr",
"link"
]
},
"platform": {
"type": "string",
"enum": [
"msvc",
"gcc",
"cygwin",
"!cygwin"
]
},
"version": {
"type": "string"
},
"language": {
"type": "string"
}
},
"required": [
"file",
"type"
]
}
},
"matrix": {
"type": "object",
"properties": {
"options": {
"additionalProperties": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"val": {
"type": ["string", "boolean", "null", "array"],
"items": {
"type": "string"
}
},
"compilers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"skip_on_env": {
"type": "array",
"items": {
"type": "string"
}
},
"expect_skip_on_jobname": {
"type": "array",
"items": {
"type": "string"
}
},
"expect_skip_on_os": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"val"
]
}
},
"exclude": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": ["string", "boolean", "array"],
"items": {
"type": "string"
}
}
}
}
}
}
},
"do_not_set_opts": {
"type": "array",
"items": {
"type": "string",
"enum": [
"libdir",
"prefix"
]
}
},
"tools": {
"type": "object"
},
"stdout": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"line": {
"type": "string"
},
"match": {
"type": "string",
"enum": [
"literal",
"re"
]
},
"count": {
"type": "integer"
},
"comment": {
"type": "string"
}
},
"required": [
"line"
]
}
},
"skip_on_env": {
"type": "array",
"items": {
"type": "string"
}
},
"expect_skip_on_jobname": {
"type": "array",
"items": {
"type": "string"
}
},
"expect_skip_on_os": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1722077349.2559202
meson-1.5.1/graphics/ 0000775 0001750 0001750 00000000000 14651150245 014636 5 ustar 00jpakkane jpakkane ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089013.0
meson-1.5.1/graphics/meson_logo.svg 0000644 0001750 0001750 00000134325 14626131365 017532 0 ustar 00jpakkane jpakkane
image/svg+xml
The official color of the logo is PANTONE 2105 C. The sRGB substitute is (57, 32, 124).
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1717089013.0
meson-1.5.1/graphics/meson_logo_big.png 0000644 0001750 0001750 00000052601 14626131365 020334 0 ustar 00jpakkane jpakkane PNG
IHDR Å µA` sBIT|d pHYs I Ipß[ tEXtSoftware www.inkscape.orgī< IDATxģŻyu’ń×·zfrī#$IHAFéIįDPŃx°"ŗ.*¢`hI*ü¼šbe½ÖBWqA93 ÄåG é®ļļŹHęØīŖīoUõūłxōCīźw÷tWź{D¤a&wµMå=cēłeóÕėtIDźĆø ".½B[łķXūI`’§Åņßó?rĒŚKwNDjOH)ä{ ū9ą !ī²(Nī½ļó×s}¹ŃD¤T 4Āä„ū3ĒšvĀ}÷’d}óźÉ& "7{v±e§M„÷bYa|
W·HF© ɰ®Ö%'Zć]“E<ŌFKV÷.’2`c&"© É ¹mKöņ|ļNõĄÖēŻ«×-’k¬ĒŗS -¦ŠÖsÖ~ŲFĻ±ŁĄåĻkŗō{[jō"Rc* D2¢08æ’ĖXstņnć³nxŁ]uz>
ėč8»yŌ{~ČB]×'·¬1_|įÅÜżų'7Õõ¹E$ ")Ö9µgńģWŁnŲńsgÆZÉoŻę°T ¤PǤāŲęņĒ
ö\ó=¶¾ø„Æé5_pFDŌļk°× 3]g}ŲśŽ;“H²© I}żK-t9×ye)YƧ×tf
$
(“÷¼ß^ā:K
īņ§\»ü>×ADd{* Dl!Ŧ-łŅł.Z\ē©Ņ>v{oÓ' č»#" " ÕŁŚ½æ1\ę:K<쯼ró+)>ź:ē:¼\W[ĻŁĘ°ĢüųWū¹ŅŻ
öī×ŗN""jI¹Ó;y„Ņ·¹ĪRCÖb®zn\ī# (ā
čjļ9ĢśöZ`ė,uałńyėķ,ČuF¤. ÷L!ßżėŪ4Ź?įU6Ē;óKßā:H#RC]Ó{Śréąx×Y²|ņ¦sVmøņE×QD
G:Ū»1>ßöv%!žH®é-«*>č:H#P RgXŪµģ
č;ø£gåÕėßą:HÖ%{9Q³ļāŻßmÓŃ’`FĆ'ļ|ųĀƽnŗ{ė@"Y„Ht¶.9ŌóC0yĒQŅā9ætźmė/{Śu,Ņ, :(“õ¼Ćļ6żųWäų²×tW”½ē®dZ Djha¾8zķæŹsė,)ö"ƼgÕŚeßrD$KT ŌČaÓNi* s\gÉ{õØŽę÷ŻL±ä:HØ ©®¶īć¬åZ`W×Y²Ä`o“„ę·®ŚP|Źu“Ó uµõm-?C?ž±³ci*ŻYČ/å:HŚ©@$&X{$?ėÓū~×YĄSŽøŗwłĶ®¤
ĢyĮĖØk±öD×YČ={uļk\I# "uMéfsüŲßuFd1[Ż;¾ė,"i¢@$¹ķKē{¾¹ŲĆuFfła_īk-¾ą:HZØ ©Rg[ĻYĘŚ/Ķ®³ wųĘŻk/}Üu4Š, ŹBkĻ'µ’żų'É\ĻÕŻź A- "=»Ų²Ó¦Ņ7S]g!=m}sŅźõĖVŗ"d* DBZ8»8¾oSéząx×YdD/xE+×-’¹ė "I„ķEB8,_ÜŪönøĪ"”4[xĖųūgnł×aDHČŗ¦tOóLłw3Ūu©ĮĆpņä¼øa柣
aŚĪĮßaĢ×Y¤*Ę`¼ó»nŲxĖÆ\IBgŪŅ5’ uEb`łöŻ’ł®5k®īwE$ T ¢ŠÖó|ū5M®³HĢOG{óͽÅĶ®ø¦u DvŠÕÖs6Ö~C?žYdOź£ō
³ć]'qM- "Ū(“væĆUč»u·z£¶øņ¾+sDĵ lÕļ¾ĆēŃ#XąoiłÅÜéÅ\qEPČ÷|ĢĀe®sHYęåŹ„ßĶŁwńn®£ø +it¦ļł4Ųŗ"ĪüiKKÓ±kī/>į:H=© Vō
m„«±¼ĖuqīÆMÖ?śÖu>ę:H½Ø@Ņ"å:[K×čĒ_¶Śæd¼ß.h]²ė "õ¢@ŁńEcx»ė (ūwÓܶ%{¹"R* ¤ŃB~éĮķ:$ŅLĻzæ.L.īź:H© Fb:Ū~Ģ{\D;¦ŅoęOżč.®Ō
i
ÖīĖ5’ī:¤Ā!eÆéæµb d
iłīĖ0|ÄuIBߦŅĻć:H-Ø ĢėjėYaąB×9$¢iÜN~ī(×ADā¦@2³µgµvėjĒm,ķ|ķBŚJ2EdVgėŅc»]ē,°očk-}-&s@¤ŗŚzŽ|°%.WNxųŲ
ĻÜr£ė("qP Shļ~->×bōłęMøą¹
ĻÜŗŹuØtL_Śił Ń®³H6c¼óŽ
oż³ė,"QØyT2£kŚmŁ»Š.RkżĄÉ«z’Ņuj© L?µŲ^öJ·ŚĢEźåcĶ1·Æ[¦ī I% z¦/Ž£TŹŻ
ĢtE±×YD*„ijgĒJ¹_”qĄv÷ż¹v4R ©µE¹¾Måļ øĪ"Ģ“{¾÷³Iű®TB¤Öß[g^ öu®s`xUKséŌ*)¢iJ
üŅbĢE®süį);a6l¼åf×QDĀP ©3Ƶū5Öo ,IƧīrÄCl¼ån×ADF¢ę*IĪÖ%¼ßcŠ>ķT[Ą·ŖwŁļ]
IyS|ÆtÉ®³ĒX°MM
UtEd(jBT7ó å\éēśń4°Ż)~²0_ÜŁu”Ø (zžQ×x„ė$"ؿҵX¤±VH* $ńŗŚJ`ķ®sTįų
łĖ\*SI“B¾ūõĄēŃxIÆłSvYpļ·Žė:ȶtRÄ*äĻÜĄN®³Dby޳¦såśe÷ø"2@] Hó§~t¬÷Sōć/Y`o=nčhæp¢ė("T H½×ōī:H\,vĘ(æł[PŌyWADIĪ|éRÆqC$nNījė_ā:h$Lgk÷)ĘšōŁģņ=ĖI+×-’¹ė ŅŲtÄ;uń»ē:H=ó^uŪśāĆ®HćR$BaņycūśńʰKŁ®=»Ųā:4. ¦iģµŅ4Ć«&¼PŗŌui\źēŗņŻgXųŗė"X}Ćķ½+~ģ:4 āŌ¼©=³}ĻŽ uEħ±Ü¾vÅ:×A¤±Ø@9hÆó=¾~ü„±ķbłöBM®HcQ Ī3ś`pC$ōµ.rBŗ ÄBk÷»0|Õuń}ćĒŚKntD
©»óżļBM’";zĢä¾ż”ā?]ģSŌÕ ÓĻåy¹ļ¢ĮģcĖeµI]Ø ŗŚŲ?qp°ė"ÉeO*“væĖu
É>uHŻĢkėYą[{sE$į6k:xÕCÅ]ģRŌEGū
}kæ~üEĀ_śę"éū"5£@źbmžŠź:HjXę=q¾ė]źėj]śFkĢ\ēI”¾1so[»ģĻ®HöØ *L^ŗ/Męn`W×YDŅÉÜ;\ĒͽÅĶ®H¶Ø@jØčŃĢ5čĒ_${ĄŹsB²GŌLWkł=Xs“ė"ig±ēwµö\ēlQŌDWŪŅVkĶ_ ®³dłŪ(rØ+@⢠© kł
śńµ
ŅG]§ģPÄ®ŠŚs&Ę~ĶuŚbr~Ēķ]śæ®Hś©@bµ uÉ>ūI×9D2ŖÅ½Æi
UÉä¾ ģā:HĶŁq®ė~źŲtå{Žj±×ŗĪ!Ņ ^0eŗżå¹"é„ EĒāīūY×9DÄXćjt'Ø Xź/}ŲÓurT”ē4×!$½T=Jd]mK·ÖÜ>O"õöd¹æ<óĪæüI×A$}Ō Ģ]l±Ö|żųø°×ā]ā:¤
d§M„óż]ēiTĘ÷ŚĪqCŅGTm~{q*°ŌuēaĶ用ó¹TD©ZŁ/ē:pX”µüN×!$]Ōo+U)ä»~į:üJEŌ +L>oŲ/øĪ!"ŪŃ@©
©Ķ_¦ŻuŁJ%T HEŗ¦tO3Ę~Äu5AŻ»
©ĶO £\ē!ŗņ=oqBOU¢Vh]Ś
1·”ĻHĀŁŽQ4ļsoq³ė$\jĻ¢0ł>SŅĮ2, Jg¾üÆrCDB²,éQÜŻuI. 2¢öśš8]į:H
¶øąŲĪĶ[Ź=®CHr© 3ę`ė"!żĆbĪš?øŁuö½sŪ»÷sCIkīōād°vC$s}¹æ|ąźŽeß¼cķ„źm:øŅu*=ß\ī:$SĪu I¶ÖóætøĪ!2²%«zšļĻŻöāĄ’ŁĖĶž·üjŹĪGxĄó¹“ė.Güī·¬wDE#ŗeHK5Ęūś¤Ķ`Ųg ̳ĘPźĪÖ2ģÖµĢ8`<éŚäéEąU½Ė9Ü
łīĻ ØO¤Ä¹sUļņNĄŗ"É”»©_śs0'øĪ!l6õ»xĖzcģ¾åIcrOX[śæ¦\Ė6?·Ļś½ėü±Æ?õ£;Ó4zB©o¾±{Ćųģ
aŠģóÉfc9ńöuĖ⾦+ßż#'×