summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts
Commit message (Collapse)AuthorAgeFilesLines
* The scanbuild script does now also look for executables with a version in ↵snsmac2017-12-301-1/+25
| | | | the name
* Exclude llvm/clang lib headers from test coveragesnsmac2017-12-171-0/+1
| | | | | Excludes the /usr/lib/llvm-*/include/ directory from coverage. This directory is used on Ubuntu for the libclang-dev packages
* Check for more errors when executing subprocess. (#2746)behlec2017-12-091-4/+10
|
* Improve error handling when failing to execute program. (#2743)behlec2017-12-071-1/+4
|
* Review fixes.Jussi Pakkanen2017-11-211-5/+6
|
* Replaced sys.executable use with the mesonlib equivalent.Jussi Pakkanen2017-11-201-9/+5
|
* Silence failed restorecon calls when $DESTDIR is setZbigniew Jędrzejewski-Szmek2017-11-191-1/+3
| | | | | | | | | | | | This avoids hundres of warnings like: Warning no default label for /var/tmp/instroot.hUbtYJ/path/to/some/binary $DESTDIR is usually set to a temporary path, in which case the path is unknown to selinux. For that case we could just skip the restorecon calls. But sometimes it is used with a path to container. In that case, most of the time, selinux has no context for that path. But we can't rule that out somebody added custom context rules for the container. So let's still call restorecon, but silence the warning.
* Pass restorecon file list through stdin.Elliott Sales de Andrade2017-11-111-5/+7
| | | | This should avoid any issues with command-line argument limits.
* Coalesce restorecon calls into one.Elliott Sales de Andrade2017-11-091-16/+12
| | | | Fixes #2596.
* gtkdoc: Pass the linker down to gtkdoc-scangobjXavier Claessens2017-11-071-1/+2
| | | | Closes #2540
* MSI: Fix regenerate with visual studioNiklas Claesson2017-10-191-3/+5
| | | | Fixes #2461
* Create the .po file with the `update_po` subcommand if it doesn't existCorentin Noël2017-10-071-1/+4
|
* Made man page gzip creation deterministic. Closes #2363.Jussi Pakkanen2017-09-231-1/+3
|
* Merge pull request #2216 from ebassi/yelp-linguasJussi Pakkanen2017-09-141-0/+4
|\ | | | | Support LINGUAS for gnome.yelp() languages
| * Re-use gettext.read_linguas in yelphelperEmmanuele Bassi2017-08-181-16/+1
| |
| * Support LINGUAS for gnome.yelp() languagesEmmanuele Bassi2017-08-181-0/+19
| | | | | | | | | | | | | | | | | | Listing all languages inside meson.build for the Yelp-based manual localisation is error-prone, and it also requires parsing and modifying Meson files from external tools. Just like we do for i18n, we can use an ancillary `LINGUAS` file in the help source sub-directory to list all the help languages.
* | install: Also ignore PermissionError for selinuxNirbheek Chauhan2017-09-041-1/+1
| | | | | | | | | | | | | | When the user does not have permissions to run `selinuxenabled`, a PermissionError is raised instead of FileNotFoundError. Closes https://github.com/mesonbuild/meson/issues/2257
* | Remove leftover debug print statement in meson_install.pyGabríel Arthúr Pétursson2017-08-201-1/+1
| |
* | Make all functionality invokable via the main Meson binary,Jussi Pakkanen2017-08-182-8/+18
|/ | | | which can be a Windows .exe file.
* Exclude system sources from test coverageStefan Sonski2017-08-111-0/+1
| | | Exclude /usr/src/ from code coverage, this is included for e.g. gtest/gmock.
* Allow excluding files from `install_subdir`Elliott Sales de Andrade2017-08-061-5/+15
| | | | | | The install_subdir command now accepts a new `exclude` keyword argument that allows specified files to be excluded from the installed subdirectory.
* Remove directories created by ninja installPeter Hutterer2017-08-012-17/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a DirMaker class that disassembles the path up to '/' and stores all directories in a list. That list is in creation order and pre-existing directories are ignored, i.e. creating the two paths '/usr/share/foo/bar/baz' and '/usr/share/foo/bar/boo' is stored as [ '/usr/share/foo', '/usr/share/foo/bar', '/usr/share/foo/bar/baz', '/usr/share/foo/bar/boo' ] This is on the assumption that /usr/share already existed. After all files have been installed, the list of created directories is appended in reverse order to the install log. The uninstall script then triggers rmdir on all directories. If a custom install script drops files into the directories, removing those will fail. This matches the current expectation, see the existing warning "Remember that files created by custom scripts have not been removed." Unfortunately, this makes the behavior on uninstall inconsistent. Assuming a non-existing prefix, ninja install && ninja uninstall removes all traces of the install. However, ninja install && ninja install && ninja uninstall removes the files only, not the directories as they already existed. This could be fixed by just unconditionally removing any (emtpy) directories that we drop files into, at the risk of removing system directories if empty. For example, one could imagine /etc/foo.conf.d/ to be removed in that case if it is empty. https://github.com/mesonbuild/meson/issues/2032
* meson_install: rename 'data' to 'd' for consistencyPeter Hutterer2017-08-011-3/+3
| | | | All other functions call it 'd', let's do it here too
* install: restore the SELinux context on installPeter Hutterer2017-07-311-0/+24
| | | | | | | | | | Try to restore the context for SELinux. If we fail on running 'selinuxenabled', quietly ignore the error and continue. If we fail on the actual restorecon call, we print a message but disable SELinux - chances are high that if one restorecon fails, others will too and that's likely a system setup issue. Fixes #1967
* Close files reliably.Jussi Pakkanen2017-07-181-0/+5
|
* gnome.gtkdoc: Handle absolute install_dirs correctlyNirbheek Chauhan2017-07-171-3/+5
| | | | | Must prepend DESTDIR in case it's absolute. Also document that by default it is relative to the gtk-doc html directory.
* Return explicit 0 as it is used in a sys.exit statement (just like every ↵Jussi Pakkanen2017-07-161-0/+1
| | | | other run function).
* Use sys.exit rather than plain exit.Jussi Pakkanen2017-07-161-1/+1
|
* Merge pull request #1920 from QuLogic/hg-distJussi Pakkanen2017-06-211-7/+29
|\ | | | | Add Mercurial dist support
| * Add Mercurial dist support.Elliott Sales de Andrade2017-06-131-4/+25
| |
| * Remove extraneous os.path.split()s.Elliott Sales de Andrade2017-06-131-3/+4
| | | | | | | | | | Since only one part is needed, they can be replaced by dirname, basename, or the originally joined file name.
* | gnome.yelp(): Handle file existing on symlinkPatrick Griffis2017-06-091-1/+5
| | | | | | | | Fixes #1921
* | gnome.yelp(): Handle platforms where symlink not supportedPatrick Griffis2017-06-091-2/+5
| |
* | gnome.yelp(): Make copies of media files when symlink is falsePatrick Griffis2017-06-091-1/+5
|/
* Merge pull request #1866 from ebassi/mkdb-argsJussi Pakkanen2017-06-071-1/+10
|\ | | | | Add mkdb_args support to gnome.gtkdoc()
| * Add mkdb_args support to gnome.gtkdoc()Emmanuele Bassi2017-05-281-1/+10
| | | | | | | | | | | | | | There are cases where we need to specify arguments to gtkdoc-mkdb, like telling it to scan extensions that are not '.h' and '.c'. Let's add a new named argument to gnome.gtkdoc(), as well as the plumbing needed for the gtk-doc helper script.
* | Allow empty extra arguments in gettext scriptRene Lopez2017-06-031-1/+1
| |
* | Whitespace tweaks to reduce Flake8 warningsAlistair Thomas2017-05-292-3/+3
|/
* Create helper function for a rmtree that works reliably on Windows.Jussi Pakkanen2017-05-211-1/+2
|
* Delete the correct directory in dist check.Elliott Sales de Andrade2017-05-171-1/+1
|
* Remove dead code paths.Elliott Sales de Andrade2017-05-171-2/+1
|
* Remove unused variables.Elliott Sales de Andrade2017-05-172-4/+4
|
* Remove unused imports.Elliott Sales de Andrade2017-05-171-2/+1
|
* Strip system directories and show coverage for files not executed at all. ↵Jussi Pakkanen2017-05-131-19/+37
| | | | Closes #1721.
* Moved coverage commands to a standalone script.Jussi Pakkanen2017-05-131-0/+61
|
* Add test and release notes.Jussi Pakkanen2017-05-121-1/+1
|
* Initialise submodules.Jussi Pakkanen2017-05-111-15/+37
|
* Test created tarball by doing a full build + test + install cycle.Jussi Pakkanen2017-05-111-22/+63
|
* Created a dist target. Closes #877.Jussi Pakkanen2017-05-111-0/+85
|
* Use American English: behaviour -> behaviorPeter Hutterer2017-05-041-1/+1
|