David Fort
6dea177774
add support for cmakedefine in configure_file()
...
The added format argument for configure_file allows to specify the kind of
file that is treated. It defaults to 'meson', but can also have the 'cmake'
or 'cmake@' value to treat config.h.in files in the cmake format with #cmakedefine
statements.
7 years ago
Jussi Pakkanen
30827b5644
Do not install configure_file output if install_dir is empty. Closes #3270 .
7 years ago
Joergen Ibsen
91a0126590
Improve escaping in configuration files
...
Replace pairs of backslashes before '@' or '\@' with singles (allows
escaping the escape character). Do not consume next '@' after '\@'.
7 years ago
Joergen Ibsen
fdb48a3a0f
Use re.sub instead of replace loop
...
This also prohibits recursive substitution.
7 years ago
Martin Blanchard
105507a173
get-unquoted: Rework test case for msvc (make it more realistic)
7 years ago
Martin Blanchard
6b517475f5
get-unquoted: Add test case for new get_unquoted() method
7 years ago
Jan Chren (rindeal)
61ac9a5348
add tests for `capture` in `configure_file()`
8 years ago
Bálint Aradi
e79b602298
Enable variables for output in configure_file
8 years ago
Philipp Ittershagen
adebed8ec8
Enable File() objects as an input parameter to configure_file
...
The configure_file command raised an exception when an input was specified as a
File, because os.path.join does not take File objects directly. This patch
converts a File object to a string and adjusts the subsequent os.path.join
calls.
8 years ago
Tim-Philipp Müller
8cc89e468d
configure_file: make input arg optional if command is used
...
Fixes #1476
8 years ago
Nirbheek Chauhan
cb0aa6a83a
configure_file: Substitute @INPUT@/@OUTPUT@/etc in command
...
The same substitutions and rules as custom_target().
Also generally fix it to actually work when run in a subdir and with
anything other than absolute paths for input and output files.
We now also log a message when configuring files.
Includes tests for all this.
8 years ago
Jussi Pakkanen
0a2daf84eb
No longer require a binary called python3 on Windows. The default name is "python".
8 years ago
Jussi Pakkanen
00f62d0755
Can get values in ConfigurationData objects.
8 years ago
Tim-Philipp Müller
3aebdb717a
configuration_data: can pass descriptions to setters ( #783 )
...
Add support for passing a description to configuration data
setter methods via a 'description' kwarg. The description
string will be used when meson generates the entire configure
file without a template, autoconf-style.
8 years ago
Tim-Philipp Müller
09fdc7f815
configuration_data: add .set_quoted() convenience method to set quoted string
...
Quotes in the string will be escaped C-string style with \", but
nothing else will be escaped.
8 years ago
Jussi Pakkanen
177e286b3c
Can generate config headers without an input file. Closes #549 .
9 years ago
Jussi Pakkanen
2e93295c2e
Generate configure files immediately when they are declared. Closes #88 .
10 years ago
Jussi Pakkanen
52b69b8939
Make sure that build and source subdirectories are always in search
...
path.
10 years ago
Jussi Pakkanen
87ea869f02
Can install files created with configure_file.
10 years ago
Jussi Pakkanen
cf6a395014
Spell out include_directories.
10 years ago
Jussi Pakkanen
eeaa5d0684
Some windows fixes.
11 years ago
Jussi Pakkanen
d9d70372b4
Can generate configuration files with custom scripts.
11 years ago
Jussi Pakkanen
d4284aae89
Renamed add_test to test.
12 years ago
Jussi Pakkanen
6ff098bea6
Store configuration values in an object rather than global variables.
12 years ago
Jussi Pakkanen
5c37665e5d
Support for easier #define declarations.
12 years ago
Jussi Pakkanen
b0b171f2b9
Test application for config file.
12 years ago
Jussi Pakkanen
9262fe600a
Split test suite into common and platform dependent parts.
12 years ago
Jussi Pakkanen
9418ece26a
Renamed system from builder to Meson.
12 years ago
Jussi Pakkanen
3eab390158
Can generate configure files.
12 years ago