Commit Graph

1349 Commits

Author SHA1 Message Date
Jason Perkins
8c54e7943f Rework VC 200x linker block to call arrays 2014-03-06 10:11:08 -05:00
Jason Perkins
e1fa699109 Fixed scoping issue in previous commit 2014-03-10 18:35:59 -04:00
Jason Perkins
883bfcd48d Improve backward compatibility of field registration 2014-03-10 17:53:52 -04:00
Jason Perkins
4e7b19b5cf Catch config set errors both project scripts API calls and in direct value sets on project objects 2014-03-10 16:30:29 -04:00
Jason Perkins
6355a3215d Make virtual path processing order deterministic 2014-03-09 13:17:10 -04:00
Jason Perkins
4f40197ab0 Improve performance of configuration set handling 2014-03-09 11:47:42 -04:00
Jason Perkins
93c13e9ed1 Port API field kinds to new format strings; code cleanup 2014-03-09 09:55:18 -04:00
Jason Perkins
b228800ba9 Move config set value removes to new field framework (mostly) 2014-03-09 08:27:21 -04:00
Jason Perkins
aacafa8fe7 Move config set value stores to new field framework 2014-03-08 16:03:34 -05:00
Jason Perkins
9378d31295 Move config set value fetches to new field framework 2014-03-08 14:17:35 -05:00
Jason Perkins
974b622b82 Require configuration set fetch/store to use registered fields only; phase out direct table access 2014-03-08 09:28:37 -05:00
Jason Perkins
c42c87a4ee Begin spinning out new field management system 2014-03-08 08:29:09 -05:00
Jason Perkins
7c98127394 Replace "array" and "object" API data kinds with "table" 2014-02-27 17:40:25 -05:00
msk
f209be910d add Visual Studio Utility Support 2014-03-01 18:20:06 +01:00
Jason Perkins
6c0be942ce Merged in tbasnoopy/premake-dev/ATL support (pull request #105)
add ATL support
2014-02-27 14:01:16 -05:00
M. Skibbe
8e32d2a68a lower case the api call 2014-02-27 16:47:43 +01:00
Jason Perkins
5fdeba643f Moved platform toolset selection into configuration system 2014-02-27 09:54:55 -05:00
M. Skibbe
cb3671fdc8 add ATL support 2014-02-27 13:47:51 +01:00
Jason Perkins
0af9660606 Fix file sort order for VC'10 projects when virtual paths are used 2014-02-26 18:43:06 -05:00
Jason Perkins
9e30be2197 Move action and argument processing to scripts 2014-02-26 15:47:33 -05:00
Jason Perkins
2422a54f6a Move command line option processing to scripts 2014-02-26 15:36:11 -05:00
Jason Perkins
51ab0947e8 Make _OPTIONS table key lookups case insensitive 2014-02-25 13:17:04 -05:00
Jason Perkins
253b48718b Clean up implementation of VC 200x tool element maps 2014-02-21 09:04:52 -05:00
Jason Perkins
cba18ab007 Port and clean up empty configuration handling in VC 200x projects 2014-02-18 10:59:56 -05:00
Jason Perkins
b320248d7b A bit of clean-up work over the recently modified call array code 2014-02-11 11:11:46 -05:00
Jason Perkins
1b28b48a6b Fix duplicate flags in Gmake PCH build commands (Patrick Rapin) 2014-02-14 15:22:32 -05:00
Jason Perkins
85e62a76f5 Make framework a configuration value, to enable more reuse by modules (Will Vale) 2014-02-14 15:18:37 -05:00
Jason Perkins
fc79f5d9dc Add distinct FatalCompileWarnings and FatalLinkWarnings flags 2014-02-14 12:23:12 -05:00
Jason Perkins
407861bc80 Allow custom build and resource files to be excluded from builds 2014-02-11 18:04:07 -05:00
Jason Perkins
d52a835bdd Consolidate key-value setter function into api.getSetter(); simplify addition of custom setter logic 2014-02-11 15:22:10 -05:00
Will Vale
b5a40c9fd2 Removed "valid" framework values - aim is to use framework for other systems - e.g. Android API level 2014-02-12 00:04:33 +13:00
Jason Perkins
6b7a05722d Route all output through premake.out() to simplify interception and overriding.
Fix a related bug in the C++ makefile generator.
2014-02-08 12:26:18 -05:00
Jason Perkins
1cbc2bef9d Clean up pass over output APIs used by exporters
- Reworked _p() and _x() over new indentation-aware output APIs
- Added proper APIs for setting indentation, EOL sequence, and value escaping
- Moved functions intended for exporters to premake.lua (with generation and validation calls)
2014-02-08 10:44:57 -05:00
Jason Perkins
b3468bd591 Add locale() to specify culture codes for Visual Studio C/C++ resources 2014-02-06 15:38:51 -05:00
Jason Perkins
f44ac84545 Add per-file defines for VC 200x 2014-02-05 17:04:37 -05:00
Jason Perkins
984b14c621 Merged in windirstat/premake-dev/fix_issue223_sln2 (pull request #102)
Possible solution 2 for issue #223
2014-02-05 11:46:27 -05:00
Jason Perkins
17e4438ccc Merged in windirstat/premake-dev/fix_issue41 (pull request #99)
This fixes issue #41 by simply resetting the indentation to its default ...
2014-02-05 11:31:56 -05:00
Jason Perkins
105b2a163f Merged in windirstat/premake-dev/remove_x_on_source_files (pull request #97)
Removing the execute bit on these source files, no line changes of any kind, though.
2014-02-05 11:18:31 -05:00
Oliver Schneider
d959eb7ccb Possible solution 2 for issue #223 2014-02-05 03:30:26 +00:00
Oliver Schneider
f0086c20de This fixes issue #41 by simply resetting the indentation to its default at the beginning of solution generation, i.e. in vs2005.generateSolution, shared by all VS implementations 2014-02-05 02:15:38 +00:00
Oliver Schneider
5c15e8791a Removing the execute bit on these source files, no line changes of any kind, though. 2014-02-05 00:43:21 +00:00
Jason Perkins
c5ada9c42f Convert VCCLCompilerTool to call arrays 2014-02-04 16:04:36 -05:00
Oliver Schneider
2ce5c148ac Same fix as for premake-stable 2014-02-04 00:47:12 +00:00
Jason Perkins
46e3a06330 Port VC 200x user files to new indentation APIs, fix a few indentation bugs from previous commit 2014-01-31 14:29:58 -05:00
Jason Perkins
93949df3fc Enable per-file defines in VC 2010 projects 2014-01-28 13:41:58 -05:00
Jason Perkins
6db06d6985 Use new indentation-aware APIs in VC 200x exporter 2014-01-31 11:40:09 -05:00
Jason Perkins
f40bdf16c1 Switch local namespace alias from _ to m
- avoids conflicts with _ as a dummy variable in loops
- matches the informal Lua convention for module definitions
2014-01-28 10:42:49 -05:00
Jason Perkins
3a2c736b3b Add implementations for all VC 200x tools, as override points for modules 2014-01-24 13:06:52 -05:00
Jason Perkins
623b35aba8 Add indentation aware output functions for exporters 2014-01-24 18:57:00 -05:00
Jason Perkins
17a6308140 Merged in TurkeyMan/premake-dev/gmakefix (pull request #90)
Removed another evil open else statement.
2014-01-22 11:56:39 -05:00
Manu Evans
04a6b92b4f Removed another evil open else statement. 2014-01-22 18:57:33 +10:00
Jason Perkins
625d4a9d5d Fixed broken vc200x namespace alias in loops 2014-01-18 14:54:46 -05:00
Jason Perkins
d618f62419 Normalize paths in os.* functions before working with them (Richard Geary) 2014-01-16 15:38:33 -05:00
Jason Perkins
bc4b65b9a4 Use rawget() for testing new API calls; allows global namespace metatables 2014-01-16 14:50:26 -05:00
Jason Perkins
729cab1680 Convert existing VC 200x call arrays to new format 2014-01-16 14:22:38 -05:00
Jason Perkins
6cf6ab4955 Add prebuild-, prelink- and postbuildmessage() 2014-01-15 16:12:29 -05:00
Jason Perkins
98ee892303 Use boolean fields rather than string decorations for extra API field information (Richard Geary) 2014-01-14 16:43:14 -05:00
Jason Perkins
d9a9919f49 Use DOS-style environment variables in VS solution paths 2014-01-13 17:10:53 -05:00
Jason Perkins
945d3fd279 Remove incompatible /DEBUG flag from MSC librarian command line arguments 2014-01-10 10:59:03 -05:00
Jason Perkins
fc381f7c67 Add api.alias() to allow complete aliasing of project API calls 2014-01-11 15:31:37 -05:00
Jason Perkins
a64bfc630f Change premake.extensions namespace to premake.modules, to match online docs 2014-01-11 15:31:15 -05:00
Jason Perkins
2efe9d780d Fixed VC 2010 escaping of custom build steps 2014-01-10 10:40:45 -05:00
Jason Perkins
48bbde5334 Fixed XML escaping for VS C# projects 2014-01-09 18:06:03 -05:00
Jason Perkins
75da14d13b Split XML declarations from VS project headers, to allow comments to be inserted by modules 2014-01-07 17:08:51 -05:00
Jason Perkins
9108d6d3e5 Show name of action in the missing field error message 2013-12-30 17:19:00 -05:00
Jason Perkins
5ef4cb3012 Expose target name builder for extension modules 2013-12-30 17:18:20 -05:00
Jason Perkins
05975042a2 A bit of clean-up on io.lua 2013-12-24 13:08:16 -05:00
Jason Perkins
ffdacd7fba Treat linker warnings as errors when FatalWarnings is set 2013-12-24 14:01:57 -05:00
Jason Perkins
cd4e12e287 Remove MSC /MANIFEST and /INCREMENTAL flags; are already the default values 2013-12-23 16:52:54 -05:00
Jason Perkins
591b6d4083 Add /DLL switch when building shared libs with MSC 2013-12-20 10:19:44 -05:00
Jason Perkins
0824533307 Allow implib… fields to control linking names for all target kinds 2013-12-20 09:48:03 -05:00
Jason Perkins
1bbefc56aa Move path.normalize() to native code for performance 2013-12-22 14:14:31 -05:00
Jason Perkins
3af52fd900 Return resultfrom insertflat() to allow chaining of operations 2013-12-20 14:58:11 -05:00
Jason Perkins
b3216cbcf8 Return absolute path if getrelative() hits the top of a DOS file system (issue #213) 2013-12-20 15:08:05 -05:00
Jason Perkins
860826c3d8 Review and fix manifest ordering; move some functions up the load order to allow earlier use 2013-12-19 16:13:04 -05:00
Jason Perkins
957a6e45e1 Move more tool switches into the mapping tables 2013-12-17 16:43:09 -05:00
Jason Perkins
fbfa40f5b3 - Expose the matching logic used by os.matchdirs() and os.matchfiles() for overriding
- Cache results of os.is64bit()
2013-12-17 13:49:25 -05:00
Jason Perkins
0a596481a0 Add path.normalize() 2013-12-17 13:41:58 -05:00
Jason Perkins
7669651db0 Split VC 2010 link entries out for easier overriding 2013-12-11 17:33:44 -05:00
Jason Perkins
c79f93665a Add command line options to filter terms for configurations
--renderer=opengl can be used like: configuration { "renderer=opengl" }
  --release can be used like: configuration { "release" }
2013-12-10 11:59:35 -05:00
Jason Perkins
69572e392f Handle trees based at the root of the filesystem 2013-12-09 17:35:21 -05:00
Jason Perkins
bbdba2273e For convenience, allow nil arguments to some table functions 2013-12-09 16:26:34 -05:00
Renaud Guillard
5e17dfec18 Check presence of ld.so.conf files. Add support of additional ld.so.conf in /opt path 2013-12-05 20:58:42 +01:00
Renaud Guillard
50534c2338 Transform solution groups into target aggregates 2013-12-05 20:41:35 +01:00
Jason Perkins
1f126d1855 Bug: ignores first command line argument after the action 2013-12-01 15:38:28 -05:00
Jason Perkins
2774e7796a Port string.startswith() to native code 2013-11-26 19:10:53 -05:00
Jason Perkins
082dc318e4 Add missing 'local' keyword on internal helper functions to prevent overwriting 2013-11-26 17:37:21 -05:00
Jason Perkins
446090b6d8 Added more command line flags for MSC compiler 2013-11-22 14:06:41 -05:00
Jason Perkins
6dc52d2e08 Improve command line argument processing
- allow options to appear after the action
- export "raw" arguments to new _ARGV variable
2013-11-22 13:11:51 -05:00
Jason Perkins
11bfb279d3 Added support for Settings.settings file association 2013-11-20 15:35:37 -05:00
Jason Perkins
1ee62b13bc Removed override of Lua type(); no longer required by Premake APIs 2013-11-20 13:26:52 -05:00
Jason Perkins
06aa897261 Add new "Resource" build action for WPF 2013-11-16 11:53:48 -05:00
Jason Perkins
fadde31127 Begin adding support for .xaml files 2013-11-15 17:17:41 -05:00
Jason Perkins
d3f0a43644 Add flag "WPF" to enable Microsoft WPF project handling 2013-11-15 16:35:27 -05: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
6cb3034234 Fix misplaced variable declaration 2013-11-10 16:19:25 -05:00
Jason Perkins
c38eb0c67f Fix virtual path matching for patterns like "filename.*" 2013-11-10 16:14:29 -05:00
Jason Perkins
3722d90662 Remove some dead code 2013-11-07 07:45:28 -05:00
Jason Perkins
071e74f0ae Move setting of _PREMAKE_COMMAND into premake_execute() for reuse 2013-11-05 11:50:59 -05:00
Jason Perkins
868e9192ab Split VS C# project properties into function callouts 2013-10-31 11:51:32 -04:00
Jason Perkins
b5e7a345fb Merged in triton/premake-cs-fixes/make-rc2 (pull request #71)
Fixed resource compiler tool in the C++ Make backend.
2013-10-31 11:19:09 -04:00
Jason Perkins
e2e4bd5113 Merged in TurkeyMan/premake-dev/patchability (pull request #85)
Improvements to vstudio patchability
2013-10-31 11:05:34 -04:00
Jason Perkins
cd3c44bb46 Dropped unused namestyle fields 2013-10-31 10:58:10 -04:00
Jason Perkins
91d003a82f Phased out sysflag tables from tool adapters 2013-10-31 10:57:25 -04:00
Jason Perkins
ed4afb5e10 Merged in TurkeyMan/premake-dev/number_bool_apis (pull request #88)
Added number, integer and boolean api 'kinds'.
2013-10-31 07:38:16 -04:00
Manu Evans
29ce69b9e7 Added number, integer and boolean api 'kinds'. 2013-10-31 12:30:52 +10:00
Jason Perkins
db77bb3434 Fix C# resource file associations when placed in a subfolder 2013-10-30 14:22:53 -04:00
Jason Perkins
7ef0bf5bc8 Merged in TurkeyMan/premake-dev/omitDefaultLibrary (pull request #86)
Added OmitDefaultLibrary flag
2013-10-30 11:15:05 -04:00
Manu Evans
b60e999f50 Removed floatingpoint 'None'. 2013-10-30 14:13:02 +10:00
Manu Evans
3feb383e2b Support vs2005 (yes, I downloaded and installed vs2005 to test).
Added unit tests.
2013-10-30 14:03:24 +10:00
Jason Perkins
45b7dd029b Removed a bit of dead code 2013-10-29 15:58:20 -04:00
Manu Evans
40c846c2fe Added OmitDefaultLibrary flag. 2013-10-29 17:10:01 +10:00
Manu Evans
e30adefed5 Made solution patchable. 2013-10-29 15:47:39 +10:00
Manu Evans
d14a0f6ec8 Minor changes to improve patch-ability. 2013-10-29 15:43:35 +10:00
Jason Perkins
3b5a070d42 Split more of VC 200x exporter into function call-outs 2013-10-28 11:01:41 -04:00
Jason Perkins
95ac073019 Only generate VC'10 .filters file when project has subfolders 2013-10-27 10:56:22 -04:00
Jason Perkins
d2295fc5d5 Merged in triton/premake-cs-fixes/gcc-rc (pull request #68)
Added support for resource compiler tool under the GCC toolset.
2013-10-24 11:39:57 -04:00
Jason Perkins
b9739214dc Merged in triton/premake-cs-fixes/cs-noconfig (pull request #66)
C# Make projects now specify the "/noconfig" csc/mcs flag to behave like VS.
2013-10-24 11:38:52 -04:00
Jason Perkins
bff804a03a Merged in triton/premake-cs-fixes/cli-usingdirs3 (pull request #75)
Added new function usingdirs() to specify additional C++/CLI using directories.
2013-10-24 11:32:48 -04:00
Jason Perkins
f9015f55f1 Fix DEPENDS in C# Makefiles (João Matos, Jason Filsinger) 2013-10-24 11:30:05 -04:00
Jason Perkins
04b290f725 Allow "*" to select the parent scope (i.e. solution "*" selects global scope, project "*" selects solution scope) 2013-10-24 09:59:24 -04:00
Jason Perkins
7257516dac Make force includes a mixed list field, so includes can be specified relative to search paths easily 2013-10-23 13:20:57 -04:00
Jason Perkins
ccede98258 Move some of .csproj exporter to function callout convention 2013-10-23 13:06:03 -04:00
Jason Perkins
a31373e287 Begin porting VC200x exporter to new function callout conventions 2013-10-23 10:51:11 -04:00
Jason Perkins
9831545e2d Fix path.getrelative() when trailing slashes are present 2013-10-22 16:32:51 -04:00
Jason Perkins
b8bca5ddfc Allow the use of functions in the tool adapter flag maps 2013-10-22 15:21:05 -04:00
Jason Perkins
a91f7154f8 Merged in filsinger/premake-dev/cs-source-path-delimiter (pull request #84)
removing path.translate from cs.listsources to prevent the use of double backslash path delimiters.
2013-10-21 12:01:08 -04:00
Jason Perkins
c72d71424a Begin splitting VC200x exporter into function lists for overriding 2013-10-18 10:38:00 -04:00
Jason Filsinger
0343d81c9f removing path.translate from cs.listsources to prevent the use of double backslash path delimiters. 2013-10-16 22:04:23 -07:00
Jason Perkins
2e08d5f218 Added support for per-file NoPCH flag in the VS2010 generator (João Matos) 2013-10-16 16:11:39 -04:00
Jason Perkins
d1eb67d43b Enable per-file optimization levels for Visual Studio 2013-10-16 14:29:49 -04:00
Jason Perkins
133cf7ce7c Add "full" and "debug" optimization levels 2013-10-16 13:47:09 -04:00
Jason Perkins
1e24b4790b Improve path.getabsolute
- Allow optional second "relative to" argument to use as base for conversion
- Fix handling of paths like: $ORIGIN/../lib
2013-10-12 16:18:54 -04:00
Jason Perkins
d7ff3629ed Improve error message for conflicting API field registrations 2013-10-12 16:17:24 -04:00
Jason Perkins
760261cf3d Cleaned up configset targeting in the list setting API 2013-10-09 17:34:21 -04:00
Jason Perkins
5855e6f596 Fixed handling of deprecations when warning messages have been disabled 2013-10-09 16:24:49 -04:00
Jason Perkins
b3f907b111 Fixed location of reported deprecation errors 2013-10-09 15:44:08 -04:00
Jason Perkins
30d53ced1d Merged in triton/premake-cs-fixes/cpp-framework (pull request #79)
Use the user specified target .NET framework for Managed C++ VS projects.
2013-10-09 11:38:18 -04:00
Jason Perkins
27cbd39b1d Merged in nitingupta910/premake-dev (pull request #81)
Fixes for gcc/clang
2013-10-09 11:34:58 -04:00
Nitin Gupta
9fc0cc4f85 Handle case for optimize "Off"
Makes gcc/clang use '-O0' when optimize "Off" is set
2013-10-08 18:05:17 -07:00
Jason Perkins
1aebae101b Added flag to enable/disable deprecation handling for backward compatibility 2013-10-08 14:13:56 -04:00
Jason Perkins
192cf143a7 Fix pattern matching in deprecated value removal handler 2013-10-08 13:45:37 -04:00
Nitin Gupta
078b4e8a08 Set CXX to clang++ when toolset is clang
Without this, clang (instead of C++) is used even
when compiling C++ code.
2013-10-07 22:41:45 -07:00
Jason Perkins
084f846192 Removed some useless code 2013-10-03 16:43:32 -04:00
Jason Perkins
9889b06e89 Handle removal of wildcard values in deprecation system 2013-10-04 15:32:56 -04:00
Jason Perkins
9ecb373715 Fix error handling in remove() deprecation path 2013-10-03 13:46:03 -04:00
Jason Perkins
24af0a7414 Set default language earlier, to avoid out of scope warnings 2013-10-03 13:23:56 -04:00
Jason Perkins
1b105e377d Pass same flags to PCH compile as C/C++ source code 2013-10-03 10:47:14 -04:00
Jason Perkins
65d6f65177 Add remove() handlers for deprecated values 2013-10-02 15:59:54 -04:00
Jason Perkins
acbec658ad Fix broken MSC exception handling flag 2013-09-30 12:20:53 -04:00
Jason Perkins
32d082a7e2 Add support of lists of values in flag maps 2013-09-30 11:10:07 -04:00
Jason Perkins
e062bf8035 Remove no-op language set call from configuration building 2013-09-30 13:06:32 -04:00
triton
68f3a6d032 Use the user specified target .NET framework for Managed C++ VS projects. 2013-09-30 15:53:16 +01:00
Jason Perkins
64c220b70a Project locations are now inherited from the solution, if set. 2013-09-30 10:16:56 -04:00
Jason Perkins
91635859b9 Add warnings(); deprecate ExtraWarnings and NoWarnings flags 2013-09-29 12:39:07 -04:00
Jason Perkins
686f3f071a Add optimize(); deprecate Optimize, OptimizeSize, and OptimizeSpeed flags 2013-09-29 11:23:39 -04:00
triton
69ad16381c Added new function usingdirs() to specify additional C++/CLI using directories. 2013-09-28 00:04:18 +01:00
Jason Perkins
bc9ba89cce Add nativewchar(); deprecate NativeWChar and NoNativeWChar flags 2013-09-27 15:12:50 -04:00
Jason Perkins
4862c25af5 Add floatingpoint(); deprecate FloatFast and FloatStrict flags 2013-09-27 14:49:21 -04:00
Jason Perkins
df428a72d7 Add vectorextensions(); deprecate EnableSSE and EnableSSE2 2013-09-27 14:25:10 -04:00
triton
6e15d08b16 Fixed resource compiler tool in the C++ Make backend. 2013-09-27 01:52:06 +01:00
triton
48c49498fa Added support for resource compiler tool under the GCC toolset. 2013-09-27 00:37:24 +01:00
triton
6307cf0bd1 Added Unsafe flag support to the C# Make action. 2013-09-27 00:27:48 +01:00
triton
82fc2683be C# Make projects now specify the "/noconfig" csc/mcs flag to behave like VS. 2013-09-27 00:18:33 +01:00
Jason Perkins
13fa20a5f5 Move project API definition to _premake_init with other initialization code 2013-09-26 12:24:10 -04:00
Jason Perkins
5497d0fb37 Improve the API deprecation system; link to new Premake-dev documentation 2013-09-26 12:01:50 -04:00
Jason Perkins
5946f73f4c Fix undefined symbol in API error message 2013-09-19 16:40:15 -04:00
Jason Perkins
542d4c88fb Merged in dcourtois/premake-dev/FixNoWarnings (pull request #65)
fixed NoWarnings flag for vs201x generators
2013-09-19 10:22:39 -04:00
Jason Perkins
4bef76b42a Merged in dcourtois/premake-dev/CustomBuildMessages (pull request #62)
added support for custom build message in vs201x generator
2013-09-19 10:19:15 -04:00
Jason Perkins
44bf43a837 Merged in dcourtois/premake-dev/Manifests (pull request #64)
add additional manifests support for vs201x generators
2013-09-19 10:09:47 -04:00
Jason Perkins
2ca1ffd58e Add new API config.linksToProject() 2013-09-18 11:48:21 -04:00
dcourtois
eebd451006 merge latest revisions 2013-09-18 11:54:46 +02:00
dcourtois
e682b08779 fixed NoWarnings flag for vs201x generators 2013-09-18 11:37:36 +02:00
dcourtois
912a0e2ec3 used vc2010.element instead of _p for additional manifests 2013-09-18 10:35:02 +02:00
dcourtois
4e644afce3 removed wip code from another branch commited by mistake 2013-09-18 09:58:33 +02:00
dcourtois
fb3165417a use new vc2010.element method instead of _p function 2013-09-18 09:49:42 +02:00
Jason Perkins
68c26b0e38 New call api.addAllowed() to add values to a field's allowed value list 2013-09-17 14:59:13 -04:00
Jason Perkins
cf8b1b0f3a Moved project APIs back into base folder with rest of the core code 2013-09-17 14:22:54 -04:00
neoaggelos
b98af00c11 Merged premake/premake-dev into default 2013-09-15 11:36:41 +03:00
Aggelos Kolaitis
f14def1b91 Updated code to use tabs for alignment 2013-09-15 11:30:38 +03:00
Jason Perkins
aba1fc906d Remove premake5 namespace from globals 2013-09-13 11:55:57 -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
24a5ba03ee Merged in xpol/premake-dev (pull request #39)
Add NoWarnings flags support for gcc.
2013-09-13 11:16:37 -04:00
Jason Perkins
e46c8b56c4 Added string.contains() convenience function 2013-09-12 15:39:43 -04:00
Jason Perkins
18c6d90734 Allow virtual paths to specify empty source tree root folders 2013-09-12 10:40:52 -04:00
neoaggelos
52e15b3b05 Small fixes in os.remove(); also added documentation 2013-09-12 08:47:47 +00:00
neoaggelos
e2fcf30fb4 Whoops, added missing 'end' statement 2013-09-11 17:27:31 +00:00
neoaggelos
d7fb7fb797 Updated os.remove() to recursively handle lists of files 2013-09-11 17:24:14 +00:00
Jason Perkins
db22c65496 Limit use of quotes in compiler command line arguments 2013-09-11 10:57:44 -04:00
Jason Perkins
3df3a7fb8e Fix VC 2010 compiler warning 2013-09-11 10:57:25 -04:00
Aggelos Kolaitis
d832dae35c Added an overloaded os.remove() that accepts a table of files and wildcards 2013-09-11 13:44:17 +03:00
Jason Perkins
6a04a82123 Fix error handling in debug builds 2013-09-10 17:19:30 -04:00
Jason Perkins
d77a856629 Move manifest loading to host executable 2013-09-10 16:47:41 -04:00
Jason Perkins
985c58103c Make the version change from 4.x to 5.x official
- Rename executable to premake5
- Default to premake5.lua project script; fallback to premake4.lua if not found
- Clean up internal references to premake4 naming
2013-09-10 16:24:39 -04:00
Jason Perkins
20b324201e Fixed bug in directory field wildcard expansion (h/t StiX) 2013-09-09 14:03:06 -04:00
Jason Perkins
4bb62af458 Make option lowercasing C89 compliant 2013-09-09 13:53:10 -04:00
Jason Perkins
2826271bf0 Add system script support
- Look for and run premake5-system.lua on startup, before loading project script
- Add --systemscript command line option to override default name
- Add dofileopt() function to look for and run file if it exists
- Move command line arguments to new home in _premake_init.lua
2013-09-08 11:51:33 -04:00
Jason Perkins
11b4f4177b Force command line option keys to lowercase to allow mixed case from users 2013-09-08 11:49:37 -04:00
Jason Perkins
2924671dd1 Fix compiler warning about uninitialized struct fields 2013-09-08 11:47:13 -04:00
dcourtois
36d62865b1 added support for additional manifest files to vs201x actions 2013-09-06 17:32:06 +02:00
Jason Perkins
ad0e72f6cf Removed references to missing getbuildaction() from C# Makefile projects 2013-09-06 10:23:17 -04:00
Jason Perkins
72756255ab Handle virtual path collisions in source trees without losing files 2013-09-05 10:24:59 -04:00
Jason Perkins
3b5611503f Improve built-in package search paths; begin standardizing on "modules" terminology 2013-09-04 15:28:22 -04:00
dcourtois
4c867e2f1d added support for custom build message in vs201x generator 2013-09-03 13:16:08 +02:00
Jason Perkins
bb18026fcc Added fileconfig.hasFileSettings() call to check if any per-file values are actually present in the config 2013-08-29 12:21:32 -04:00
Jason Perkins
191e81df8e Improved use of premake.warnOnce() 2013-08-29 12:20:53 -04:00
Jason Perkins
1bebe7a52b Apply maps from configuration blocks in the order in which they appear in the script 2013-08-23 16:51:55 -04:00
dcourtois
a5e8862339 added support for LinkTimeOptimization flag 2013-08-21 11:58:08 +02:00
Jason Perkins
3b8a115db8 Leave PCH header path alone if no match is found in includedirs 2013-08-15 13:44:54 -04:00
Jason Perkins
411675d356 Merged in mendsley/premake-dev/xbox360-extension (pull request #59)
In vs2010 Xbox360 builds should create a .exe file as the target for <OutputFile> and leave .xex generation to the Image Conversion task
2013-08-17 15:01:05 -04:00
Jason Perkins
c4af5ff1d4 Merged in mendsley/premake-dev/nobuffersecuritycheck (pull request #58)
adding flag 'NoBufferSecurityCheck' to disable the feature in Visual Studio and GCC projects (/GS-  and -fno-stack-protector respectively)
2013-08-17 14:51:33 -04:00
Jason Perkins
e593172691 Cleaned up previous VS 2013 support:
- Removed tests that were identical to VS 2012, and didn't cover new code
- Fixed Visual Studio version in comment header
- Added to change log
2013-08-17 14:31:52 -04:00
Matthew Endsley
871022f442 In vs2010 Xbox360 builds should create a .exe file as the target for <OutputFile> and leave .xex generation to the Image Conversion task 2013-08-15 19:24:39 -07:00
Matthew Endsley
cbfd227250 adding flag 'NoBufferSecurityCheck' to disable the feature in Visual Studio and GCC projects (/GS- and -fno-stack-protector respectively) 2013-08-15 15:22:23 -07:00
Igor Karatayev
219f0df11a Visual Studio 2013 integration changed table.insert to premake.override, added vs2013 tests. 2013-08-16 00:58:33 +03:00
Igor Karatayev
85c9608bc2 Added vs2013 project generation 2013-08-15 14:16:56 +03:00
Matthew Endsley
a0a2bcfafe Default to .lib extension for links in xbox360 system projects 2013-08-13 19:24:01 -07:00
Jason Perkins
2431aa9fae Improved handling of precompiled headers across toolsets 2013-08-13 10:56:01 -04:00
Jason Perkins
ddcdfe4a60 Stop stripping path from PCH headers in Visual Studio; first step in standardizing handling across tools 2013-08-11 14:27:17 -04:00
Jason Perkins
99ce5cfbbf Rework Gmake C++ exporter to use new extensibility conventions 2013-08-11 14:22:24 -04:00
Jason Perkins
b18e8b7ccd Swapped $(LIBS) and $(ALL_LDFLAGS) in makefile linking step (Ben Henning)
See http://sourceforge.net/p/premake/bugs/279/
2013-08-11 09:54:17 -04:00
Jason Perkins
379de28f74 Use self-closing <ClCompile> elements where possible; remove trailing newline from </Project> 2013-08-11 09:52:51 -04:00
Jason Perkins
f94ccff6d0 Added copylocal() API and NoCopyLocal build flag to control assembly reference copying in C# projects 2013-08-11 09:51:19 -04:00
Jason Perkins
4d653106e6 Use matching build configuration or platform, if available, when building names for excluded project configurations 2013-08-11 09:47:07 -04:00
Jason Perkins
347f10a379 Make table.isempty work with table which has a key as false (Baiyan Huang) 2013-07-29 11:41:05 -04:00
Jason Perkins
b3fdb1457d Merge more file configuration functionality into new fileconfig class 2013-07-12 11:07:26 -04:00
Jason Perkins
3abbbc93f9 Split file configuration building off to new class 2013-07-09 19:07:04 -04:00
Jason Perkins
4b251b2036 Excluded files are no longer considered in duplicate object file renumbering 2013-07-07 16:48:17 -04:00
Jason Perkins
8f2a64cd88 Consolidate file configuration building in up-front baking step 2013-07-04 12:37:01 -04:00
Jason Perkins
5c87c62de1 Split handling of include directories and force includes; wrap all include paths in quotes 2013-06-27 13:50:12 -04:00
Jason Perkins
644cb30326 One of the change sets to support the new kind "None" seems to have gone missing; here it is (again?) 2013-06-26 07:28:57 -04:00
Jason Perkins
63257e1fc8 Add missing mapping for new kind "None" to VS configuration type 2013-06-25 10:15:39 -04:00
Jason Perkins
2f1fe980ef Duplicate object file names are now ordered the same across all toolsets 2013-06-21 17:32:33 -04:00
Jason Perkins
e7fc3724b5 Roll back trailing CR-LF pairs on VC'09 build step command lines 2013-06-21 16:08:43 -04:00
Jason Perkins
9953940d10 Re-added Component build flag; marked as deprecated 2013-06-17 15:44:54 -04:00
Jason Perkins
ceb8756382 Added additional build actions for C# subtypes (Form, Component, UserControl); dropped Component build flag 2013-06-17 11:46:53 -04:00
Jason Perkins
797db3b31d Adjust source file ordering to better match Visual Studio 2008 2013-06-13 14:10:02 -04:00
Jason Perkins
e0f91242c3 Omit empty <Lib> elements in VS'10 static library projects 2013-06-12 17:03:09 -04:00
Jason Perkins
08de36c098 Write ActiveCfg entries for excluded configurations in VS solutions, to avoid rewriting on save 2013-05-31 09:33:02 -04:00
Jason Perkins
bbcafa0d6f Add new configuration kind "None" to support non-building Visual Studio configurations (i.e. header-only projects) 2013-05-27 10:21:10 -04:00
Jason Perkins
536a751dbe Make VS'08 project references relative to solution, to match VS behavior 2013-05-23 11:46:50 -04:00
Jason Perkins
4bd950d130 Make escaping function configurable; fix (non-)escaping of quotes in VS'10 and '12 2013-05-22 11:15:48 -04:00
Jason Perkins
d1cb894b73 Add newline to empty <TargetExt> elements in VC 2010 C++ projects 2013-05-22 09:06:33 -04:00
Jason Perkins
b42abdb37c Merged in goughy/premake-dev-d2/pm-extensions (pull request #49)
Add standard package paths to allow for extension mechanism
2013-05-21 13:34:02 -04:00
Jason Perkins
d465949a9a Merged in goughy/premake-dev-d2 (pull request #48)
Fix Lua compilation error on *nix due to getline macro
2013-05-21 13:30:29 -04:00
Jason Perkins
01531cde9e Snapshot recent project format changesMore reconciliation with Visual Studio project formats:
- fix dummy configurations for makefile projects
- remove manifest and app verifier tools from static library configurations
- improve sorting of source tree (still needs work)
2013-05-21 11:55:00 -04:00
Jason Perkins
e0e4b23a5d More reconciliation with Visual Studio project formats:
- sort solution configurations by case-insensitive names
- add trailing CR-LF to custom build steps
- remove empty Filter attributes from folder filter elements
2013-05-21 08:48:22 -04:00
Jason Perkins
ff8d8029fd Fix error result handling in os.rmdir() 2013-05-20 11:06:53 -04:00
Andrew Gough
44d03c3dd5 Added /home/goughy & %USERPROFILE% entries for extensions also 2013-05-20 08:01:24 +10:00