aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-08-12Only append compile flags to the link flags when appropriateNirbheek Chauhan2-4/+13
We should only append the compiler flags to the link flags when the compiler is used as a wrapper around the linker during the link process
2016-08-12compilers: Always return a copy of the exelistNirbheek Chauhan1-7/+7
The consumer might append to it, which will mess up the original object
2016-08-11Print the CFLAGS/LDFLAGS/etc inherited from the environmentNirbheek Chauhan1-24/+37
People can forget it and then wonder what's wrong. Just explicitly print it.
2016-08-08Doc clarification.Jussi Pakkanen1-1/+1
2016-08-04File name update in manifest.Jussi Pakkanen1-1/+1
2016-08-04Handle both DT_RPATH as well as DT_RUNPATH when fixing rpath settings.Jussi Pakkanen1-7/+23
2016-08-03Merge pull request #664 from mesonbuild/asneededIgor Gnatenko1-0/+14
Add option for as-needed link option.
2016-08-02Add option for as-needed link option.Jussi Pakkanen1-0/+14
2016-08-01test common/86: Move static library back (#662)Nirbheek Chauhan2-5/+3
This reverts 15ab984d8e2cf396be385d7515f72561c3cbaaa2 Also see #459
2016-08-01Merge pull request #605 from mesonbuild/ternaryJussi Pakkanen4-0/+42
Added ternary operator support
2016-08-01Forbid nested ternary operations.Jussi Pakkanen2-0/+9
2016-08-01Created ternary operator. Closes #538.Jussi Pakkanen3-0/+33
2016-08-01interpreter: Print what subproject dir could not be foundNirbheek Chauhan1-1/+2
Fixes #655
2016-07-30Update version for new development.Jussi Pakkanen1-1/+1
2016-07-30Raise version number for release.0.33.0Jussi Pakkanen5-5/+5
2016-07-30Merge pull request #660 from mesonbuild/libdirfixJussi Pakkanen4-11/+13
Fix library directory handling
2016-07-30Determine lib paths on demand rather than up front because they might change ↵Jussi Pakkanen1-8/+10
during build file parsing.
2016-07-30Merge pull request #659 from centricular/find-program-scripts-windowsJussi Pakkanen3-25/+69
find_program: Find scripts without extensions on Windows
2016-07-30Merge pull request #641 from centricular/allow-backslashJussi Pakkanen11-44/+157
Ninja now supports backslash in command args, so we can too.
2016-07-30Add test for the new find program workaround for WindowsNirbheek Chauhan2-0/+7
2016-07-30find_program: Find scripts without extensions on WindowsNirbheek Chauhan1-25/+62
Because of how files and executables work on Windows, scripts that use an interpreter must have an extension, and that extension must be associated with an interpreter. The full list of executable extensions is available in the PATHEXT environment variable. However, UNIX-like OSes use an executable bit and read the shebang to figure out what interpreter to use, and the scripts don't need to have extensions. We can now detect these scripts using find_program by manually searching in PATH and reading the shebang.
2016-07-29ninja: Add escaping for backslash in -D argumentsNirbheek Chauhan1-1/+28
This is only needed for defines. Other arguments such as -I and /Fa that also take arguments with spaces and backslashes don't need it at all.
2016-07-29vs: Fix quoting and escaping of compiler optionsNirbheek Chauhan1-6/+43
Target-specific compiler options should be split into pre-processor defines, include directories, and additional options, then escaped/quoted and added to the appropriate portions of the project file. The "115 spaces backslash" test now checks that backslashes and spaces now work properly in all three places.
2016-07-29Ninja now supports backslash in command args, so we can tooNirbheek Chauhan9-37/+86
At the same time, this also adds a bunch of tests that document and keep track of how we expect quoting to pass through via Ninja to the compiler. We need at least Ninja 1.6.0 for this. This fixes https://github.com/mesonbuild/meson/issues/489
2016-07-29vs: Fix regen_checker by using the correct coredata mtimeNirbheek Chauhan2-3/+9
After c01b183e5, the mtime of coredata.dat is always newer than all the other build files, which made regen_checker think that they always had to be regenerated. Now we set the mtime of the file to a value before the build files are generated and that makes everything behave as it did earlier.
2016-07-28A few error message fixes.Jussi Pakkanen2-0/+4
2016-07-28Merge pull request #657 from centricular/pkgconfig-dep-msgsJussi Pakkanen2-48/+67
Various fixes that improve errors and logging around pkg-config dependencies
2016-07-28Convert socket checks.Jussi Pakkanen1-0/+1
2016-07-28dependency: Better errors when fallbacks are not foundNirbheek Chauhan1-3/+12
Otherwise the message is very cryptic and no one can figure out what Meson actually wants
2016-07-28pkg-config: Print 'NO' when version is too oldNirbheek Chauhan1-8/+12
This gives a clearer output when the dependency is not required or has a fallback subproject otherwise the user is left wondering why the optional dependency wasn't used or why the fallback subproject is being used.
2016-07-28pkg-config: Move setting of cargs and libs to functionsNirbheek Chauhan1-6/+12
Much cleaner this way. It's completely clear what each block of code does.
2016-07-28pkg-config: Short-circuit when there's no pkg-config file foundNirbheek Chauhan1-49/+49
Just exit immediately when there's no pkg-config file found instead of putting everything else in a huge 'else:'. Much clearer and avoids one level of indentation. No code changes accompany this.
2016-07-27Test that the 'libdir' project() option worksNirbheek Chauhan2-2/+2
2016-07-27ninja: Fix static library installation dirNirbheek Chauhan1-1/+1
Trivially correct typo fix. Didn't actually break anything because the fallback is libdir anyway, and we always install static libraries to libdir. Pointed out by Zhe Wang (0x1997).
2016-07-25Added test for a prebuilt static library and a declare_dependency that uses it.Jussi Pakkanen9-20/+68
2016-07-25Merge pull request #651 from centricular/gtkdoc-new-runtarget-syntaxJussi Pakkanen2-14/+24
Port gtk-doc module to the latest RunTarget syntax
2016-07-24Updated manual test 1.Jussi Pakkanen2-10/+9
2016-07-24gtkdochelper: Add error checking and printingNirbheek Chauhan1-13/+23
This helps debug why things are failing
2016-07-21gnome: Update RunTarget usage to new syntaxNirbheek Chauhan1-1/+1
This was broken in 0733c0f9a1cd7a38e3a8f5c746e50967eeb9c9a5
2016-07-20Properties is no longer mandatory in cross files so do not require it.Jussi Pakkanen1-3/+1
2016-07-19Normalize the path of a configured file to avoid dupes (#640)Nirbheek Chauhan8-7/+23
2016-07-19vs: Fix Meson invocation while doing regen (#646)Nirbheek Chauhan2-4/+8
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-18vs: Fix visual studio version in solution file (#648)Nirbheek Chauhan2-1/+3
2016-07-18Also read WINDRES envvar to find windres (#645)Nirbheek Chauhan1-1/+4
This is, of course, only used when building with MinGW
2016-07-18coredata: Descriptive parser exceptions for UserStringArrayOptionNirbheek Chauhan1-2/+2
2016-07-15Warn if PKG_CONFIG_PATH has changed because it may cause dependency ↵Jussi Pakkanen2-0/+10
detection to fail. Closes #626.
2016-07-15interpretor: Use the stdout/stderr locale to decode to string (#638)Nirbheek Chauhan1-2/+8
Fixes a decode error with locales other than en_US on Windows
2016-07-15ninja: Remove duplicated if check (#637)Nirbheek Chauhan1-2/+1
Trivially correct
2016-07-15mesonmain: Dump the coredata lastNirbheek Chauhan1-1/+6
Otherwise we'll mark the build directory as successfully configured even if there's an error while doing the actual generation. Reported on IRC by 'sdgsgad'
2016-07-13Merge pull request #417 from nirbheek/dll-pathsJussi Pakkanen57-248/+808
Fix filenames and paths used in DLL shared library generation