Commit Graph

1952 Commits

Author SHA1 Message Date
Jussi Pakkanen 7844fd54d9 Merge pull request #458 from nioncode/vs-object-extraction
vs2010: fix object extraction
2016-03-18 23:26:38 +02:00
Nirbheek Chauhan 64a0dc6269 Implement cc.find_library for the Visual Studio C/C++ compilers
Without this find_library always succeeds because MSVC just ignores -lfoo
as an invalid argument
2016-03-18 02:58:02 +05:30
Jussi Pakkanen 8b6848ebc3 Add dir support for find_library and remove deprecated standalone version. Closes #450. 2016-03-17 20:55:19 +02:00
Nicolas Schneider 147b7aa356 vs2010: add explicit objects as 'Object' ItemGroup instead of link dependency
This has two effects:
1. It makes targets with only object files work (test case 88).
2. It adds the object files to the project in the VS IDE.
2016-03-17 13:13:28 +01:00
Nicolas Schneider d72cc6e6f8 vs2010: fix object extraction
1. Dependencies must be set up with the target's id instead of its
basename.
2. Extracted object output file names must not include the directory
prefix, because MSBuild puts all object files into the same directory
and names them srcfilename.obj instead of dir/filename.obj or
dir_filename.obj.
2016-03-17 12:37:38 +01:00
Jussi Pakkanen a3004652ea Merge test framework options. 2016-03-14 21:00:23 +02:00
Jussi Pakkanen cefbea4816 Merge pull request #447 from nioncode/vs-fix-dirs
vs2010: give each target an own temp dir
2016-03-14 19:29:16 +02:00
Nicolas Schneider 2761f96fe9 vs2010: give each target an own temp dir
The 'Rebuild' target fails in mysterious ways if multiple targets use
the same directories because of output files being deleted between two
build steps (e.g. test case 78 fails on Rebuild, whereas Clean + Build
work just fine).
2016-03-14 09:56:42 +01:00
Nicolas Schneider 246d9f4564 test24: check that a target extra_arg is not applied to other targets 2016-03-13 14:49:08 +01:00
Jussi Pakkanen 304c0d2cb5 Updated version number for new development. 2016-03-12 20:21:15 +02:00
Jussi Pakkanen 4e94a07f6e Bump version number for release. 2016-03-12 19:03:07 +02:00
Jussi Pakkanen f3e20b2570 Use assert instead of if/error. 2016-03-12 18:51:59 +02:00
Nicolas Schneider 5482a23936 enhance test framework to read meson arguments from a file per test
A 'test_args.txt' file in the same directory as the test case will be
parsed by the test framework and the content will be passed as arguments
to meson during configuration. The arguments are put before any
'extra_args' to make them overwritable from the command line.
2016-03-12 17:41:42 +01:00
Jussi Pakkanen 9c5bda3f40 Return array by value so it does not get modified. 2016-03-12 17:32:43 +02:00
Jussi Pakkanen 6b548a1c75 Added find_library method and deprecated the standalone version. Closes #396. 2016-03-12 17:00:55 +02:00
Jussi Pakkanen 0d5eaa2721 Merge pull request #442 from nioncode/vs-linker-args
vs2010: fix linker args
2016-03-12 16:44:33 +02:00
Jussi Pakkanen c218f221fd Merge pull request #444 from tp-m/config-undef
config file: write commented undef lines same as autoconf
2016-03-12 16:44:15 +02:00
Jussi Pakkanen 2afc1dd497 Merge pull request #443 from tp-m/more-string-funcs
Add more string funcs: to_upper(), to_lower(), contains() and underscorify()
2016-03-12 16:42:40 +02:00
Tim-Philipp Müller 3c8468cd4d Add string underscorify() function
So we can easily construct the defines for include headers and
struct checks and such.
2016-03-12 14:15:54 +00:00
Tim-Philipp Müller 02e84df010 Add more string functions: contains(), to_upper() and to_lower() 2016-03-12 14:15:31 +00:00
Nicolas Schneider 17f1323aca vs2010: fix linker args 2016-03-12 14:18:51 +01:00
Tim-Philipp Müller 48a2b201ea config file: write commented undef lines same as autoconf
For easier diffing to see if anything is missing when porting.
2016-03-12 09:34:35 +00:00
Nicolas Schneider 49418cfe8a vs2010: support multiple precompiled headers (one per language)
This creates the PrecompiledHeader properties for every source file in the
project if multiple languages are present. Otherwise, the global pch
settings are used.
The pch to use is determined by checking the suffix of the source file.
2016-03-12 02:02:36 +01:00
Nicolas Schneider 5ba7680a0d vs2010: fail on multiple precompiled headers 2016-03-12 00:41:04 +01:00
Nicolas Schneider 18ae344be4 vs2010: support precompiled headers 2016-03-11 19:33:53 +01:00
Jussi Pakkanen 79537b54db Implicit include directories go first. 2016-03-11 00:03:55 +02:00
Jussi Pakkanen 118e043143 Code contribution clarification. 2016-03-09 00:11:18 +02:00
Nicolas Schneider ed1732d9c4 fix test error message 2016-03-03 22:41:20 +01:00
Nicolas Schneider 749aeefe0c pass meson source and build dirs as env variables for postconf scripts 2016-03-03 22:28:56 +01:00
Jussi Pakkanen 5498f16fb3 Merged postconf script. 2016-03-02 22:39:57 +02:00
Nicolas Schneider 5e1fdb8b97 use positional instead of keyword args for add_postconf_script 2016-03-02 21:32:50 +01:00
Jussi Pakkanen 455e55f8e5 Back to .py suffix in files. Closes #394. 2016-03-02 21:49:29 +02:00
Nicolas Schneider 9f9f73fa52 add args support for add_postconf_script 2016-03-01 14:31:37 +01:00
Nicolas Schneider 92187501ed Can add postconfigure script. 2016-03-01 14:07:38 +01:00
Jussi Pakkanen 52b66edb6c Can specify compile and link args for internal deps. 2016-02-29 21:28:16 +02:00
Jussi Pakkanen 352b5badd2 Handle resources that come in files(). Closes #424. 2016-02-29 21:04:16 +02:00
Jussi Pakkanen 2d32c39471 Handle built targets in custom rules. Closes #411. 2016-02-29 20:51:25 +02:00
Jussi Pakkanen cb0b9b79f4 Oh, and one more thing. 2016-02-28 23:45:10 +02:00
Jussi Pakkanen e0a23a7f6a A few more tweaks. 2016-02-28 23:38:34 +02:00
Jussi Pakkanen d2657fb396 Readme linkification. 2016-02-28 23:37:36 +02:00
Jussi Pakkanen c6138fe8bd .ipp is a C++ header suffix. 2016-02-26 22:52:36 +02:00
Jussi Pakkanen 97c22fadbe Merged XCode fix. 2016-02-26 22:05:47 +02:00
Jussi Pakkanen 6422069c8a Authors.txt updating. 2016-02-26 21:59:56 +02:00
Jussi Pakkanen 06693f8d9e Merge pull request #412 from lukeadams/master
Improve readme
2016-02-26 21:59:10 +02:00
Jussi Pakkanen af53c2bc3b Merge pull request #419 from nioncode/fixVs2010Regen
Fix vs2010 regen
2016-02-26 21:50:22 +02:00
Jussi Pakkanen ea60a22cd5 Merge Python 3 module support. 2016-02-26 21:21:53 +02:00
Jussi Pakkanen efceac497f Python extension module finally works on Windows. 2016-02-26 21:04:11 +02:00
Nicolas Schneider 40a7287a59 vs2010: properly check whether solution needs to be regenerated 2016-02-25 23:13:29 +01:00
Nicolas Schneider ac5ee0c414 dump coredata to file before calling backend.generate()
This ensures that all build files always have a later timestamp than
coredata.dat, which is used to check if the build files must be
regenerated.
2016-02-25 23:13:29 +01:00
Nicolas Schneider bffc84e77e vs2010: write regen.rule in gen_regenproj 2016-02-25 23:13:14 +01:00