Dylan Baker
29ef4478df
compilers/d: Add b_ndebug support
...
D lang compilers have an option -release (or similar) which turns off
asserts, contracts, and other runtime type checking. This patch wires
that up to the b_ndebug flag.
Fixes #7082
5 years ago
Yann Dirson
ee94cb6c15
cmake2meson fix if nesting ( #6676 )
5 years ago
Daniel Mensinger
09b53c534f
types: import typing as T ( fixes #6333 )
5 years ago
Michael Hirsch, Ph.D
ba7428c9d3
cmake2meson: improve exceptions, add type annotations, use argparse
5 years ago
Michael Hirsch, Ph.D
2ba2c7771f
allow nested if loop
...
close paren
6 years ago
Michael Hirsch, Ph.D
142cf1459f
modernize library default syntax, be like CMake static default
6 years ago
Georg Müller
4cbca49976
cmake2meson: convert varexp to lowercase
...
since variable names in 'set' statements are converted to lowercase, the
variable itself should be converted to lower-case too when used.
7 years ago
Georg Müller
567b51ac71
cmake2meson: strip comments from statements
...
Without this change, the following correct cmake will cause an error:
statement(
arg1
# arg2
arg3
)
7 years ago
Georg Müller
c60c21a60d
cmake2meson: convert statements to lower case
...
cmake does not distinguish between upper and lower case, so convert it to
lower case for the later comparisons.
7 years ago
Jussi Pakkanen
b2a90f1838
Removed unnecessary pass statements.
7 years ago
Mike Sinkovsky
dac8351ff1
cleanup: Unbound local variable
8 years ago
Mike Sinkovsky
969be1f679
cleanup: Remove redundant parentheses
8 years ago
Mike Sinkovsky
22eed4c417
cleanup: Redundant character escape
8 years ago
Mike Sinkovsky
5b626ab4cb
style: [E1**] Indentation
8 years ago
Mike Sinkovsky
84902cb93a
style: [E301] expected 1 blank line, found 0
8 years ago
Igor Gnatenko
f0bc5568a7
style: fix E703 violations
...
E703: statement ends with a semicolon
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
ea570bcb67
style: fix E265 violations
...
E265: block comment should start with '# '
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
2017d8578a
style: fix E226 violations
...
E226: missing whitespace around arithmetic operator
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Jussi Pakkanen
b55235dfbd
Fix space before :.
8 years ago
Gautier Pelloux-Prayer
7a4786b01d
Allow id to contain a pipe "|"
...
For instance in [color](https://github.com/bagage/color/blob/master/tests/CMakeLists.txt#L26 ) project tests contains a `|` character.
8 years ago
Gautier Pelloux-Prayer
7bd06d88d5
cmake2meson.py: Fix missing quote around options type/name
8 years ago
Elliott Sales de Andrade
859c5e28df
Use context manager in scripts.
8 years ago
Jussi Pakkanen
02185132d2
Moved new ac converter from wrap repo and made shebang line use env. Closes #256 .
9 years ago
Jussi Pakkanen
4b43d30309
Convert test declarations.
11 years ago
Jussi Pakkanen
9abe913a1f
Convert library targets.
11 years ago
Jussi Pakkanen
355371374c
Convert executable command.
11 years ago
Jussi Pakkanen
7c6861268a
Convert build options.
11 years ago
Jussi Pakkanen
abebfe7927
More convertisizising.
11 years ago
Jussi Pakkanen
eef91d1b2f
Working if else indents.
11 years ago
Jussi Pakkanen
451f6247f3
Convert function arguments.
11 years ago
Jussi Pakkanen
18cee0fca2
Convert a few more functions, can generate a simple skeleton.
11 years ago
Jussi Pakkanen
0c31155b0a
Convert some function types.
11 years ago
Jussi Pakkanen
c8184965c4
Comments are converted. Yay!
11 years ago
Jussi Pakkanen
053cc2e5f8
Converter is a class.
11 years ago
Jussi Pakkanen
4063efcf6a
Store whole token.
11 years ago
Jussi Pakkanen
6d3e9be0e5
Some moar fixing.
11 years ago
Jussi Pakkanen
4652088c18
Work further into LLVM parsing.
11 years ago
Jussi Pakkanen
951e6d1f82
Better error message.
11 years ago
Jussi Pakkanen
e8c6c09717
Count line and column numbers.
11 years ago
Jussi Pakkanen
f64ba79033
Regexp fine tuning, can not parse LLVM yet.
11 years ago
Jussi Pakkanen
4fe17f484f
Recurse to subdirectories.
11 years ago
Jussi Pakkanen
371e747ca4
Can parse a basic CMake list.
11 years ago
Jussi Pakkanen
3a4cdb843b
Can now lex all of libcolumbus.
11 years ago
Jussi Pakkanen
7d25129c03
Parse some code.
11 years ago
Jussi Pakkanen
e7ca0ab09b
Experiment on writing a CMake converter.
11 years ago
Jussi Pakkanen
a05021f749
Helper app to delete files with a given suffix.
12 years ago
Jussi Pakkanen
3f3496f08a
Fix shebang lines to work on OSX too.
12 years ago
Jussi Pakkanen
54cde351ef
Meson can now be installed and run from system directories.
12 years ago
Jussi Pakkanen
d30c2eba03
Added script to compile Meson itself.
12 years ago