Commit Graph

1677 Commits

Author SHA1 Message Date
Jason Perkins
5614bfcd17 Fixes to support a wider range of field kinds
- Rename api.checkvalue() to api.checkValue() and swap argument order for consistency
- Add kind argument to api.checkValue() to identify which segment is being tested
- Limit wildcard test in remove() to string values
- Return error message from field.new() instead of raising error internally
2014-07-14 12:00:30 -04:00
Jason Perkins
7158f623b9 #222: os_match.c should use do_isfile() 2014-07-10 16:08:19 -04:00
Jason Perkins
3cea3afe1c Merged in stefanc/premake-dev/gmake-parallel-pch (pull request #118)
Fix gmake parallel builds when using precompiled headers
2014-07-08 17:32:00 -04:00
Jason Perkins
b39daa31c1 Fixes for custom rule variable error handling 2014-07-07 17:03:46 -04:00
Jason Perkins
1a84bd6530 Move more unit test helpers to testfx, so they can be used by modules 2014-07-07 17:03:14 -04:00
Jason Perkins
5d5928a759 Added response file support to C# Make action (João Matos) 2014-07-01 16:35:31 -04:00
Jason Perkins
d22bc1a4bc Remove unused scope argument from api.gettarget() 2014-07-01 11:13:52 -04:00
Jason Perkins
57667cc16a Merge basic support for custom Visual Studio rule files 2014-06-30 15:18:59 -04:00
Jason Perkins
a520c6c732 Merge with default 2014-06-27 11:08:59 -04:00
Jason Perkins
55a5feec48 Add Premake executable directory to search path for the system script 2014-06-27 11:06:17 -04:00
Jason Perkins
0df2020f6b Pass _PREMAKE_COMMAND unit test when executable uses a non-standard name or location 2014-06-26 10:43:48 -04:00
Jason Perkins
d5ef6f4c32 Small optimization, improves compatibility with DLL version of Lua runtime 2014-06-26 10:40:24 -04:00
Jason Perkins
019ba5dcfc Safely ignore nil values in list fields 2014-06-16 10:13:00 -04:00
Jason Perkins
725e433929 Added missing extension targets section for custom rules 2014-06-12 19:05:44 -04:00
Jason Perkins
bd49556345 Bug fixes and modernizing of VC 2010 exporter 2014-06-12 18:39:39 -04:00
Jason Perkins
07a4ad897d Add custom rules to VC 2010 filters 2014-06-12 16:14:42 -04:00
Jason Perkins
d7c7c9373d Modernizing pass over VS'10 file generation 2014-06-11 16:05:25 -04:00
Jason Perkins
d7bd1e381d Added support for custom rule list variables (VS only) 2014-06-11 13:52:08 -04:00
Jason Perkins
efe5f1e292 Initial implementation of a minimal custom rules API (currently Visual Studio only) 2014-06-10 16:38:16 -04:00
Stefan Cosma
20e44b9f34 - Fix gmake parallel builds when using precompiled headers 2014-06-05 18:11:03 +02:00
Jason Perkins
70b66f2b31 Remove problematic strip-symbol flags from Clang tool adapter
- see http://industriousone.com/topic/how-remove-flags-ldflags
2014-06-02 11:35:09 -04:00
Jason Perkins
026b75bd3f Handle missing value edge cases when validating configuration values 2014-05-30 17:03:15 -04:00
Jason Perkins
27a39db6a6 Stop using io.tmpfile() in script embedding; doesn't always work on Windows 2014-05-29 18:04:58 -04:00
Jason Perkins
8fe9c55a15 Added os.islink() — does path point to a symbolic link or reparse point? 2014-05-28 15:08:54 -04:00
Jason Perkins
b0103e76ca Add getLibraryDirectories() to tool adapters
- use throughout to avoid flag duplication in VS projects with external tools
2014-05-23 20:10:34 -04:00
Jason Perkins
17522321aa Disable VS 2013 duplicated file warnings 2014-05-22 10:26:16 -04:00
Jason Perkins
7c8acae626 Add os.realpath() to resolve symbolic links on Posix systems 2014-05-23 18:37:15 -04:00
Jason Perkins
f3395f6cad Rework VC 2010 project exporter to new extensibility conventions 2014-05-22 09:55:28 -04:00
Jason Perkins
87ebf6ee6a Update embedded project information 2014-05-14 17:43:08 -04:00
Jason Perkins
e588886bb8 Added os.chmod() (h/t Richard Geary) 2014-05-14 17:32:56 -04:00
Jason Perkins
537cd73591 Fix action check to work with new interactive prompt 2014-05-13 19:34:53 -04:00
Jason Perkins
b722cfef29 New flag --interactive opens a REPL prompt with project loaded (h/t Richard Geary) 2014-05-13 19:17:50 -04:00
Jason Perkins
9e372f8edb Add --fatal flag to treat Premake script warnings as errors 2014-05-09 15:17:00 -04:00
Gaz Liddon
7b30574cea Fixes external library name mangling in gmake makefiles
External libs with a period in the currently get changed.

The period and everything after it is deleted. So:

links {"lua-5.1"}

becomes:

-llua-5

in the makefile. This test checks for that. Fix in next commit
2014-05-08 15:59:38 +01:00
Gaz Liddon
82a9ebda9e Linking gmake test - checks external lib name isn't mangled
External libs with a period in the currently get changed.

The period and everything after it is deleted. So:

links {"lua-5.1"}

becomes:

-llua-5

in the makefile. This test checks for that. Fix in next commit
2014-05-08 15:52:39 +01:00
Jason Perkins
5d38977c99 Fix bug in VC 2010 test suite 2014-05-07 15:18:03 -04:00
Jason Perkins
ae8a1e0cf3 Manual merge pull request #45 (Oliver Kuckertz)
- Add Maps flag to control generation of maps file for Visual Studio
2014-05-01 15:32:50 -04:00
Jason Perkins
2d8be343b1 Remove a bit of dead code from api.lua 2014-04-29 15:45:26 -04:00
Jason Perkins
cb0aba47f3 Stop returning dotted directory names in os.matchdirs() 2014-04-29 15:45:15 -04:00
Renaud Guillard
860f4d5fba add tests related to solution groups handling in gmake action 2014-04-26 22:28:04 +02:00
Renaud Guillard
a5b57be674 sort subgroup first in group target dependencies 2014-04-26 22:27:02 +02:00
Renaud Guillard
d632a09116 move solution's phony rule and project group rules generation in dedicated functions 2014-04-26 22:11:17 +02:00
Jason Perkins
f4e55da621 Added new filter() to replace configuration(), with required field prefixes
- use like: filter { "configurations:Debug" }
- supported prefixes: action, architecture, configurations, files, kind, language, options, platforms, system
- defaults to "configurations" if no prefix is specified
2014-04-25 11:53:01 -04:00
Jason Perkins
a672ec416a Fix issue #20 - can now find files with a dot prefix; directories are still ignored 2014-04-24 10:49:06 -04:00
Jason Perkins
aef8313299 Add per-file vector extension for VC 2010 2014-04-12 14:48:15 -04:00
Jason Perkins
419495270a Fix edge case in list field processing that would allow empty tables in the results 2014-04-09 18:48:06 -04:00
Jason Perkins
e3b03debfb Make _SCRIPT global available during debug manifest loading 2014-04-03 14:57:40 -04:00
Jason Perkins
e2055a24d0 Move more criteria pattern processing to native code loop 2014-04-09 17:55:08 -04:00
Jason Perkins
ee24e758d9 Stop trying to return current values for nil parameters to API calls; too many gaps to patch 2014-04-09 16:21:12 -04:00
Jason Perkins
d6a8aa05fe Avoid file filter term tests when matching against non-file configurations 2014-04-09 16:14:59 -04:00