Commit Graph

743 Commits

Author SHA1 Message Date
Jason Perkins
3f718a470c Add ability to map Premake tokens to toolset specific variables 2015-01-15 12:00:57 -05:00
João Matos
da75753b0d Added support for debug arguments to the C# VS/XS projects generators.
Obsoletes pull request #113, thanks to Elias Holzer for original code.
2015-01-02 22:26:13 +00:00
Jason Perkins
b9d6ce892b Fix Visual Studio 2013 tool and framework version numbers 2014-12-29 15:18:07 -05:00
Jason Perkins
e507d1a2fb Exclude resource elements from Visual Studio when no resource files are present 2014-12-23 20:05:40 -05:00
Jason Perkins
1bcd783031 Consolidate Visual Studio extensions into the core action 2014-12-08 17:42:00 -05:00
Jason Perkins
ceb3c83d67 Remove outdated PS3 support
I will be bringing this back shortly, in a more complete form
2014-12-08 16:04:41 -05:00
Jason Perkins
eb0904698f Fix escaping of multiple build rule inputs 2014-12-08 12:44:51 -05:00
Jason Perkins
8756cd3eed Add missing quotes around PCH compile flags (h/t Daniel Gibson)
See comment at 7e583c84a3 (comment-1468822)
2014-12-08 11:47:55 -05:00
Jason Perkins
6e12c6485f Move command token expansion into actions, to allow more control at point of export 2014-11-29 14:51:49 -05:00
Jason Perkins
d645ba7c8f Flag fields containing command lines and expand tokens during baking 2014-11-27 13:12:36 -05:00
Jason Perkins
8eef265558 Fix issue #21: ARCH variable conflicts with building on Gentoo
Remove the $(ARCH) variable from generated makefiles. If needed, we can come up with a different name that doesn't conflict with existing system variables.
2014-11-19 12:29:19 -05:00
Jason Perkins
0284817398 Implement CLR "Pure" and "Safe" values for VC 201x and MSC 2014-11-11 19:44:44 -05:00
Jason Perkins
baa6989d0f Replace "Off" string literal with p.OFF variable, just in case 2014-11-11 19:29:28 -05:00
Jason Perkins
ca68cc052b Convert all usages of Unsafe flag to new clr() function 2014-11-11 19:24:07 -05:00
Jason Perkins
38c5620f33 Convert all usages of Managed flag to new clr() function 2014-11-11 19:20:29 -05:00
Jason Perkins
b3aebffaf2 Add new editAndContinue() API to replace NoEditAndContinue flag
Make it easier and more intuitive to support platforms/toolsets where edit-and-continue is available but turned off by default. Can now turn off with editAndContinue("off") instead of flags("NoEditAndContinue"), and turn it on with editAndContinue("on") instead of removeflags("NoEditAndContinue").

The NoEditAndContinue flag is still in place, and continues to behave as it did before, but will be marked deprecated in the documentation.
2014-11-10 18:01:39 -05:00
Jason Perkins
ba74e661fa Move cfg.linkoptions out of toolset getldflags() to match behavior of getcflags() and getcxxflags() 2014-11-05 16:25:58 -05:00
Jason Perkins
c46f2c09e2 Fixes for Visual Studio rule generation
- Fix setting of boolean values to false
- Don't consider rules that haven't been explicitly included in a project
2014-10-24 15:35:30 -04:00
Jason Perkins
2ee4d7aca7 Replace customVar() and customList() with per-rule property setters.
Example:
rule "MyCustomRule"
   -- (definition of rule)

project "MyProject"
   myCustomRuleVars {
      MyStringProperty = "Value",
      MyListProperty = { "Value", "Value" }
   }
