aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts
AgeCommit message (Collapse)AuthorFilesLines
2016-10-19Don't mention non-existing log files after testing.Hemmo Nieminen1-1/+2
2016-10-16gettext: Add ability to set GETTEXTDATADIRSPatrick Griffis1-3/+11
Some projects use this to allow using local its files
2016-10-07Remove shebangs on files that are not runnable and add execute bits to those ↵Jussi Pakkanen14-3/+0
that are.
2016-09-26gnome: Allow specifying gtkdoc where to install directoryThibault Saunier1-1/+3
2016-09-26gnome: Run gtkdoc-scanobjs and add a way to get assets workingThibault Saunier1-17/+67
Allowing the object tree to be generated. We need to add options to allow copying the ncesseary sources and assets so the HTML generator can work with them (everything is relative so we need to copy them in the build directory). Until now the documentation was not generated from the user provided main sgml file but it was using a generated one, which lead to a broken documentation. Starting using it revealed the other bugs fixed in that commit.
2016-09-25i18n: use POTFILES.in as fallback if there's no POTFILES in po dirTim-Philipp Müller1-0/+6
In autotools POTFILES is generated at configure time from POTFILES.in, but Meson only looks for a po/POTFILES in the source directory, which is awkward when trying to maintain both build systems in parallel. Instead just use POTFILES.in as fallback if it exists but POTFILES does not. Also print an error if neither exists. Fixes #818
2016-09-14Add a new 'environment' object to be used to build test environment (#781)Thibault Saunier1-0/+4
Allowing user to fine tune tests environment variables
2016-09-08meson_test: Add env variables to the test logs file (#767)Thibault Saunier1-4/+9
So users can more easily reproduce the test without the launcher
2016-09-07Remove unneeded shebang line that was triggering some linters.Jussi Pakkanen1-2/+0
2016-09-01Merge branch 'QuLogic-context-managers'Jussi Pakkanen8-66/+98
2016-08-27Refactor DESTDIR determination into a single function.Elliott Sales de Andrade1-25/+14
2016-08-27Always obey DESTDIR even with absolute install_dir.Elliott Sales de Andrade1-3/+12
Passing an absolute path to `install_dir` would previously always attempt to install there, instead of obeying DESTDIR, since os.path.join will 'reset' on absolute paths.
2016-08-27Convert depfixer.Elf class into a context manager.Elliott Sales de Andrade1-12/+22
This allows for automatic closing of its internal file handle.
2016-08-27Use context manager for file I/O.Elliott Sales de Andrade7-54/+76
There are a few cases where a context manager cannot be used, such as the logger.
2016-08-26Echo stderr from captured command.Elliott Sales de Andrade1-0/+2
This helps with debugging if the command fails.
2016-08-26Allow capturing command output of a custom target.Elliott Sales de Andrade1-1/+6
For commands that always output to stdout and don't have a "-o" or "--output" or some other similar option, this 'capture' setting allows the build to capture the result and place it in the output file.
2016-08-04Handle both DT_RPATH as well as DT_RUNPATH when fixing rpath settings.Jussi Pakkanen1-7/+23
2016-07-24gtkdochelper: Add error checking and printingNirbheek Chauhan1-13/+23
This helps debug why things are failing
2016-07-19vs: Fix Meson invocation while doing regen (#646)Nirbheek Chauhan1-4/+7
The Meson script is not always in $scriptdir/../../ -- for instance if installed with pip on Windows, the scriptdir is in: C:/Python35/Lib/site-packages/meson-0.33.0.dev1-py3.5.egg/mesonbuild/scripts and the meson.py script is in: C:/Python35/Scripts So, let's save the path available as Environment().meson_script_file into the coredata.dat private file and use that to invoke Meson when doing regen. Also, let's fetch the backend that was used from the coredata too instead of hard-coding vs2010. Both these were causing a hard failure while doing regen with msbuild or visual studio.
2016-07-13Merge pull request #417 from nirbheek/dll-pathsJussi Pakkanen1-1/+1
Fix filenames and paths used in DLL shared library generation
2016-07-12Create a log file of all files installed.Jussi Pakkanen1-1/+21
2016-07-01scripts/install: Also strip '\' from the end of a pathNirbheek Chauhan1-1/+1
Fixes installation of subdirs on Windows
2016-06-16scripts: Use destdir_join fix for all DESTDIR prefixing (#598)Nirbheek Chauhan4-17/+30
2016-06-06meson_test: Fix a bug in valgrind argument handling.Hemmo Nieminen1-3/+4
Do not modify the wrap command argument from the calling function. Appending the valgrind arguments to the wrap list argument will cause all the valgrind arguments to cumulate from all the tests to the wrapper command itself.
2016-06-05Try to delete target files before installing. Closes #578.Jussi Pakkanen1-8/+14
2016-05-30Handle case of install_subdirring a subdir.Jussi Pakkanen1-1/+4
2016-05-30Installing subdirs now merges with existing files in the target dir.Jussi Pakkanen1-12/+32
2016-05-28Always initialise final_command.Jussi Pakkanen1-2/+1
2016-05-28Since we only care about shebang line and sane ones use plain ASCII, use an ↵Jussi Pakkanen1-2/+1
encoding that can not fail. Closes #561.
2016-05-28Join windows-style destdir paths correctly. Closes #567.Jussi Pakkanen1-4/+11
2016-05-26Can pass extra args to xgettext. Closes #554.Jussi Pakkanen1-3/+3
2016-05-25Merge pull request #556 from ebassi/gtkdoc-fixrefJussi Pakkanen1-3/+9
Support passing extra arguments to gtkdoc-fixxref
2016-05-25Merge pull request #479 from mesonbuild/i18nJussi Pakkanen2-14/+65
Moved gettext into i18n module.
2016-05-25Support passing extra arguments to gtkdoc-fixxrefEmmanuele Bassi1-3/+9
The extra arguments are typically used to specified the location of installed API references that gtk-doc can use to create cross links for symbols. Fixes #555
2016-05-22Automagic scan-build support.Jussi Pakkanen1-0/+39
2016-05-21Remove all special casing for gettext and use elementary operations instead.Jussi Pakkanen2-14/+65
2016-05-01Merge branch 'centricular-customtarget-path-windows'Jussi Pakkanen1-0/+74
2016-04-28Fix argv count requirement in delwithsuffix.py scriptMinijackson1-1/+1
2016-04-18scripts/meson_exe: prepend extra_paths to PATH instead of appendingNirbheek Chauhan1-1/+1
This way locally-built DLLs and EXEs are preferred over system-wide ones
2016-04-15ninja: Set PATH for CustomTargets with built EXEs on WindowsNirbheek Chauhan1-0/+74
When a CustomTarget is run with a command that is an executable built by the project which also has a DLL built in the same project as a dependency, the EXE can't run on Windows because the DLL can't be found. On UNIX-like systems, we set the RPATH using the linker so these dependencies can be found, but on Windows the only way is to set the PATH environment variable. The same problem exists for tests, so we reuse that infrastructure by creating a new meson_exe.py script that can be used as a wrapper to run CustomTarget commands on Windows. This can later also be extended to add support for setting an environment while calling the command needed to generate a CustomTarget: https://github.com/mesonbuild/meson/issues/266
2016-04-14Fix a bug (typo) seen when printing the logs from failed tests. (#513)trhd1-1/+1
2016-04-06Merge pull request #438 from trhd/testing_optionsJussi Pakkanen2-43/+68
New options for controlling test output.
2016-04-01Use individual tempdirs for building and installing in unit tests.Jussi Pakkanen1-1/+1
2016-04-01meson_test: Don't print logs from failing tests that are expected to fail.Hemmo Nieminen1-3/+4
2016-04-01meson_test: Add support for --print-errorlogs option.Hemmo Nieminen1-34/+49
This option can be used to control whether the logs from failing tests should be shown to the user after the tests have been executed.
2016-04-01meson_test: Add support for --no-stdsplit option.Hemmo Nieminen2-12/+19
2016-04-01meson_test: Move "options" to a global variable.Hemmo Nieminen1-3/+5
2016-03-30Invoke depfixer in-process to make it faster. Closes #480.Jussi Pakkanen2-19/+22
2016-03-17meson_install.py: Start by checking if the shebang is directly runnableNirbheek Chauhan1-6/+10
If it's just runnable as-is, then we don't need to do fancy basename detection and such to find the interpretor to use for running the script.
2016-02-25vs2010: properly check whether solution needs to be regeneratedNicolas Schneider1-5/+13