summaryrefslogtreecommitdiff
path: root/mesonbuild/templates/cpptemplates.py
AgeCommit message (Collapse)Author
2025-12-01templates: simplify (whitespace, flatten array)Sam James
2025-11-28templates: Define a macro for pubic APIs on OS/2KO Myung-Hun
2025-11-23templates: respect parametersSam James
Respect collected sources for `meson init` as well as --executable. This regressed in 9f0ac314ba0c54cc18c2499845324efc14c1849e (part of https://github.com/mesonbuild/meson/pull/14086, it's easier to see how with the whole PR). Also, add subtests (distinguishing between empty directories and those with some file(s) within). We already had some of these but they weren't marked as such. Test `meson init` with a broken source file in the source directory as we should fail with that, not ignore the file. It's easier to test with a broken file than a working one as we can assert the build should fail, it'll pass with just the 1 example file we generate. Closes: https://github.com/mesonbuild/meson/issues/15286
2025-05-04templates: add missing space to cpp templateheather7283
2025-04-04templates: Fix style by adding space after ifPaul Caprioli
2025-01-08templates: use library() instead of shared_library()Dylan Baker
2025-01-08templates: Use modern pkgconfig generator APIDylan Baker
2025-01-08templates: add meson.override_dependency()Dylan Baker
2025-01-08templates: plumb dependencies into the new project templateDylan Baker
The command line value exists, and we'll want it soon.
2025-01-08templates: standardize Meson formattingDylan Baker
We have all kinds of formatting, different indents, different line break standards.
2025-01-08templates: Add a Meson versionDylan Baker
Without a version certain kinds of warnings will be suppressed, which is bad. I've picked 1.0 because it's pretty old, except for Rust where I've maintained the 1.3.0 requirement
2025-01-08templates: Update copyright informationDylan Baker
Intel's copyright was missing on these.
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-07-25templates: use common classes for remaining languagesDylan Baker
These all break down into either a single file or a file + header. This means a little more customization per class, but not too much.
2023-07-25templates: move initializer to base classDylan Baker
Every class implements the exact same initializer, simplify this by putting it in the base class initializer
2023-02-01treewide: add future annotations importEli Schwartz
2021-06-29fix: Always explicitly set encoding for text files (fixes #8263)Daniel Mensinger
2020-09-08typing: Fix templatesDaniel Mensinger
2020-03-19sample factory implementationMichael
2020-02-22tests: Ensure that executable and library are named differentlyNirbheek Chauhan
On Windows, the basename is used to determine the name of the PDB file. So for a project called myproject, we will create myproject.dll and myproject.exe, both of which will have myproject.pdb. This is a file collision. Instead, append `_test`, similar to the C# template. Fixes AllPlatformTest.test_templates on MSVC. This became a hard error when we started listing PDBs in the implicit outputs list of ninja targets. Do the same for a test that was making the same mistake.
2019-11-02Minit templates modularizationMichael Hirsch, Ph.D