Commit Graph

60 Commits

Author SHA1 Message Date
Sam Surtees
138a443b3c Fixed issues with duplicate tests
- Test suite will now fail when test names are reused
- Fixed several unit tests that reused test names
2018-04-30 17:01:20 +02:00
Tom van Dijck
041d01bb21 Fix action (#138)
* Fix unit-test correctly setting action.
2017-08-01 10:01:01 -07:00
Sam Surtees
b251234b27 Cleaned up inconsistencies in whitespace 2017-04-26 03:40:43 +10:00
Sam Surtees
fa3328440e Increased consistency of p. usage 2017-04-25 16:41:30 +10:00
Tom van Dijck
5f589ad5a6 replaced:
os.get() -> os.target()
os.is() -> os.istarget()
_OS -> _TARGET_OS

added:
os.current()
os.iscurrent()
2017-04-24 13:01:31 -07:00
Jason Perkins
c3d2e226a3 Rename solution to workspace in test suites 2015-09-03 18:03:39 -04:00
Jason Perkins
14525e8161 Changes names in core test suites 2015-08-28 16:16:14 -04:00
Bastien Brunnenstein
cc1ec554af Add a small test suite for tokens and wildcards in "files" 2015-07-10 11:33:23 +02:00
Jason Perkins
17f1843c71 Finish renaming architectures away from x32/x64
A number of tests were relying on the fact that x32/x64 were being converted implicitly to x86/x86_64. If/when we retire those symbols, all of those tests would break. Renamed them now to avoid having to sort it out later. Also fixed up comments to keep everything consistent.
2015-04-13 18:27:11 -04:00
Manu Evans
07e90323cd Changed x32/x64 to explicit architecture names for clarity.
Aliases should probably be deprecated.
2015-04-13 21:41:08 +10:00
Jason Perkins
39e97e68a3 Phase out use of PS3 platform; no longer included in core 2015-03-11 16:16:56 -04:00
Jason Perkins
9230abc637 Rename project.getfilename() to premake.filename(); now used by rules too 2014-08-11 17:28:51 -04: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
708175e24b Split baking back out into own source file; prevent automatic baking of "raw" objects 2013-11-14 08:52:55 -05:00
Jason Perkins
c38eb0c67f Fix virtual path matching for patterns like "filename.*" 2013-11-10 16:14:29 -05:00
Jason Perkins
a31373e287 Begin porting VC200x exporter to new function callout conventions 2013-10-23 10:51:11 -04:00
Jason Perkins
64c220b70a Project locations are now inherited from the solution, if set. 2013-09-30 10:16:56 -04:00
Jason Perkins
7c8881ddb2 Remove nextgen fields and _ng suffixes everywhere 2013-09-13 11:52:00 -04:00
Jason Perkins
e681b636ec More code cleanup:
- Drop premake5 namespace; everything is premake again
- Remove deprecated project and config APIs
2013-09-13 11:15:36 -04:00
Jason Perkins
2e7299f801 Removed old oven; finished conversion to contexts and configuration sets in baking logic 2013-04-23 10:39:00 -04:00
Jason Perkins
30daa20f39 Fixed issues with Makefile naming; removed more deprecated Gmake action code 2012-12-31 13:45:22 -05:00
Jason Perkins
06318ab5b6 Allow config maps to be attached to specific configurations 2012-12-23 13:10:06 -05:00
Jason Perkins
e4d62bd307 Clean up vpath tests before porting back to stable 2012-12-14 10:00:51 -05:00
Jason Perkins
3af00f8773 If platform matches a known architecture, omit the identifier from Visual Studio configurations (allows configuration mapping to external projects which use multiple architectures per project configuration). 2012-11-17 15:49:06 -05:00
Jason Perkins
2cf609c6ac Ported key-value handling to new configuration system 2012-11-14 12:42:53 -05:00
Jason Perkins
2800ebd010 Ported list handling to new configuration objects 2012-11-04 18:48:20 -05:00
Jason Perkins
1747035050 Added filename(); set solution or project file name independently of the solution or project name 2012-10-24 15:40:25 -04:00
Jason Perkins
891a1dbcd6 Fixed handling of exact path matches in vpath building 2012-09-18 11:24:18 -04:00
Jason Perkins
8cbd6bdcb0 Ported virtual paths to new api.register() API definition system 2012-07-06 17:01:50 -04:00
Jason Perkins
e15d115bbd Fix a bug in configuration map pattern matching 2012-06-11 19:11:21 -04:00
Jason Perkins
850dbb099d Can now map from a solution config which doesn't exist in the project 2012-05-23 16:34:28 -04:00
Jason Perkins
e9a81b6f86 When configuration settings overlap, give precedence to the later settings 2012-05-21 17:55:07 -04:00
Jason Perkins
3da76a113f Project-level configurations no longer propagate up to solutions, require mapping instead 2012-05-08 15:37:12 -04:00
Jason Perkins
391ec4eee6 Remove all configuration values from project; prevent top-level settings from bleeding through and causing side-effects at the config level 2012-04-25 19:10:37 -04:00
Jason Perkins
d12a97465b Cleaned up test suite for new oven 2012-04-16 18:54:01 -04:00
Jason Perkins
5cc291c313 Configuration mapping now working in Visual Studio 2008+, for most cases 2012-04-12 20:31:10 -04:00
Jason Perkins
21c44e57fd Added project-level filtering for configuration maps 2012-04-11 18:56:17 -04:00
Jason Perkins
a1a0afd327 Prevent single-child ".." folders from appearing at the top of the source tree; merge project.eachfile() into project.getsourcetree() 2012-03-27 19:52:48 -04:00
Jason Perkins
0b241993c2 Merged file configurations and nodes in source trees 2012-03-27 18:54:15 -04:00
Jason Perkins
a1f9c7c376 Renamed file config fullpath to relpath; better matches corresponding abspath field, less confusing 2012-03-21 16:10:16 -04:00
Jason Perkins
399739d012 Added buildrule() to the API 2012-03-12 19:51:10 -04:00
Jason Perkins
e0a6ca727c Configurations and platforms may now be specified per-project 2012-02-19 12:31:20 -05:00
Jason Perkins
20598184fa Fixed bug that caused some per-configuration files to be missed 2012-02-15 11:53:00 -05:00
Jason Perkins
56d6701528 Added config.getfileconfig(), basis for per-configuration file and exclusion lists 2012-02-13 17:32:23 -05:00
Jason Perkins
10f0798789 Remove…() now properly removes flags; fixed Visual Studio typecast warning in CoCreateGuid() 2012-02-02 18:09:02 -05:00
Jason Perkins
257487b2de Ported virtual paths to new platform API 2012-02-01 20:00:24 -05:00
Jason Perkins
d7e850ef17 Added pattern matching to remove API 2012-01-30 16:48:35 -05:00
Jason Perkins
0747211b6c Added replace…() APIs (exact match only, no patterns yet) 2012-01-28 17:48:29 -05:00
Jason Perkins
bcbc7f4950 Added target action, operating environment to configuration building filters 2012-01-22 12:19:43 -05:00
Jason Perkins
283ecaeb45 Ported Visual Studio 2008 files element and supporting functions 2012-01-19 19:14:18 -05:00