Commit Graph

80 Commits

Author SHA1 Message Date
Daniel Mensinger 96c31d9dbc typing: fix mypy typing error 2020-10-12 00:23:59 +03:00
Daniel Mensinger e681235e5f
typing: fix code review 2020-09-08 20:15:58 +02:00
Daniel Mensinger 0d57e307b2
typing: fully annotate tools 2020-09-08 20:15:56 +02:00
Daniel Mensinger 019ed04331
mdata: Generate mesondata.py from */data folders 2020-07-16 21:03:18 +02:00
Jussi Pakkanen 14cc2efcfe Store website build script. [skip ci] 2020-07-01 18:12:44 +03:00
TheQwertiest b6981bd16e
Made Commands.md dynamically generated (#7346) 2020-06-30 23:56:08 +03:00
Dylan Baker 85708facae
Merge pull request #6620 from jon-turney/test-output-check
Add a mechanism for validating meson output in tests
2020-05-13 11:32:28 -07:00
Daniel Mensinger 59db1f18ea boost: Only use usage-requirements defines (fixes #7046) 2020-05-01 22:08:59 +03:00
Jon Turney 630cfd84ad
Update dircondenser.py tool to update paths in test.json as well
Update dircondenser.py tool to update paths appearing in the expected
stdout in test.json when the containing directory is renamed.
2020-04-30 20:41:36 +01:00
Yann Dirson ee94cb6c15
cmake2meson fix if nesting (#6676) 2020-02-23 20:19:13 +02:00
Daniel Mensinger 893c246550
boost: Rewrite boost_names.py generator 2020-02-20 13:38:20 +01:00
Daniel Mensinger 09b53c534f types: import typing as T (fixes #6333) 2020-01-08 15:28:17 +01:00
Michael Brockus c0a9bca627 Update Python2 syntax to Python3 syntax in ghwt.py 2019-12-06 14:43:21 +02:00
Michael Hirsch, Ph.D 6e708208dd CI: add initial type annotation checking 2019-11-07 22:18:21 +02:00
Michael Hirsch, Ph.D ba7428c9d3 cmake2meson: improve exceptions, add type annotations, use argparse 2019-10-19 14:28:03 +03:00
Daniel Mensinger 3581839f4c
Fix unused variables warnings 2019-04-29 12:22:50 +02:00
Michael Hirsch, Ph.D 2ba2c7771f allow nested if loop
close paren
2019-01-16 23:43:30 +02:00
Michael Hirsch, Ph.D 142cf1459f modernize library default syntax, be like CMake static default 2019-01-06 22:29:34 +02:00
Jon Turney b338add554 Fix flake8 whitespace reports
$ flake8 | grep -E '(E203|E221|E226|E303|W291|W293)'
./mesonbuild/build.py:964:5: E303 too many blank lines (2)
./tools/dircondenser.py:70:36: E221 multiple spaces before operator
2018-09-13 20:33:17 +03:00
Jussi Pakkanen 10a07ebf70 Add script to condense test directory names. 2018-07-31 19:17:49 +03:00
Niklas Claesson 14e7b0af25 Boost: Add Python libraries
Fixes: #2507
2017-10-25 21:08:54 +03:00
Niklas Claesson c97e7749a6 Boost: Jamfile has two syntaxes for boost libraries
Fixes #2456
2017-10-12 21:45:23 +03:00
Niklas Claesson bbdba876af Boost: Improve search algorithm
The new implementation will correctly pick boost from 3 possible
locations on windows and two locations on posix compatible OSs.

The new search algorithm also differentiates between debug and
release builds of Boost and multi or single threading builds.

It was also decided to map "Meson modules" to Boost software libraries
and not Boost modules since it there are a lot of options regarding
linking. Some modules can even be used either as headers-only or with
dynamic linking.

This commit also fixes a bug that prevented header-only use on Windows.

Fixes: #2274 #2239 #1803 #669
2017-10-01 18:49:27 +02:00
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.
2017-09-14 10:23:54 +02:00
Georg Müller 567b51ac71 cmake2meson: strip comments from statements
Without this change, the following correct cmake will cause an error:

statement(
    arg1
    # arg2
    arg3
)
2017-09-14 10:18:26 +02:00
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.
2017-09-14 10:17:25 +02:00
Jussi Pakkanen 4c00297112 Improve ac_converter to print a help message. 2017-07-31 11:20:09 +01:00
Jussi Pakkanen b2a90f1838 Removed unnecessary pass statements. 2017-07-16 12:02:48 +03:00
Jussi Pakkanen cdfb416425 Removed duplicate key in dictionary. 2017-07-16 12:01:01 +03:00
Jussi Pakkanen 5311a274e3 A few typo fixes in the converter script. 2017-06-04 20:19:15 +03:00
Jussi Pakkanen 83e778118d Added more functions to the list of checks. 2017-06-04 14:14:14 +03:00
Mike Sinkovsky dac8351ff1 cleanup: Unbound local variable 2017-01-18 21:22:47 +02:00
Mike Sinkovsky 969be1f679 cleanup: Remove redundant parentheses 2017-01-18 21:22:47 +02:00
Mike Sinkovsky 22eed4c417 cleanup: Redundant character escape 2017-01-18 21:22:47 +02:00
Mike Sinkovsky 5b626ab4cb style: [E1**] Indentation 2017-01-11 12:33:27 -05:00
Mike Sinkovsky 84902cb93a style: [E301] expected 1 blank line, found 0 2017-01-11 12:33:27 -05:00
Igor Gnatenko f0bc5568a7 style: fix E703 violations
E703: statement ends with a semicolon

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-01 12:02:05 -05:00
Igor Gnatenko 969dc7e995 style: fix E124 violations
E124: closing bracket does not match visual indentation

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-01 12:02:05 -05:00
Igor Gnatenko ea570bcb67 style: fix E265 violations
E265: block comment should start with '# '

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-01 12:02:05 -05:00
Igor Gnatenko 2017d8578a style: fix E226 violations
E226: missing whitespace around arithmetic operator

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-01 12:02:05 -05:00
Jussi Pakkanen b55235dfbd Fix space before :. 2016-12-31 16:28:15 +02:00
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.
2016-10-19 00:53:28 +03:00
Gautier Pelloux-Prayer 7bd06d88d5 cmake2meson.py: Fix missing quote around options type/name 2016-10-18 22:52:43 +03:00
Igor Gnatenko 1df8c5c62b tools/ac_converter: couple of trivial fixes (#867)
W: 31, 4: Duplicate key 'HAVE_UNSETENV' in dictionary (duplicate-key)

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

* tools/ac_converter: fix undefined variable 'func'

E:283,11: Undefined variable 'func' (undefined-variable)

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

* tools/ac_converter: use spaces properly in HAVE_SOCKET

C: 97, 0: Exactly one space required after comma
     'HAVE_SOCKET' : ('socket',' sys/socket.h'),
                              ^ (bad-whitespace)

This also might cause some issue after conversion.

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-10-07 21:04:46 +03:00
Iain Lane 84d5f97b21 loop over `sizes'
I ran `ac_converter.py`, and it crashed

```
Traceback (most recent call last):
  File "ac_converter.py", line 299, in <module>
    for elem, typename in size:
```

I think it's a typo like this.
2016-09-04 15:57:09 +01:00
Elliott Sales de Andrade 859c5e28df Use context manager in scripts. 2016-08-30 04:17:47 -04:00
Jussi Pakkanen af0e3e2675 Use our config template rather than Autoconf's. 2016-08-14 10:31:58 +03:00
Jussi Pakkanen 7f4ecfc742 A few more checks for ac converter tool. 2016-08-13 19:30:28 +03:00
Jussi Pakkanen f663465b6b Convert socket checks. 2016-07-28 20:06:41 +03:00
Jussi Pakkanen 134468d4a5 A few more checks for converter. 2015-11-20 12:33:09 +02:00