Commit Graph

1061 Commits

Author SHA1 Message Date
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
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