summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts
AgeCommit message (Collapse)Author
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-17gettext: Respect the --subdir argument before the MESON_SUBDIR varThibault Saunier
In the case of subproject we will properly setup the --subdir argument but the MESON_SUBDIR is never adapted and will point to an empty string leading to the following backtrace when building `gst-build`: msgfmt: error while opening "/home/thiblahute/devel/gstreamer/gst-build/af.po" for reading: No such file or directory Traceback (most recent call last): File "/home/thiblahute/devel/gstreamer/gst-build/meson/meson.py", line 37, in <module> sys.exit(main()) File "/home/thiblahute/devel/gstreamer/gst-build/meson/meson.py", line 34, in main return mesonmain.run(launcher, sys.argv[1:]) File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonbuild/mesonmain.py", line 248, in run sys.exit(run_script_command(args[1:])) File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonbuild/mesonmain.py", line 236, in run_script_command return cmdfunc(cmdargs) File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonbuild/scripts/gettext.py", line 111, in run if gen_gmo(src_sub, bld_sub, langs) != 0: File "/home/thiblahute/devel/gstreamer/gst-build/meson/mesonbuild/scripts/gettext.py", line 66, in gen_gmo '-o', os.path.join(bld_sub, l + '.gmo')]) File "/usr/lib/python3.5/subprocess.py", line 581, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['msgfmt', '/home/thiblahute/devel/gstreamer/gst-build/af.po', '-o', '/home/thiblahute/devel/gstreamer/gst-build/build/af.gmo']' returned non-zero exit status 1 Failed to run install script: /usr/bin/python3 /home/thiblahute/devel/gstreamer/gst-build/meson/meson.py --internal gettext install --subdir=subprojects/gstreamer/po --localedir=share/locale --pkgname=gstreamer-1.0 --langs=af@@az@@be@@bg@@ca@@cs@@da@@de@@el@@en_GB@@eo@@es@@eu@@fi@@fr@@gl@@hr@@hu@@id@@it@@ja@@lt@@nb@@nl@@pl@@pt_BR@@ro@@ru@@rw@@sk@@sl@@sq@@sr@@sv@@tr@@uk@@vi@@zh_CN@@zh_TW FAILED: install '/usr/bin/python3' '/home/thiblahute/devel/gstreamer/gst-build/meson/meson.py' '--internal' 'install' '/home/thiblahute/devel/gstreamer/gst-build/build/meson-private/install.dat'
2016-12-12gnome.gtkdoc(): Include builddir variant of include dirs alsoPatrick Griffis
This avoids the need for users to constantly join paths themselves as this is commonly included.
2016-12-11Use universal_newlines=True for all Popen callsNirbheek Chauhan
Instead of adding it everywhere manually, create a wrapper called mesonlib.Popen_safe and use that everywhere that we call an executable and extract its output. This will also allow us to tweak it to do more/different things if needed for some locales and/or systems. Closes #1079
2016-12-06Merge pull request #1086 from Keruspe/masterJussi Pakkanen
Allow specifying some toolchain executables using env
2016-12-06Merge pull request #1151 from mesonbuild/tingping/gtk-docJussi Pakkanen
gnome: Various improvements to gtkdoc
2016-12-06gnome.gtkdoc(): Add keyword to override the modePatrick Griffis
I'm not entirely sure if you ever want to mix and match but I can say that glib required none of them to be passed so this allows for that.
2016-12-07misc: Use relative imports everywhereNirbheek Chauhan
Using 'mesonbuild' as the module can cause it to use the system-installed module and can also break if we rename the directory, so avoid that by always using relative imports.
2016-12-06i18n: Improve language handlingPatrick Griffis
- Fix LINGUAS changes not being picked up - Fix multiple langs per line in LINGUAS - Make empty languages acceptable Fixes #1127
2016-12-06gnome.gtkdoc(): Add namespace keywordPatrick Griffis
2016-12-06gnome.gtkdoc(): Allow passing multiple source dirsPatrick Griffis
This is valid and used by glib for example.
2016-12-06gnome.gtkdoc(): Fix including doc source dir in pathPatrick Griffis
2016-12-05allow overriding nm with NMMarc-Antoine Perennou
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2016-12-05allow overriding readelf with READELFMarc-Antoine Perennou
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2016-11-18All testing is now in mesontest.py, which simplifies a lot of stuff.Jussi Pakkanen
2016-11-18Made Meson test into a class rather than abusing global variables and as ↵Jussi Pakkanen
preparation for moving it elsewhere.
2016-11-18Run all tests if none are specified.Jussi Pakkanen
2016-11-18Use the same code for tests and benchmarks.Jussi Pakkanen
2016-11-18Removed Valgrind from core.Jussi Pakkanen
2016-11-18New test runner.Jussi Pakkanen
2016-11-13Use portable path separator in wrappers.Elliott Sales de Andrade
The semicolon only separates paths on Windows, but the wrapper is sometimes used on other platforms.
2016-11-12Fixed SyntaxError in itstool invocation in yelphelper.py duringOlexa Bilaniuk
installation. During a `python3.4 setup.py install`, the yelphelper.py script errors out with: "SyntaxError: can use starred expression only as assignment target". Fix this problem.
2016-11-12scripts/gtkdochelper: ignore_headers is a listNirbheek Chauhan
Also, only add it if it's defined. Closes #1020
2016-11-10vs backend: coredata.meson_script_file was renamedNirbheek Chauhan
2016-11-09Can specify scan-build executable with an environment variable. Closes #1015.Jussi Pakkanen
2016-11-08Implement mlog.warning and use it everywhere for warningsNirbheek Chauhan
Prepends the string with 'WARNING:' in ANSI yellow. Closes https://github.com/mesonbuild/meson/issues/961
2016-11-02gettext: Use argparse to handle argumentsPatrick Griffis
2016-11-01gtkdoc: Add `ignore_headers` positional argumentEmmanuele Bassi
Not all headers are public, or contain public types. GTK-Doc allows adding headers to be ignored during the "scan" phase, by passing the `--ignore-headers` command line argument to gtkdoc-scan. Currently, you can do something like: ignored_headers = [ 'foo-private.h', 'bar-private.h', ] gnome.gtkdoc(... scan_args: [ '--ignore-headers=' + ' '.join(ignored_headers), ], ...) But it does not guarantee escaping rules and it's definitely not nice. We can add a simpler version of that mechanism through a new positional argument, `ignore_headers`, which behaves like `content_files` or `html_assets`, and takes an array of header files to ignore: gnome.gtkdoc(... ignore_headers: ignored_headers, ...)
2016-11-01gtkdochelper: Add 'overrides.txt' to the content filesEmmanuele Bassi
If a `<modulename>-overrides.txt` file exists in the docs directory it means it's intended to be used in place of the one gtk-doc generates. GLib and GTK+, for instance, ship with one because some of the types they provide — like the thread primitives, or the platform macros — contain architecture-dependent fields that should not be accessed directly. This commit should close the last bit of issue #550.
2016-10-24Fix depfixer on MIPS.Aurelien Jarno
2016-10-23gettext: Add update-po targetPatrick Griffis
For each project this creates a <project>-update-po target. When ran this updates the pot file and then merges it back into the po files in the source directory with `msgmerge` for project maintainers and translators. Fixes #819
2016-10-19gnome: Add yelp() functionPatrick Griffis
Fixes #881 Mentioned in #295
2016-10-19gnome: Include build dir in gtkdoc-mkhtml pathPatrick Griffis
2016-10-19Don't mention non-existing log files after testing.Hemmo Nieminen
2016-10-16gettext: Add ability to set GETTEXTDATADIRSPatrick Griffis
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 Pakkanen
that are.
2016-09-26gnome: Allow specifying gtkdoc where to install directoryThibault Saunier
2016-09-26gnome: Run gtkdoc-scanobjs and add a way to get assets workingThibault Saunier
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üller
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 Saunier
Allowing user to fine tune tests environment variables
2016-09-08meson_test: Add env variables to the test logs file (#767)Thibault Saunier
So users can more easily reproduce the test without the launcher
2016-09-07Remove unneeded shebang line that was triggering some linters.Jussi Pakkanen
2016-09-01Merge branch 'QuLogic-context-managers'Jussi Pakkanen
2016-08-27Refactor DESTDIR determination into a single function.Elliott Sales de Andrade
2016-08-27Always obey DESTDIR even with absolute install_dir.Elliott Sales de Andrade
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 Andrade
This allows for automatic closing of its internal file handle.
2016-08-27Use context manager for file I/O.Elliott Sales de Andrade
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 Andrade
This helps with debugging if the command fails.
2016-08-26Allow capturing command output of a custom target.Elliott Sales de Andrade
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 Pakkanen