Commit Graph

1676 Commits

Author SHA1 Message Date
Jason Perkins
8ed53ed3be Skip baking and validation phases for "non-configurable" actions
For actions that don't actually use the configured project information—such Premake's own embed, test, and release actions—the results of baking and validation phases aren't used, and the extra processing just takes up unnecessary time. Detect this case by checking the action for an onSolution() or onProject() call; if there isn't one, if isn't configurable.

If you have a custom action that does all its work in execute() that *does* need configurable information, you can just define a empty onSolution() function.
2015-03-03 15:20:33 -05:00
Jason Perkins
77a4c81406 Remove non-functional action.supportsconfig() call
This function was being called with incorrect arguments that ensured it always returned true. Since no one noticed, I'm going to assume that it isn't being actively used.
2015-03-03 15:01:17 -05:00
Jason Perkins
e6718b2d51 Bit of code cleanup to standardize comments and self arguments 2015-03-03 14:59:23 -05:00
Jason Perkins
62d98fce11 Index action arguments (_ARGS) by both index and value
This allows lookups like `if _ARGS["option1"] then …`
2015-03-02 15:15:45 -05:00
Jason Perkins
d6f2c77e1a Merge _premake_main() rework to call arrays
The _premake_main() function is now broken out into separate functions executed via a call array, in the same fashion as the Visual Studio exporters. Modules may not override specific execution steps, or insert new steps.
2015-02-27 16:43:12 -05:00
Jason Perkins
0841351466 Updated change log 2015-02-27 16:42:02 -05:00
Jason Perkins
d886e813a8 Merge latest development branch 2015-02-27 16:37:00 -05:00
Jason Perkins
6f13f36998 Break _premake_main() out to a call array 2015-02-27 16:11:01 -05:00
Jason Perkins
19df1c5722 Merge filtering fixes 2015-02-26 10:43:03 -05:00
Jason Perkins
bdb546330a Fix case on _ACTION and _OPTIONS filter prefixes in validation list 2015-02-26 10:36:59 -05:00
Jason Perkins
f9270e21cc Allow filters to specify field value aliases in the conditions 2015-02-25 17:38:16 -05:00
Jason Perkins
0ef03eb13a Fix embed action for Premake 4.x executables 2015-02-25 15:50:48 -05:00
Jason Perkins
355b1b850a Merge release packaging updates and fixes 2015-02-23 17:55:19 -05:00
Jason Perkins
6b5b04c03b Pull package version from specified branch instead of the working set 2015-02-23 17:34:16 -05:00
Jason Perkins
fd11fd3f60 Updated embedded copyright year 2015-02-23 17:11:27 -05:00
Jason Perkins
82924ad947 Update supporting files for release; add 'zip' to list of required utilities for packaging 2015-02-23 17:08:19 -05:00
Jason Perkins
c56f316251 Prep new release scripts for first alpha packages 2015-02-22 19:02:09 -05:00
Jason Perkins
87762818f3 Return error code zero if --version option is specified to match other system tools 2015-02-22 10:18:07 -05:00
Jason Perkins
08c9a93e2b Remove non-functional embed action from the Premake4 version of the project script 2015-02-19 17:02:23 -05:00
Jason Perkins
2ae3479f58 Merged in tbasnoopy/premake-dev/buildoutput fix (pull request #149)
add missing buildoutputs fix for vs2010
2015-02-18 15:13:41 -05:00
M Skibbe
b5c37c25cc add missing buildoutputs fix for vs2010 2015-02-18 11:33:07 +01:00
Jason Perkins
5e51b54c3d Merge script path searching restrictions for release builds and user project scripts 2015-02-15 16:10:46 -05:00
Jason Perkins
b7dac40a67 Use a more restricted set of search paths when loading the user project script 2015-02-15 14:57:42 -05:00
Jason Perkins
e78cf3f61d Use a more restricted set of search paths when loading the core and bootstrap scripts 2015-02-15 14:30:17 -05:00
Jason Perkins
212c9ae919 Merge Windows system library linking fixes 2015-02-14 15:47:57 -05:00
Jason Perkins
c581403fe9 Remove .dll extension from managed assembly references in C++ projects 2015-02-14 15:41:41 -05:00
Jason Perkins
79507f946c Restore .lib extension on libraries from the MSC tool adapter 2015-02-14 15:30:17 -05:00
Jason Perkins
9ac067355d Reverse order of system and sibling libraries to match previous versions 2015-02-14 15:23:36 -05:00
Jason Perkins
f5abdb9d69 Remove ".lib" extension from system library links in generated makefiles on Windows 2015-02-14 14:56:02 -05:00
Jason Perkins
494196598e Fix Lua stack underflow in script loader 2015-02-13 16:03:32 -05:00
Jason Perkins
8390255470 Reverse search order of module naming variations to avoid matching embedded path ahead of local file 2015-02-12 18:29:48 -05:00
Jason Perkins
e9ac1dc74e Allow modules to be specified as bare Lua files, instead of placed in a module folder 2015-02-12 17:51:49 -05:00
Jason Perkins
4101fd8241 Fix "unused parameter" warning 2015-02-09 12:44:15 -05:00
Jason Perkins
1ddb214cc3 Fix "Error: (null)" messages on startup if main script can't be located on disk 2015-02-09 12:43:08 -05:00
Jason Perkins
38c5b79840 Add the directory containing the Premake executable to the script search path
This is a useful location for placing a system script.
2015-02-06 16:33:28 -05:00
Jason Perkins
25e1e766ae Allow modules to specify an explicit directory, i.e. require("build/mymodule")
This makes it easier to distribute modules along with a project's source code, giving full control over where the modules are kept in the tree.
2015-02-06 15:38:56 -05:00
Jason Perkins
8ecf4ac7f0 Add Sublime text project and workspace to hgignore list 2015-02-05 16:13:49 -05:00
Jason Perkins
0f4e94f19c Merge module and script loading improvements 2015-02-05 16:12:01 -05:00
Jason Perkins
73a40b228a Create premake namespace in host *and* script until everyone has had a chance to update 2015-02-04 19:24:28 -05:00
Jason Perkins
f2c8b640d6 Pass through error messages from script loading; fixes misleading 'file not found' messages 2015-02-05 15:59:02 -05:00
Jason Perkins
7ed7af38db Allow action path variable maps to use functions as replacement values 2015-02-04 19:19:16 -05:00
Jason Perkins
a340df826b Drop no longer needed path.getabsolute() from main script loading 2015-02-04 19:16:05 -05:00
Jason Perkins
78678a193d Restore more of the script search locations 2015-02-04 18:56:45 -05:00
Jason Perkins
2e76782abc Move initialization of _USER_HOME_DIR to host 2015-02-04 18:39:02 -05:00
Jason Perkins
c936229eac Restore PREMAKE_PATH searching 2015-02-03 19:52:05 -05:00
Jason Perkins
1bd13569b9 Populate new global premake.path with search path; use in script loader
I've only implemented searching on the --scripts path with this commit; more paths coming in next commits.
2015-02-03 19:25:30 -05:00
Jason Perkins
cca1ea6643 Move premake namespace creation into host 2015-02-03 16:14:52 -05:00
Renaud Guillard
203218e506 merge default 2015-02-03 21:20:16 +01:00
Jason Perkins
ae6ee359d1 Merged in tbasnoopy/premake-dev/buildoutput fix (pull request #145)
Fix buildoutputs format for multiple outputs
2015-01-28 11:37:30 -05:00
M Skibbe
314d8cbe2d fix buildoutputs format 2015-01-28 09:26:57 +01:00