summaryrefslogtreecommitdiff
path: root/mesonbuild/templates/samplefactory.py
AgeCommit message (Collapse)Author
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: use a common template for C# and JavaDylan Baker
The only real differences between these generators is the file extension and the templates themselves. We can uses a shared abstract class with a few abstract properties to provide all of this to the same base class. This results in less code duplication and easier maintanence. I've made a few cleanups to the shared template: - use `str.capitalize()` instead of `str.upper()[0] + str[1:]` - use `open` as a context manager - use f-strings - put some duplicate calculations in the initializer
2023-07-25templates: fix typo in function name `sameple` -> `sample`Dylan Baker
2023-07-25templates/samplefactory: move type checking only import to special blockDylan Baker
Don't import things we don't actually need at runtime
2023-07-25minit: use a Protocol for argumentsDylan Baker
Which gives better type hinting. It also points out that we're changing the type of sourcefiles. That's now fixed
2023-02-01treewide: add future annotations importEli Schwartz
2021-11-16Add vala templateAlberto Fanjul
2020-09-08typing: Fix templatesDaniel Mensinger
2020-03-19sample factory implementationMichael