aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-01-01style: fix E226 violationsIgor Gnatenko17-52/+52
E226: missing whitespace around arithmetic operator Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-01style: fix E225 violationsIgor Gnatenko13-99/+99
E225: missing whitespace around operator Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-01backends/ninja: remove unused variablesIgor Gnatenko1-2/+0
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-31Fix space before :.Jussi Pakkanen22-455/+456
2016-12-31Pass project's user options to scan-build temporary project.Hemmo Nieminen1-1/+7
This allows (among other things) scan-build to process a project's optional components that will not get built unless a (user) option has been set.
2016-12-31Do not run arm cross compilation tests on arm.Jussi Pakkanen1-1/+3
2016-12-31Add simple uninstall target. Closes #753.Jussi Pakkanen5-0/+69
2016-12-31Merge pull request #1258 from QuLogic/compile_resource-includesJussi Pakkanen6-40/+60
Add include_directories to windows.compile_resources.
2016-12-31Use the correct directory for scan-build command.Hemmo Nieminen1-1/+2
2016-12-29setup.cfg: fix syntaxIgor Gnatenko1-2/+2
2016-12-28Add include_directories to windows.compile_resources.Elliott Sales de Andrade4-2/+17
2016-12-28Move _get_include_args from gnome to modules.Elliott Sales de Andrade2-38/+43
2016-12-28Just say no.Jussi Pakkanen1-0/+2
2016-12-23setup.cfg: ignore couple of PEP8 errorsIgor Gnatenko1-1/+6
We don't care about E261 and temporarily ignore E501. Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-23Can specify include directories to compiler tests.Jussi Pakkanen3-0/+32
2016-12-23Add get_version() method to all dependenciesNirbheek Chauhan2-13/+76
We unconditionally check the version of all dependencies, so without this regen will fail if you use that dependency.
2016-12-23Force a Ninja regeneration before each project testNirbheek Chauhan1-0/+5
We have no test coverage for regeneration at all, which is why issues like #1246 slide by without us noticing. With this, we will run a regen on every test during `ninja test` after it has been compiled. This will not affect test times too much since the regen will not rebuild anything at all since there have been no source changes.
2016-12-23gdc: Make dependency check workMatthias Klumpp1-3/+1
The -fmake-deps command does not segfault anymore, and if it is used with "=" there will also be no "file not found" error.
2016-12-23Merge pull request #1247 from centricular/fix-installed-soname-aliasesJussi Pakkanen6-40/+60
Fix soname symlinking after installation
2016-12-23Do not automatically set warning flags if buildtype is 'plain'Matthias Klumpp1-1/+1
2016-12-22Add Generator.process_files to reduce code duplication.Elliott Sales de Andrade5-19/+19
2016-12-22Vim syntax highlighting fixes. Closes #1241.Jussi Pakkanen2-4/+4
2016-12-22Add myself to authors.txtKseniia Vasilchuk1-0/+1
2016-12-22configure_file: Use utf-8 to write configured fileKseniia Vasilchuk1-1/+1
as a second part of https://github.com/mesonbuild/meson/issues/1085
2016-12-22Share code between installed and non-installed soname testsNirbheek Chauhan1-46/+12
2016-12-22Fix shared library symlink aliasing on installNirbheek Chauhan4-29/+27
Set the rules for the symlinking on the target itself, and then reuse that information while generating aliases during the build, and then pass it to the install script too.
2016-12-21Fix installation of statically linked executable for ELF binary.Matthieu Gautier2-0/+8
At installation, if the executable is a ELF file, we try to fix the dependencies in the binary section. If a executable has been compiled with the --static flag, there is no .dynamic section in the ELF binary and so we need to handle this case.
2016-12-22Add an installed soname unit testNirbheek Chauhan2-5/+61
We also need to test that the sonames are correct after installation.
2016-12-21Store pkg-config path on the instance tooNirbheek Chauhan1-4/+13
We were storing the pkg-config path on the class as a static variable -- PkgConfigDependency.pkgbin. When we regenerate via Ninja, the found-deps are all cached in a pickled coredata, so if you have a statement that does dep.get_pkgconfig_variable(), it will raise the following exception because the static class variables are per-meson-invocation. To fix this, we store the pkg-config binary as both a class variable and an instance variable. Traceback (most recent call last): File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/mesonmain.py", line 289, in run app.generate() File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/mesonmain.py", line 177, in generate intr.run() File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreter.py", line 2215, in run super().run() File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 124, in run self.evaluate_codeblock(self.ast, start=1) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 145, in evaluate_codeblock raise e File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 139, in evaluate_codeblock self.evaluate_statement(cur) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 150, in evaluate_statement return self.function_call(cur) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 371, in function_call return self.funcs[func_name](node, self.flatten(posargs), kwargs) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 47, in wrapped return f(self, node, args, kwargs) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreter.py", line 2035, in func_subdir self.evaluate_codeblock(codeblock) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 145, in evaluate_codeblock raise e File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 139, in evaluate_codeblock self.evaluate_statement(cur) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 160, in evaluate_statement return self.evaluate_if(cur) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 213, in evaluate_if self.evaluate_codeblock(i.block) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 145, in evaluate_codeblock raise e File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 139, in evaluate_codeblock self.evaluate_statement(cur) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 160, in evaluate_statement return self.evaluate_if(cur) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 213, in evaluate_if self.evaluate_codeblock(i.block) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 145, in evaluate_codeblock raise e File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 139, in evaluate_codeblock self.evaluate_statement(cur) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 182, in evaluate_statement return self.evaluate_plusassign(cur) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 333, in evaluate_plusassign addition = self.evaluate_statement(node.value) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 166, in evaluate_statement return self.evaluate_arraystatement(cur) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 193, in evaluate_arraystatement (arguments, kwargs) = self.reduce_arguments(cur.args) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 515, in reduce_arguments reduced_pos = [self.evaluate_statement(arg) for arg in args.arguments] File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 515, in <listcomp> reduced_pos = [self.evaluate_statement(arg) for arg in args.arguments] File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 154, in evaluate_statement return self.method_call(cur) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreterbase.py", line 399, in method_call return obj.method_call(method_name, self.flatten(args), kwargs) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/interpreter.py", line 982, in method_call value = fn(state, args, kwargs) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/modules/gnome.py", line 499, in generate_gir girdir = dep.get_pkgconfig_variable("girdir") File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/dependencies.py", line 219, in get_pkgconfig_variable ret, out = self._call_pkgbin(['--variable=' + variable_name, self.name]) File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/dependencies.py", line 184, in _call_pkgbin p, out = Popen_safe([PkgConfigDependency.pkgbin] + args, env=os.environ)[0:2] File "/home/nirbheek/projects/repositories/github/meson.git/mesonbuild/mesonlib.py", line 392, in Popen_safe stderr=stderr, **kwargs) File "/usr/lib64/python3.5/subprocess.py", line 947, in __init__ restore_signals, start_new_session) File "/usr/lib64/python3.5/subprocess.py", line 1474, in _execute_child executable = os.fsencode(executable) File "/usr/lib64/python3.5/os.py", line 862, in fsencode raise TypeError("expect bytes or str, not %s" % type(filename).__name__) TypeError: expect bytes or str, not NoneType FAILED: build.ninja '/usr/bin/python3' '/home/nirbheek/projects/repositories/github/meson.git/meson.py' --internal regenerate '/home/nirbheek/projects/repositories/gst/gstreamer' '/home/nirbheek/projects/repositories/gst/gstreamer/build' --backend ninja ninja: error: rebuilding 'build.ninja': subcommand failed
2016-12-21Raise clearer error if -Doption is invalid.Elliott Sales de Andrade1-1/+4
2016-12-21Merge pull request #1218 from ximion/masterJussi Pakkanen2-6/+10
Do not automatically set warning flags if buildtype is 'plain'
2016-12-21Shut down the noise.Jussi Pakkanen1-1/+1
2016-12-21d: Correctly set SONAME on D shared librariesMatthias Klumpp1-1/+2
All D compilers use the system linker, which is very convenient here.
2016-12-21ldc: Protect linker flags from deduplicationMatthias Klumpp1-1/+1
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 Klumpp1-4/+7
2016-12-21Some merge conflicts are logical. Such as this one was.Jussi Pakkanen1-1/+1
2016-12-21Fix exception when linking with invalid object.Elliott Sales de Andrade1-1/+1
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 Pakkanen36-73/+51
Trivial cleanups in code
2016-12-21add sideci.ymlIgor Gnatenko1-0/+3
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-21add flake8 configurationIgor Gnatenko1-0/+2
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-20Add per target argument for Fortran.Jussi Pakkanen2-1/+9
2016-12-20Version number bump for new development (again).Jussi Pakkanen1-1/+1
2016-12-20Update version number for 0.37.1.0.37.1Jussi Pakkanen5-5/+5
2016-12-20Merge pull request #1228 from mesonbuild/runcrossJussi Pakkanen9-83/+62
Fix cross test and run them if a cross compiler is available.
2016-12-20Make cross tests use same framework as regular tests.Jussi Pakkanen5-73/+36
2016-12-20Minimal fixes to make tests pass when cross compiling.Jussi Pakkanen6-15/+28
2016-12-20Fix cross test and run them if a cross compiler is available.Jussi Pakkanen4-4/+7
2016-12-20Merge pull request #1227 from centricular/ninja-clean-recursive-dir-deleteJussi Pakkanen6-36/+120
run_project_tests.py: Also do ninja clean on tests
2016-12-20Cache the scripts used for postconf and install phasesNirbheek Chauhan9-19/+45
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 Chauhan6-24/+18
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)