aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-11-18Use the same code for tests and benchmarks.Jussi Pakkanen2-89/+30
2016-11-18Removed subsuite targets.Jussi Pakkanen1-21/+0
2016-11-18Removed Valgrind from core.Jussi Pakkanen7-40/+8
2016-11-18Can run tests under gdb.Jussi Pakkanen1-14/+29
2016-11-18Add option to run under gdb.Jussi Pakkanen1-0/+6
2016-11-18New test runner.Jussi Pakkanen2-1/+64
2016-11-17Removed duplicate log message for command running. Closes #1056.Jussi Pakkanen1-1/+0
2016-11-14Rename test cases to remove duplicate numbers.Elliott Sales de Andrade13-0/+0
2016-11-14Bump version for new development.Jussi Pakkanen1-1/+1
2016-11-14Updated version number for release.0.36.0Jussi Pakkanen5-5/+5
2016-11-14Fix message to be checked in Qt5 unit test.Elliott Sales de Andrade1-1/+1
2016-11-14Hotfix for cross-compilation from Windows to LinuxNirbheek Chauhan1-5/+27
We currently pass cross-compiler options to the native compiler too and when cross-compiling from Windows to Linux, `options` will contain Linux-specific options which doesn't include `c_winlibs`. The proper fix is to allow cross-info files to specify compiler options and to maintain both cross and native compiler options in coredata, but that will have to be done after the 0.36.0 release. Also fixes a typo in MinGW cpp_winlibs option setting. Closes #1029
2016-11-14trivial: remove executable bits on gnome frameworkIgor Gnatenko10-0/+0
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-11-14Only add src_include_dir if it has been defined.Jussi Pakkanen1-1/+2
2016-11-14Disable gresource dependency generation as it breaks Ninja.Jussi Pakkanen2-14/+18
2016-11-14More robust link check.Jussi Pakkanen1-2/+1
2016-11-13Use portable path separator in wrappers.Elliott Sales de Andrade2-2/+4
The semicolon only separates paths on Windows, but the wrapper is sometimes used on other platforms.
2016-11-13Merge pull request #1042 from centricular/fix-qt4-testcase-qtwidgetsJussi Pakkanen2-16/+46
qt: Fix qmake detection on Linux and Windows
2016-11-13Added new files to manifest.Jussi Pakkanen1-0/+3
2016-11-13GTest and GMock changed their entire project layout on 1.8.0. Again. Fix it.Jussi Pakkanen1-9/+17
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-13qt: Fix qmake detection on Linux and WindowsNirbheek Chauhan1-15/+29
qmake for both Qt4 and Qt5 detection was assuming that it was only used on Windows, which is incorrect. It can also be used on Linux for cross-compilation or in general when pkg-config is not available. It was also not failing properly for both Qt5 and Qt4 when no libraries were found, and was assuming that the .dll was always available. Qt4 detection with qmake was also completely broken. Also prevents unwanted injection of partially-found qt dependencies in targets by unsetting self.cargs and self.largs
2016-11-12vala: Generate GIR into the build directory (fix #185)Guillaume Poirier-Morency4-1/+30
Add a Vala test generating GIR and typelib files.
2016-11-12Merge pull request #1022 from centricular/fix-girtarget-deps-includesJussi Pakkanen13-39/+351
gnome.generate_gir: Add gir deps and includes recursively
2016-11-13Merged generate_gir fix.Jussi Pakkanen1-2/+7
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-12Add new add_project_[link]_args functionsThibault Saunier13-6/+172
Fixes 979
2016-11-13gnome.generate_gir: Add gir deps and includes recursivelyNirbheek Chauhan1-16/+37
Earlier, we were never adding dependencies on other GirTargets that we need. The dependency would only be added indirectly through other BuildTargets such as SharedLibrary. Now we add all GirTargets specified in the `dependencies :` kwarg to the list of dependencies of the GirTarget that we generate. Also, we weren't adding include directories for the typelib generation command recursively. We were only adding it for the GirTargets listed under the `dependencies :` kwarg to gnome.generate_gir. Now we search all link targets, find GirTargets, extract the include dir, and use it. In summation, dependencies were completely broken.
2016-11-12vala: Implement valac.find_libraryNirbheek Chauhan9-73/+133
Move CCompiler.compile to Compiler.compile so that ValaCompiler can use it. Also rewrite ValaCompiler.sanity_check to use it since it does a simple compile check. At the same time, it enhances ExternalLibrary to support arguments for languages other than C-like. Includes a test for this that links against zlib through Vala. Closes #983
2016-11-12tests: Optional fallback subprojects can failNirbheek Chauhan2-0/+5
Tests https://github.com/mesonbuild/meson/issues/975
2016-11-12Fixed SyntaxError in itstool invocation in yelphelper.py duringOlexa Bilaniuk2-4/+4
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-12Merge pull request #1010 from centricular/qt5-broken-moc-detectionJussi Pakkanen28-338/+252
Overhaul Qt4/5 detection with pkg-config/qmake and improve moc/uic/rcc detection
2016-11-12Merge pull request #1027 from centricular/has-header-prefixJussi Pakkanen3-10/+29
cc.has_header: Allow specifying a prefix for headers
2016-11-12scripts/gtkdochelper: ignore_headers is a listNirbheek Chauhan1-4/+5
Also, only add it if it's defined. Closes #1020
2016-11-12compilers: add werror flag for msvcScott D Phillips1-0/+3
2016-11-12Fix regex used in custom target evaluationNirbheek Chauhan3-4/+10
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-12Revert "vala: Build with '--nostdpkg'", MR #920Jussi Pakkanen2-3/+1
This reverts commit 0f098c37ae3f257649eae7566391ad74b7010c45.
2016-11-12vala: Fix compiled object extractionNirbheek Chauhan3-0/+10
Fixes #791
2016-11-12Merge pull request #997 from tp-m/copy-mutable-variables-on-assignmentJussi Pakkanen4-6/+59
Copy mutable variables on assignment (configuration_data and environment)
2016-11-12Merge pull request #1019 from alvarez86/gcc_dump_versionJussi Pakkanen1-0/+11
Gcc dump version
2016-11-12vala: Build with '--nostdpkg'Guillaume Poirier-Morency2-1/+3
Since Vala require 'glib-2.0' and 'gobject-2.0' dependencies, it's better to fail at 'valac' step with meaningful error. Add missing 'gobject-2.0' dependency on the mixed source test case.
2016-11-11environment: Use GNU defines to get version of c, c++, objc and fortranPaulo Antonio Alvarez1-0/+4
According to https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html, the macros used to get the version are always defined for those languages, so use them to get the version.
2016-11-11environment: Static method to get gcc version from compiler definesPaulo Antonio Alvarez1-0/+7
The method takes a dictionary with defines names as keys and the defines values as values. From it, we assemble the gcc version, using 0 as a default value if the define we want is not defined.
2016-11-11common/37 has header: Add a test for prefixesNirbheek Chauhan1-1/+19
2016-11-11cc.has_header: Allow specifying a prefix for headersNirbheek Chauhan2-9/+10
Fixes #1026
2016-11-11Add a unit test for Qt5 detection with qmakeNirbheek Chauhan1-4/+26
This can only be done as a unit test because it requires changes to the environment. This also means we need to pass the current environment to subprocess.check_output, which we should always do anyway since the environment is torn down and restored between each test.
2016-11-11tests: Remove outdated qt4 manual test and rename qt5 automated testNirbheek Chauhan23-176/+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 Chauhan3-68/+78
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-11qt deps: New abstract impl and several fixesNirbheek Chauhan1-79/+121
* Simpler picking of pkg-config vs qmake detection * qmake-based detection now allows specifying qmake via cross-info * bindir is now stored from qmake/pkg-config detection and can be used to detect qt tools such as moc, uic, rcc with self.compilers_detect() * Qt4 dependencies got some love; now they share the implementation with Qt5 since the two are very similar; basically identical * Don't ask about Qt3