2014-10-20 18:45:05 -04:00
Jason Perkins
4af8eb44af Clean up rule container creation and usage
- Adds externalRule() to match rule()
- Adds externalProject() as replacement for external() for consistency with rules
- Adds rules() to associate rules (external or generated) with a project
- Drops customRules(); use rules() on the project level instead
2014-10-20 15:41:00 -04:00
Jason Perkins
636f886795 Merge Merge container API improvements 2014-10-16 16:51:34 -04:00
M Skibbe
d7a05b551b enable buildEvents like Postbuildstep in "Utility" Projects 2014-10-14 11:39:54 +02:00
Jason Perkins
47aa8db1a7 Rework solution and project APIs around new container calls 2014-10-09 19:34:34 -04:00
Jason Perkins
a9f862293b Merge latest development branch 2014-10-02 17:11:34 -04:00
Jason Perkins
428b9cad2f Fix managed C++ linking of unmanaged library dependencies 2014-10-02 16:40:28 -04:00
Jason Perkins
157d96e39d Modernize VC 201x project references generator 2014-10-02 16:21:25 -04:00
Jason Perkins
88dc2cb8a8 Merged in dcourtois/premake-dev/custom_build_additional_inputs (pull request #131)
added a buildinput command to add additional input dependencies to custom build commands.
2014-09-28 14:52:43 -04:00
Aleksi Juvani
7640661f4b Fix per-file custom build commands in C++ gmake action 2014-09-27 15:30:42 +00:00
Damien Courtois
7c4eed3d1c added buildinputs support to make action 2014-09-26 15:24:23 +02:00
Damien Courtois
81158c0eb7 fixed the vs201x generator (was using a space instead of a semi-colon) 2014-09-26 15:16:02 +02:00
Damien Courtois
39725134b7 added support for buildinputs in vs200x generators 2014-09-25 11:00:17 +02:00
Damien Courtois
4e7dc976ba added a buildinput command to add additional input dependencies to custom build commands. 2014-09-25 10:41:27 +02:00
Jason Perkins
00ef897f2c Fill in missing rule switches; make description optional 2014-09-23 15:44:16 -04:00
Jason Perkins
6fbc7ca3d7 Support linker inputs in generated rule files 2014-09-23 15:19:57 -04:00
Jason Perkins
1b73aaf36c Merge with latest development branch 2014-09-22 16:37:51 -04:00
Jason Perkins
65a89ab098 Merged in noresources/premake-dev-ns/makefile-groups (pull request #112)
Transform solution groups into target aggregates in Makefiles (bis)
2014-09-20 18:50:56 -04:00
Jason Perkins
35b652557a Merged in mendsley/premake-dev/xbox360-imagexex (pull request #116)
Add support for custom title configuration files in xbox360 builds
2014-09-20 18:32:18 -04:00
Jason Perkins
fb8a77b902 Merged in grizzlynyo/premake-dev/FatalCompileWarnings_v201x_fix (pull request #114)
"FatalCompileWarnings" flags had no effect in vs201x actions
2014-09-20 18:25:06 -04:00
Jason Perkins
599e231d3a Fill in more command line properties; add file extension 2014-09-19 15:26:56 -04:00
Jason Perkins
6376110d0c Restore XML declaration extension point for VC 201x projects 2014-09-12 15:47:22 -04:00
Jason Perkins
df3688f56a Basic support for boolean properties, some fixes 2014-09-11 10:57:13 -04:00
Jason Perkins
a0af35b467 Added basic support for enum and list rule properties 2014-09-11 10:20:13 -04:00
Jason Perkins
c034834dc1 Complete generation of simple .targets files 2014-09-10 16:38:38 -04:00
Jason Perkins
63927957d6 Fill in more easy bits in generated rule .targets 2014-09-04 14:22:49 -04:00
Jason Perkins
1f1f5bee5f Add rule .props file support for buildCommands, buildOutputs, buildMessage, buildDependencies 2014-09-03 16:14:42 -04:00
Jason Perkins
6471232ced Begin implementation of property definitions for generated rules
- add new API propertyDefinition() with name, kind, and default value keys
- write default values to Visual Studio .props files
2014-08-27 10:40:36 -04:00
Jason Perkins
f99293bee2 Split rule file generation into namespaces to prevent function name overlaps 2014-08-14 17:45:44 -04:00
Jason Perkins
643a0067f0 Fill in generated skeleton of Visual Studio VS 201x rule files 2014-08-14 17:37:35 -04:00
Jason Perkins
67582066a0 Add opening XML and project elements to rule files; consolidate common code 2014-08-11 17:50:55 -04:00
Jason Perkins
9230abc637 Rename project.getfilename() to premake.filename(); now used by rules too 2014-08-11 17:28:51 -04:00