Commit Graph

9 Commits

Author SHA1 Message Date
Dylan Baker e991c4d454 Use SPDX-License-Identifier consistently
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-13 15:19:21 -05:00
Dylan Baker 492d8e90ad templates: use common classes for remaining languages
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-25 15:50:21 -04:00
Dylan Baker d0729bde02 templates: move initializer to base class
Every class implements the exact same initializer, simplify this by
putting it in the base class initializer
2023-07-25 15:50:21 -04:00
Eli Schwartz 680b5ff819
treewide: add future annotations import 2023-02-01 17:01:30 -05:00
Daniel Mensinger 3e396b3782
fix: Always explicitly set encoding for text files (fixes #8263) 2021-06-29 11:28:08 +02:00
Daniel Mensinger 1b19822a2d
typing: Fix templates 2020-09-08 20:15:58 +02:00
Michael 02e7316d31 sample factory implementation 2020-03-19 22:44:59 +02:00
Nirbheek Chauhan 7f1d78f304 tests: Ensure that executable and library are named differently
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.
2020-02-22 06:49:34 +05:30
Michael Hirsch, Ph.D bbe6db08e3 Minit templates modularization 2019-11-02 23:34:58 +02:00