aboutsummaryrefslogtreecommitdiff
path: root/test cases/frameworks
AgeCommit message (Collapse)AuthorFilesLines
2017-06-21Merge pull request #1924 from mesonbuild/tingping/yelp-fixesJussi Pakkanen2-0/+15
Various yelp fixes
2017-06-17wxwidgets: Fix usage of multiple dependency() callsNirbheek Chauhan1-0/+1
This was broken because the class property will say True but the object property will not be set. Store the value on the class property and transfer to object in __init__. Just like PkgConfigDependency.
2017-06-10tests: Make SDL2 compulsory now that it's in the CI imageNirbheek Chauhan1-5/+6
2017-06-09gnome.yelp(): Test symlink_media casePatrick Griffis2-0/+14
2017-06-09gnome.yelp(): Make copies of media files when symlink is falsePatrick Griffis1-0/+1
2017-06-10tests: Increase dependencies coverage a bit moreNirbheek Chauhan1-0/+6
2017-06-09tests: Improve llvm dependency test coverageNirbheek Chauhan1-0/+7
2017-06-09Add a new test for SDL2, which didn't have oneNirbheek Chauhan2-0/+42
Currently optional on all platforms.
2017-06-04Merge pull request #1545 from centricular/dont-link-recursivelyJussi Pakkanen1-1/+1
Don't add dependencies recursively while linking
2017-06-03Use correct gettext input file in testRene Lopez2-2/+14
2017-06-02Don't add dependencies recursively while linkingNirbheek Chauhan1-1/+1
We were doing this on the basis of an old comment, but there was no test for it and I couldn't reproduce the issue with clang on Linux at all. Let's add a (somewhat comprehensive) test and see if it breaks anywhere if we stop doing this. Halves the size of gstreamer's build.ninja from 20M to 8.7M Closes https://github.com/mesonbuild/meson/issues/1057
2017-05-29De-uniquefy.Jussi Pakkanen1-1/+1
2017-05-25add static Boost dependency testAdam C. Foltzer1-2/+5
2017-05-09Upgrade CI image to Ubuntu Zesty.Jussi Pakkanen1-2/+2
2017-05-08Add support for @CURRENT_SOURCE_DIR@ in generator argumentsAlberto Aguirre4-0/+22
Allow users to specify @CURRENT_SOURCE_DIR@ in generator arguments to specify the current target source directory. This is useful when creating protobuf generator objects in sub-directories because protoc will then generate files in the expected location. Fixes #1622. Remove stray semicolon Update documentation
2017-05-03Add dependency for LLVM. Fixes #1611Dylan Baker2-0/+86
This adds a depdendncy wrapper for llvm-config based on the wxwidgets dependency. IT handles libs, version, include dir, and the llvm unique concept of components. These components are individual pieces of the LLVM library that may or may not be available depending on the platform.
2017-04-15tests: skip protocol buffers test if deps are not foundTim-Philipp Müller1-2/+7
2017-04-09Add an option to dependencies called 'method'. This can be used toAaron Small2-6/+9
configure a detection method, for those types of dependencies that have more than one means of detection. The default detection methods are unchanged if 'method' is not specified, and all dependencies support the method 'auto', which is the same as not specifying a method. The dependencies which do support multiple detection methods additionally support other values, depending on the dependency.
2017-03-01Merge pull request #1379 from mesonbuild/doxygenJussi Pakkanen7-0/+2695
Created doxygen sample project.
2017-02-26tests: Use #!/usr/bin/env python3 for all scriptsNirbheek Chauhan1-1/+3
We automatically convert that to use sys.executable now which is always available on all platforms (because we're running with it). On some platforms like NetBSD, `python` doesn't exist, and you must use a specific python version. On most other distros, `python` is Python 2, and we don't want to depend on that. Closes https://github.com/mesonbuild/meson/issues/695 All these scripts were being used as `find_program()`, so we do not lose any test coverage by doing this.
2017-02-20gnome: Support configure_file() output in compile_resourcesNirbheek Chauhan2-2/+15
We can't support generated XML files with custom_target() because the dependency scanning happens at configure time, but we *can* support generating them with configure_file(). Closes https://github.com/mesonbuild/meson/issues/1380
2017-02-18Improved the Doxygen sample project.Jussi Pakkanen6-19/+106
2017-02-12Created doxygen sample project.Jussi Pakkanen6-0/+2608
2017-01-21tests/4 qt: Force the use of -std=c++11Nirbheek Chauhan1-1/+3
Qt5 now requires this, and if no -std option is passed to clang, it does not enable C++ 11 features and we get a build failures.
2017-01-09Fix Gnome module.Jussi Pakkanen1-5/+6
2017-01-04test/7 gnome: Fix on ICC and suppress a warningNirbheek Chauhan3-7/+18
Ignore warning 2282 about GCC pragmas since they are emitted in system headers and are extremely spammy. They are emitted because ICC pretends to be GCC via C macros but doesn't implement some pragmas. https://bugzilla.gnome.org/show_bug.cgi?id=776562 Also, append to LD_LIBRARY_PATH because ICC uses that for some internal libraries such as libintlc.so.
2016-12-18Qt: Allow passing a name arg to preprocess()Nirbheek Chauhan1-0/+3
This sets a unique name for the CustomTarget and the output cpp file. Closes #959
2016-12-03Merge pull request #1076 from mesonbuild/tingping/gresource-exportJussi Pakkanen3-0/+23
gnome.compile_resources(): Add export and install_header kwargs
2016-12-03i18n: Add merge_file functionPatrick Griffis6-0/+19
This is a repeated task that we can simplify Closes #1120
2016-11-20gnome.compile_resources(): Add export and install_header kwargsPatrick Griffis2-0/+3
This defaults to not exporting resources as that is generally what you want but that does make this a breaking change. Along with that if you export your resources you would want to install the header.
2016-11-20gnome.compile_resources(): Add ability to output gresource bundlesPatrick Griffis3-0/+20
Closes #1061
2016-11-20gnome: Update required version for glib-compile-resources depfile fixesPatrick Griffis1-1/+1
Note that this version is not yet released
2016-11-14trivial: remove executable bits on gnome frameworkIgor Gnatenko10-0/+0
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-11-14Disable gresource dependency generation as it breaks Ninja.Jussi Pakkanen1-2/+2
2016-11-13tests/4 qt: Test that invalid modules are not foundNirbheek Chauhan1-0/+11
2016-11-13tests/4 qt: Don't search for QtWidgets with Qt4Nirbheek Chauhan1-1/+6
Doesn't exist on qt4, and causes the test case to not run at all.
2016-11-13Add a test for gir dependencies and includesNirbheek Chauhan12-23/+314
MesonDep1 doesn't use symbols from MesonDep2, but uses the MesonDep2 structure definition (so it only needs the header). This means only generate_gir needs a dependency on MesonDep2 and shared_library doesn't. This was broken earlier. MesonSample uses symbols from MesonDep1 and MesonDep2, so both the library and the gir get a dependency on MesonDep1, and on MesonDep2 (transitively). The transitive dependency was broken earlier.
2016-11-12Merge pull request #1010 from centricular/qt5-broken-moc-detectionJussi Pakkanen13-41/+45
Overhaul Qt4/5 detection with pkg-config/qmake and improve moc/uic/rcc detection
2016-11-12Fix regex used in custom target evaluationNirbheek Chauhan2-2/+2
Instead of using a whitelist, use a blacklist. Also print a more useful error if the regex fails to match. Use an underscore in the gir test to trigger this. Fixes #436
2016-11-11tests: Remove outdated qt4 manual test and rename qt5 automated testNirbheek Chauhan12-0/+0
qt5 framework test now also tests qt4, and will test qt6 if/when it comes out.
2016-11-11qt4, qt5 modules: Improve moc/uic/rcc detectionNirbheek Chauhan1-30/+34
Instead of blindly searching in PATH, use Qt5Dependency.compilers_detect() (same for qt4) to get moc/uic/rcc. This is much more robust, and it improves the chances that the correct ones will be found. We still manually verify for now because the fallback in dependencies.py for searching is stll to look in PATH for backwards-compat, and because people probably have setups like that. Also sync the qt4 module with the qt5 module w.r.t. resource compilation and make the compiled qrc.cpp file unique in terms of the framework version used (4 vs 5). This is needed for the test to work properly, which now covers both Qt4 and 5.
2016-11-09Allow tests to mark themselves as skipped during runtime.Jussi Pakkanen1-1/+3
2016-10-23Add missing period.Jussi Pakkanen1-1/+1
2016-10-23Merge pull request #934 from mesonbuild/wip/tingping/gnome-yelpJussi Pakkanen8-0/+50
gnome: Add yelp() function
2016-10-21Add support for extracting objects in unity buildsNirbheek Chauhan1-0/+2
Not only does extract_all_objects() now work properly again, extract_objects() also works if you specify a subset of sources all of which have been compiled into a single unified object. So, for instance, this allows you to extract all the objects corresponding to the C sources compiled into a target consisting of C and C++ sources.
2016-10-19Add test for gnome.yelp()Patrick Griffis8-0/+50
2016-10-13gnome: allow use of generated files with compile_resources()Sam Thursfield13-8/+104
This commit adds a 'dependencies' keyword to the gnome.compile_resources() function, which allows your resource blob to depend on files generated at build-time from custom_target() or configure_file() targets. My current use case for this is source data that gets processed with Gettext translation tools before being compiled into the resource blob. This feature only works with GLib version 2.48.2 and above. So the compile_resources() function now detects GLib version and raises an error if the version of GLib being used is too old. The compile_resources() test case is now split into two, so that the existing one can continue to run on systems with old GLib versions (such as Ubuntu Xenial, which the automated tests on travisci.org use), but where new enough GLib is available we also test generating gresource content. The existing warning about glib-compile-resources is now only printed if GLib version is older than 2.50.0 because <https://bugzilla.gnome.org/show_bug.cgi?id=745754> is fixed in the 2.50.0 release.
2016-10-13Use stdout for success message instead of stderr in gresource testSam Thursfield1-1/+1
This doesn't fix an issue, it's just good practice.
2016-10-10tests/gnome: Add missing enums.h dep to enums2.cNirbheek Chauhan1-1/+1
Was causing intermittent test failures
2016-10-10dependencies: Fix traceback always setting 'variable'Thibault Saunier1-0/+3
if pkg-config return != 0 and the dep is not required, it will not be set