summaryrefslogtreecommitdiff
path: root/mesonbuild/templates/fortrantemplates.py
AgeCommit message (Collapse)Author
2025-12-01templates: simplify (whitespace, flatten array)Sam James
2025-12-01templates: fix remaining languages for source file discovery tooSam James
I missed this in 9104bb616766bd9a05f0b2f280359463d32e227d as we were only testing whitelisted languages for source file discovery. Tests now handle all of these by using the map we have in compilers, as we need to know the suffix to use for the invalid source files we inject. Note that for tests, we mix explicit --lang in some cases and not others, which we could probably do better with. For these 'must fail' tests, I've stuck with explicit `--lang` to make sure we're testing what we want, but the others are perhaps up for debate. Bug: https://github.com/mesonbuild/meson/issues/15286
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