summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-12-21Raise clearer error if -Doption is invalid.Elliott Sales de Andrade
2016-12-21Merge pull request #1218 from ximion/masterJussi Pakkanen
Do not automatically set warning flags if buildtype is 'plain'
2016-12-21Shut down the noise.Jussi Pakkanen
2016-12-21d: Correctly set SONAME on D shared librariesMatthias Klumpp
All D compilers use the system linker, which is very convenient here.
2016-12-21ldc: Protect linker flags from deduplicationMatthias Klumpp
This is the better way to pass arguments through to the linker when compiling D code with LDC.
2016-12-21ldc/dmd: Properly set warning argumentsMatthias Klumpp
2016-12-21Some merge conflicts are logical. Such as this one was.Jussi Pakkanen
2016-12-21Fix exception when linking with invalid object.Elliott Sales de Andrade
If you declare_dependency(link_with : 'string'), an exception is supposed to be raised, but instead of a proper message, it's an exception about a missing attribute.
2016-12-21Merge pull request #1233 from mesonbuild/wip/ignatenko/code-styleJussi Pakkanen
Trivial cleanups in code
2016-12-21add sideci.ymlIgor Gnatenko
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-21add flake8 configurationIgor Gnatenko
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-20Add per target argument for Fortran.Jussi Pakkanen
2016-12-20Version number bump for new development (again).Jussi Pakkanen
2016-12-20Update version number for 0.37.1.Jussi Pakkanen
2016-12-20Merge pull request #1228 from mesonbuild/runcrossJussi Pakkanen
Fix cross test and run them if a cross compiler is available.
2016-12-20Make cross tests use same framework as regular tests.Jussi Pakkanen
2016-12-20Minimal fixes to make tests pass when cross compiling.Jussi Pakkanen
2016-12-20Fix cross test and run them if a cross compiler is available.Jussi Pakkanen
2016-12-20Merge pull request #1227 from centricular/ninja-clean-recursive-dir-deleteJussi Pakkanen
run_project_tests.py: Also do ninja clean on tests
2016-12-20Cache the scripts used for postconf and install phasesNirbheek Chauhan
Cache the absolute dir that the script is searched in and the name of the script. These are the only two things that change. Update the test to test for both #1235 and the case when a script of the same name is in a different directory (which also covers the subproject case). Closes #1235
2016-12-20Fix several more lint errorsNirbheek Chauhan
Found by Igor Gnatenko ************* Module mesonbuild.interpreter E:1232,33: No value for argument 'interp' in constructor call (no-value-for-parameter) ************* Module mesonbuild.dependencies E: 68, 4: An attribute defined in mesonbuild.dependencies line 39 hides this method (method-hidden) ************* Module mesonbuild.environment E: 26, 0: class already defined line 19 (function-redefined) E: 68,18: Undefined variable 'InterpreterException' (undefined-variable) E:641,39: Undefined variable 'want_cross' (undefined-variable) E:850,94: Undefined variable 'varname' (undefined-variable) E:854,94: Undefined variable 'varname' (undefined-variable) E:860,102: Undefined variable 'varname' (undefined-variable) E:863,94: Undefined variable 'varname' (undefined-variable) ************* Module mesonbuild.modules.gnome E:438,26: Undefined variable 'compilers' (undefined-variable)
2016-12-19tree-wide: use proper 'not in' notationIgor Gnatenko
Let's be more pythonic and 'not is' seems really weird. Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-20clean-ctlist is a forbidden target nameNirbheek Chauhan
No other target must be called this since we use it for calling the `cleantrees.py` script.
2016-12-19find_program: Don't leak mutable array in get_command()Nirbheek Chauhan
In several places in the gnome module, we are getting an array from this and directly appending to it which changes the original command array ever since we started caching the find_program results. We urgently need to move to immutable types for all object properties. Reported by Alexandor Larsson on IRC.
2016-12-19tree-wide: remove blank lines at EOFIgor Gnatenko
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-19tree-wide: remove trailing whitespacesIgor Gnatenko
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-19run_project_test: don't import sys twiceIgor Gnatenko
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-19interpreter: remove duplicated dictionary keyIgor Gnatenko
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-19tree-wide: remove unused variablesIgor Gnatenko
./mesonbuild/scripts/regen_checker.py:35:5: F841 local variable 'scriptdir' is assigned to but never used scriptdir = os.path.split(__file__)[0] ^ ./mesonbuild/scripts/yelphelper.py:84:13: F841 local variable 'symfile' is assigned to but never used symfile = os.path.join(install_dir, m) ^ ./mesonbuild/backend/backends.py:164:13: F841 local variable 'lang' is assigned to but never used lang = comp.get_language() ^ ./mesonbuild/backend/ninjabackend.py:1286:9: F841 local variable 'scriptdir' is assigned to but never used scriptdir = self.environment.get_script_dir() ^ ./mesonbuild/backend/vs2010backend.py:736:9: F841 local variable 'additional_options_set' is assigned to but never used additional_options_set = True ^ Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-19tree-wide: remove unused importsIgor Gnatenko
./setup.py:17:1: F401 'os' imported but unused import os ^ ./setup.py:37:1: F401 'stat.ST_MODE' imported but unused from stat import ST_MODE ^ ./run_tests.py:17:1: F401 'os' imported but unused import subprocess, sys, os ^ ./run_tests.py:18:1: F401 'shutil' imported but unused import shutil ^ ./run_unittests.py:23:1: F401 'mesonbuild.dependencies.Qt5Dependency' imported but unused from mesonbuild.dependencies import PkgConfigDependency, Qt5Dependency ^ ./mesonbuild/build.py:15:1: F401 '.coredata' imported but unused from . import coredata ^ ./mesonbuild/interpreter.py:32:1: F401 'subprocess' imported but unused import os, sys, subprocess, shutil, uuid, re ^ ./mesonbuild/interpreter.py:32:1: F401 're' imported but unused import os, sys, subprocess, shutil, uuid, re ^ ./mesonbuild/dependencies.py:23:1: F401 'subprocess' imported but unused import os, stat, glob, subprocess, shutil ^ ./mesonbuild/mesonlib.py:17:1: F401 'sys' imported but unused import platform, subprocess, operator, os, shutil, re, sys ^ ./mesonbuild/modules/qt5.py:15:1: F401 'subprocess' imported but unused import os, subprocess ^ ./mesonbuild/modules/pkgconfig.py:15:1: F401 '..coredata' imported but unused from .. import coredata, build ^ ./mesonbuild/scripts/scanbuild.py:15:1: F401 'sys' imported but unused import sys, os ^ ./mesonbuild/scripts/meson_exe.py:20:1: F401 'subprocess' imported but unused import subprocess ^ ./mesonbuild/scripts/meson_exe.py:22:1: F401 '..mesonlib.MesonException' imported but unused from ..mesonlib import MesonException, Popen_safe ^ ./mesonbuild/scripts/symbolextractor.py:23:1: F401 'subprocess' imported but unused import os, sys, subprocess ^ ./mesonbuild/scripts/symbolextractor.py:25:1: F401 '..mesonlib.MesonException' imported but unused from ..mesonlib import MesonException, Popen_safe ^ ./mesonbuild/scripts/meson_install.py:19:1: F401 '..mesonlib.MesonException' imported but unused from ..mesonlib import MesonException, Popen_safe ^ ./mesonbuild/scripts/yelphelper.py:15:1: F401 'sys' imported but unused import sys, os ^ ./mesonbuild/scripts/yelphelper.py:20:1: F401 '..mesonlib.MesonException' imported but unused from ..mesonlib import MesonException ^ ./mesonbuild/backend/vs2010backend.py:17:1: F401 're' imported but unused import re ^ ./test cases/vala/8 generated sources/src/copy_file.py:3:1: F401 'os' imported but unused import os ^ ./test cases/common/107 postconf/postconf.py:3:1: F401 'sys' imported but unused import sys, os ^ ./test cases/common/129 object only target/obj_generator.py:5:1: F401 'shutil' imported but unused import sys, shutil, subprocess ^ ./test cases/common/57 custom target chain/usetarget/subcomp.py:3:1: F401 'os' imported but unused import sys, os ^ ./test cases/common/95 dep fallback/subprojects/boblib/genbob.py:3:1: F401 'os' imported but unused import os ^ ./test cases/common/98 gen extra/srcgen.py:4:1: F401 'os' imported but unused import os ^ ./test cases/common/113 generatorcustom/gen.py:3:1: F401 'os' imported but unused import sys, os ^ ./test cases/common/113 generatorcustom/catter.py:3:1: F401 'os' imported but unused import sys, os ^ ./test cases/common/59 object generator/obj_generator.py:5:1: F401 'shutil' imported but unused import sys, shutil, subprocess ^ Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-19Use a script to clean-up custom-target output dirsNirbheek Chauhan
The script will manually delete all custom_target outputs that are directories instead of files. This is needed because on platforms other than Windows, Ninja only deletes directories while cleaning if they are empty. Closes #1220
2016-12-19run_project_tests.py: Also do ninja clean on testsNirbheek Chauhan
This will catch things like #1220
2016-12-19backend/ninja: pass language name instead of compilerIgor Gnatenko
Traceback (most recent call last): File "F:\avian\meson\mesonbuild\mesonmain.py", line 289, in run app.generate() File "F:\avian\meson\mesonbuild\mesonmain.py", line 179, in generate g.generate(intr) File "F:\avian\meson\mesonbuild\backend\ninjabackend.py", line 185, in generate self.generate_rules(outfile) File "F:\avian\meson\mesonbuild\backend\ninjabackend.py", line 745, in generate_rules self.generate_compile_rules(outfile) File "F:\avian\meson\mesonbuild\backend\ninjabackend.py", line 1530, in generate_compile_rules self.generate_llvm_ir_compile_rule(compiler, True, outfile) File "F:\avian\meson\mesonbuild\backend\ninjabackend.py", line 1386, in generate_llvm_ir_compile_rule ' '.join(self.get_cross_info_lang_args(compiler, is_cross)), File "F:\avian\meson\mesonbuild\backend\ninjabackend.py", line 1406, in get_cross_info_lang_args return self.environment.cross_info.config['properties'][lang + '_args'] TypeError: unsupported operand type(s) for +: 'ClangCCompiler' and 'str' Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-19fix some of pylint's undefined-variableIgor Gnatenko
************* Module mesonbuild.modules.rpm E:106,29: Unsupported format character '{' (0x7b) at index 16 (bad-format-character) ************* Module mesonbuild.modules E: 12,14: Undefined variable 'MesonException' (undefined-variable) ************* Module mesonbuild.modules.gnome E:699,69: Undefined variable 'sargs' (undefined-variable) ************* Module mesonbuild.wrap.wrap E:103,25: Undefined variable 'checkoutdir' (undefined-variable) ************* Module mesonbuild.backend.backends E: 83,16: Undefined variable 'mlog' (undefined-variable) ************* Module mesonbuild.backend.ninjabackend E:254,105: Undefined variable 't' (undefined-variable) Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-19Fix pkg-config during cross-compile.Elliott Sales de Andrade
2016-12-19Fix undefined variables in cross-compile.Elliott Sales de Andrade
2016-12-18Version update for new development.Jussi Pakkanen
2016-12-18Bump version number for release.Jussi Pakkanen
2016-12-18Add rewriter to manifest.Jussi Pakkanen
2016-12-18Merge pull request #1216 from mesonbuild/ignatenko/shebangsJussi Pakkanen
Remove shebangs on files inside module
2016-12-18custom_target: Make directory outputs installableNirbheek Chauhan
This is useful in many cases where the list of files cannot be known in advance and is just dumped inside a directory. For example when generating documentation with doxygen and other tools that we don't have built-in support for. Includes a test for the same. Closes #893
2016-12-18Fix PGI Fortran compiler detection.Jussi Pakkanen
2016-12-18s/Nonexistant/Nonexistent/gIgor Gnatenko
There is basically no such word in english, "nonexistant". American people use "nonexistent" and British people used to have "non-existent", but some time ago they did away with the hyphens, so there is only one option really: "nonexistent". Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-18Allow passing arguments to install scriptsNirbheek Chauhan
Closes #1213
2016-12-18remove shebang from wraptoolIgor Gnatenko
meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/wrap/wraptool.py 644 /usr/bin/python3 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-18remove shebangs from scriptsIgor Gnatenko
meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/scripts/regen_checker.py 644 /usr/bin/python3 meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/scripts/meson_test.py 644 /usr/bin/python3 meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/scripts/meson_benchmark.py 644 /usr/bin/python3 meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/scripts/meson_exe.py 644 /usr/bin/python3 meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/scripts/symbolextractor.py 644 /usr/bin/python3 meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/scripts/commandrunner.py 644 /usr/bin/python3 meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/scripts/gtkdochelper.py 644 /usr/bin/python3 meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/scripts/meson_install.py 644 /usr/bin/python3 meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/scripts/depfixer.py 644 /usr/bin/python3 meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/scripts/dirchanger.py 644 /usr/bin/python3 meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/scripts/delwithsuffix.py 644 /usr/bin/python3 meson.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/mesonbuild/scripts/vcstagger.py 644 /usr/bin/python3 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-18Merge pull request #1210 from centricular/qt-fixes-windowsJussi Pakkanen
Various Qt and pkg-config fixes for windows
2016-12-18Merge pull request #1209 from mesonbuild/ignatenko/dirsJussi Pakkanen
Add various directories
2016-12-18Merge pull request #1207 from centricular/has-header-preprocess-onlyJussi Pakkanen
has_header: Don't compile, only preprocess
2016-12-18tests/125 shared module: Run with the VS backendNirbheek Chauhan
This was skipped during the PR phase because it was broken, but we fixed it later.