summaryrefslogtreecommitdiff
path: root/mesonbuild/cmake/tracetargets.py
AgeCommit message (Collapse)Author
2025-11-19compilers: Remove Environment parameter from Compiler.find_libraryDylan Baker
2025-07-09Add -F compiler flag for included MacOS frameworksmattbsage
Currently, when using frameworks on MacOS systems, Meson will send the appropriate flags to the linker but fails to pass flags to the compiler, resulting in the headers not being found for the included frameworks. This patch adds the required "-F{framework}" flag to the compiler options, so that the compiler can find the headers of included frameworks. See: https://github.com/mesonbuild/meson/issues/14641
2025-06-03cmake: Fix target_link_libraries against project targetsL. E. Segovia
These were supported for shared libraries, but for static libraries the link_with property was never populated with `LINK_LIBRARIES` or `INTERFACE_LINK_LIBRARIES`. Fixes #13101
2024-07-15cmake: Only propagate interface link flags in depJonathon Anderson
CMake has two target properties, LINK_OPTIONS and INTERFACE_LINK_OPTIONS. The former is for link flags that apply only to the target (PRIVATE). The latter is used for link flags that propagate to dependents (PUBLIC or INTERFACE). Meson currently propagates all flags, PUBLIC and PRIVATE, as part of the generated dependency() which causes problems when some of the private flags are highly disruptive, e.g. `-Wl,--version-script`. Tease apart the two kinds of link flags and, for non-static libraries, only propagate the PUBLIC/INTERFACE flags and not the PRIVATE ones.
2024-06-23Recast CMake's IMPORTED_LOCATION into framework flags (#13299)Kai Pastor
* Explicitly look for 'OpenAL' with method: 'cmake' This test was added for testing cmake depenencies, so no other method must be accepted here, and the spelling must match FindOpenAL.cmake. * Resolve frameworks in IMPORTED_LOCATION The IMPORTED_LOCATION property of CMake targets may contain macOS framework paths. These must be processed into flags. By putting the values in the list of targets, they will be processed as if they appeared in INTERFACE_LINK_LIBRARIES.
2024-02-25cmake: Allow recasting a CMake dependency into an Apple frameworkL. E. Segovia
Fixes #12160
2023-12-13Use SPDX-License-Identifier consistentlyDylan Baker
This replaces all of the Apache blurbs at the start of each file with an `# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing uses to be consistent in capitalization, and to be placed above any copyright notices. This removes nearly 3000 lines of boilerplate from the project (only python files), which no developer cares to look at. SPDX is in common use, particularly in the Linux kernel, and is the recommended format for Meson's own `project(license: )` field
2023-12-01cmake: Handle compiler.find_library returning NoneDylan Baker
I'm not 100% sure that warning is the appropriate action, but it's better than failing with a backtrace. Fixes: #12555
2023-07-19cmake: find dependencies with bare library names on all platformskiwixz
2023-02-01treewide: add future annotations importEli Schwartz
2022-11-29Fix crash when toolchain is missingSmallWood-D
Add a MissingCompiler class returned by compiler detecting methods intead of None - accessing such an object raises a DependencyException Fixes #10586 Co-authored-by: duckflyer <duckflyer@gmail.com>
2022-08-26Fix purely white space issues reported by flake8Alf Henrik Sauge
2021-12-01cmake: Fix old style dependency lookup with imported targetsDaniel Mensinger
This also includes some refactoring, since the alternaticve would have been to duplicate the huge traceparser target code block again. fixes #9581