Commit Graph

837 Commits

Author SHA1 Message Date
Jason Perkins
dcf2da2cde Add test for PCH location on include dirs when project has a location set 2013-08-20 10:50:07 -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
5e3c8d59f8 Readding unit tests for xex->exe target extension changes 2013-08-15 19:36:32 -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
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
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
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
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
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
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
621e59481f Fixed bug #176: Target prefix breaks GCC linking 2013-05-16 11:40:47 -04:00
Jason Perkins
8be16d75b8 Minor changes to Visual Studio C# projects to avoid changes on save 2013-05-15 11:15:54 -04:00
Jason Perkins
23256ecc94 Merged in domu/premake-dev-domu (pull request #46)
[gmake] allow mixing c files in cpp projects
2013-05-02 14:07:43 -04:00
Alexey Orlov
38ba3c5e41 [gmake] allow mixing c files in cpp projects: review changes, test added 2013-05-02 15:36:11 +03:00
Jason Perkins
89a85f0250 Add <ProjectName> to VS 2010 projects when project and file names differ 2013-05-01 12:08:41 -04:00
Jason Perkins
dd639ec1e2 Applied pull requests #38 and #43: Fix escaping of quotes for resource preprocessor.
Sticking with the wonky quotes for now; will fix the escaping in a separate commit.
2013-04-30 12:25:25 -04:00
Jason Perkins
1af3a10c0a Moved more VS2012 logic to extension script; made C# project generation more extensible 2013-04-25 16:05:08 -04:00
Jason Perkins
bacc9ca520 Introduce new extension convention for block elements; move VS2010 <PlatformToolset> to extension script 2013-04-25 11:45:44 -04:00
Jason Perkins
355132f38b Begin splitting out VS2012 support as its own extension 2013-04-25 09:59:55 -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
b59850dd1b Path tokens in non-path fields (like custom build commands) are not expanded to project-relative paths 2013-04-17 11:54:07 -04:00
xpol
3c099f27d5 Merge 2013-04-12 10:46:15 +08:00
Jason Perkins
0cd9bac896 Switch per-file build rules to use new build…() APIs 2013-04-09 15:12:04 -04:00
Jason Perkins
b35e57d52b Added build, rebuild, and clean commands for makefile projects 2013-04-07 14:30:58 -04:00
Jason Perkins
fe1b37c9ae Initial support for VC 2008 Makefile projects 2013-04-03 14:09:39 -04:00
Jason Perkins
b875f37875 Initial support for VC 2010 Makefile projects 2013-04-03 11:53:00 -04:00
Jason Perkins
64d6d71fcd Add new Makefile configuration kind to API and project validation 2013-04-02 10:59:54 -04:00
Jason Perkins
214ac7097f Added ReleaseRuntime build flag (Tarmo Pikaro) 2013-03-27 11:12:37 -04:00
Jason Perkins
09b0dd1182 Add virtual paths and improve external file links for C# projects (James Whitworth) 2013-03-27 07:43:20 -04:00
Jason Perkins
76c7c1a485 Added Clang tool adapter, passing through to GCC for now 2013-03-20 11:25:39 -04:00
Jason Perkins
96cfdf5acc Add per-file build options and forced includes to VC'2010 2013-03-12 19:26:25 -04:00
Jason Perkins
f4f688e77c Add per-file build options and forced includes to VC 2008 2013-03-12 18:26:19 -04:00
Jason Perkins
4c93d368eb Modified io.capture() etc. to allow for nested captures, to be used by new file configuration handling code 2013-03-12 18:18:47 -04:00
Jason Perkins
2d5a5910e6 Visual Studio C# projects can now link to external files 2013-03-10 15:56:56 -04:00
Jason Perkins
b10f1b5b60 Improve Xbox 360 support 2013-03-07 12:14:03 -05:00
Jason Perkins
99a80052da Clean up VC'08 naming, and move toward new extensibility conventions set in VC'10 2013-03-07 10:45:33 -05:00
Jason Perkins
8d8a3e3574 Fix: path.getrelative() gives incorrect results for paths containing "//" 2013-03-06 10:06:45 -05:00
Jason Perkins
ffc53d870e Added support for local assembly references to Visual Studio Managed C++ projects 2013-03-05 11:00:32 -05:00
Jason Perkins
d3ec20d1c3 Support linking of managed system assemblies in Visual Studio managed C++ projects 2013-03-04 11:45:27 -05:00
Jason Perkins
68287a1437 Added application icon support for C# executable projects 2013-02-25 10:47:22 -05:00
Jason Perkins
47c8a568d4 Fix module definition file (.def) handling in VC'10 2013-02-21 10:28:41 -05:00
Jason Perkins
d5e3272957 Added forceusings() 2013-02-20 09:57:37 -05:00
Jason Perkins
2e278af5e2 Cleaned up implementation of solution(), project(), configuration(); now activate scope when called without arguments 2013-02-15 18:57:34 -05:00
Jason Perkins
91272ebd37 Make more VC'10 project elements available for override by add-ons; clean up naming conventions of modified functions 2013-02-11 13:25:33 -05:00
Jason Perkins
3b84626132 Added MultiProcessorCompile flag to enable multiple compiler processes in Visual Studio 2013-02-08 10:35:14 -05:00
Jason Perkins
9c752adf4a Add ExcludeFromBuild flag to mark source files as non-buildable 2013-02-07 10:58:31 -05:00
Jason Perkins
09100182c3 Port validation checking; add warning for out of scope values 2013-02-01 14:54:14 -05:00
Jason Perkins
faba7a72dc Fix Makefile linking to object files 2013-01-31 09:38:45 -05:00
Jason Perkins
34127f2463 Fix linking to external libraries outside of project folder 2013-01-29 10:25:52 -05:00
Jason Perkins
b7bc59e105 Allow command line override of makefile flags (Cameron Hart) 2013-01-23 11:50:54 -05:00
Jason Perkins
8e7da0f3be Moved UUID collision warning to stderr to improve visibility 2013-01-17 14:37:49 -05:00
Jason Perkins
f60074d380 Omit Keyword and RootNamespace from non-Windows Visual Studio projects 2013-01-12 11:52:59 -05:00
Jason Perkins
8275e190a1 Fix: if link contains a token that expands to an absolute path, HintPath of C# projects will end up with absolute path 2013-01-10 11:09:34 -05:00
Jason Perkins
974d1a7d04 Added startproject() to specify startup project 2013-01-09 11:41:32 -05:00
Jason Perkins
749df96f38 Write out solution groups even if first project is ungrouped 2013-01-09 10:03:50 -05:00
Jason Perkins
89d413d9d5 Visual Studio solutions now use the same project ordering in all sections; avoids unnecessary changes if the solution is later changed within Visual Studio 2013-01-08 13:19:56 -05:00
Jason Perkins
a69b7501e7 Port path.getrelative() and path.translate() from Lua to C 2013-01-04 11:32:52 -05:00
Jason Perkins
c94073fc7e Port path.getabsolute() from Lua to C 2013-01-04 10:18:47 -05:00
Jason Perkins
b25c12f2b6 Ported old stress test; moved path.join() to C 2013-01-03 11:11:31 -05:00
Jason Perkins
30daa20f39 Fixed issues with Makefile naming; removed more deprecated Gmake action code 2012-12-31 13:45:22 -05:00
Alexey Orlov
4d6d61035c merge premake-dev->premake-dev-domu 2012-12-30 22:57:24 +03:00
Jason Perkins
41198fac9a UUIDs in Visual Studio project files now use a deterministic, name-based generator 2012-12-29 13:26:41 -05:00
Jason Perkins
06318ab5b6 Allow config maps to be attached to specific configurations 2012-12-23 13:10:06 -05:00
Jason Perkins
4c7fc6881b Add support for solution groups 2012-12-18 11:09:50 -05:00
Jason Perkins
e4d62bd307 Clean up vpath tests before porting back to stable 2012-12-14 10:00:51 -05:00
Jason Perkins
cb2435faf6 Added NoRuntimeChecks flag to disable Visual Studio default checks 2012-12-11 11:17:43 -05:00
Jason Perkins
43cd668b98 Stop enabling VC'10 smaller type checks 2012-12-11 10:37:30 -05:00
xpol
d7296695c9 Merge 2012-12-10 15:16:47 +08:00
Jason Perkins
b5cc1b96a2 Change case of vc2010.link() to match new extension convention 2012-12-06 14:03:17 -05:00
Jason Perkins
4ead57c055 Make VC2010 C++ .user file more extensible; add premake.override() convenience function. 2012-12-04 11:45:26 -05:00
Jason Perkins
cc6e53314f Revert back to Visual Studio's default implicit linking; add NoImplicitLink flag to disable 2012-11-30 14:05:19 -05:00
Jason Perkins
3dd3166c14 Add pre- and post-build support to Visual Studio C# projects 2012-11-28 11:14:47 -05:00
Jason Perkins
432e99b2c9 Display deprecation warning for "ng" actions; properly reset state between unit tests 2012-11-28 09:55:25 -05:00
Jason Perkins
547513a1d9 Remove deprecated tool interfaces 2012-11-27 10:28:17 -05:00
Jason Perkins
bcc2914139 Removed deprecated Visual Studio actions 2012-11-27 10:18:06 -05:00
Jason Perkins
cba537a825 Add architecture support to Visual Studio C# projects 2012-11-26 14:05:33 -05:00
Jason Perkins
1690d9b968 VC200x requires library names to be wrapped with quotes if they contain spaces 2012-11-26 10:09:50 -05:00
Alexey Orlov
6a1e7eecb8 added dependson command to allow dependency without linking 2012-11-20 00:08:48 +03:00
Jason Perkins
13cb60a94b Prevent duplicate config blocks in VC200x projects; clean up tests and remove old solution implementations 2012-11-19 15:47:59 -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
xpol
a61185f506 Merge 2012-11-15 10:36:43 +08:00
Jason Perkins
2cf609c6ac Ported key-value handling to new configuration system 2012-11-14 12:42:53 -05:00
Jason Perkins
400ad0a0be Added force includes to MSC tool definition 2012-11-09 11:07:01 -05:00
Jason Perkins
80a60231db Add force includes for SNC; allow configuration context proxy to be reset by exporter code 2012-11-07 09:46:47 -05:00
Jason Perkins
89deec0474 Added force include files 2012-11-06 16:42:44 -05:00
Jason Perkins
2800ebd010 Ported list handling to new configuration objects 2012-11-04 18:48:20 -05:00
Jason Perkins
3f79a363b2 First pass at removing dead and deprecated code 2012-11-04 11:54:04 -05:00
Jason Perkins
77212557dc Merge new configuration system into the public APIs 2012-11-04 09:21:58 -05:00
Jason Perkins
4511bc6517 More improvements to failed test stack traces 2012-11-04 09:21:40 -05:00
Jason Perkins
3d6e03e966 Config sets can now be hierarchical; pull target information from sets instead of old configs 2012-11-01 16:34:06 -04:00
Jason Perkins
6c19509737 Port "not" and "or" modifiers to new criteria objects 2012-10-31 19:34:53 -04:00
Jason Perkins
837b3afbeb Improve stack traces from test failures 2012-10-31 19:34:04 -04:00
Jason Perkins
fb5aaf860c Initial connection of config sets to the public configuration API 2012-10-31 15:46:28 -04:00
Jason Perkins
bbc1ae59ad Add new API namespace() to set the root namespace of a C# project, independent of the project name 2012-10-26 16:58:46 -04: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
8a6bb2c837 Add stack traces to errors in failing tests 2012-10-24 11:31:30 -04:00
Jason Perkins
0e8915ec1d Fix bug in new criteria matcher 2012-10-23 18:15:07 -04:00
Jason Perkins
09334b4b1c Files marked as Content now are properly marked for copying to the output directory 2012-10-23 17:12:25 -04:00
Jason Perkins
355844ca42 Merge with Premake-dev 2012-10-23 15:43:07 -04:00
Jason Perkins
91ba9c899f Initial work on an expanded configuration API; added configset, criteria, and context objects, initial usage for target naming parameters 2012-10-19 18:53:03 -04:00
Jason Perkins
752adb830b Patch 3466877: Removed -flat_namespace from Mac OS X flags (Konstantin Tokarev) 2012-10-18 17:58:41 -04:00
Jason Perkins
279caeac82 Improved error message for nil table comparison in testing framework 2012-10-11 10:59:15 -04:00
Jason Perkins
d27fc9a3a8 Fixed single-star matches for file configuration blocks; *.c now matches file in same folder as config script 2012-10-11 10:59:05 -04:00
Jason Perkins
bece5fb35b Port build action support to VS C# projects 2012-10-10 11:09:51 -04:00
Jason Perkins
12687e877e Added sibling project linking to C# makefiles 2012-10-08 18:31:12 -04:00
Jason Perkins
1659d68e1d Build and link target info now returned absolute to avoid path token expansion side-effects on relative paths 2012-10-08 11:50:42 -04:00
Jason Perkins
42f713857a Correctly handle tokens which expand to absolute paths within a path field 2012-10-08 11:06:37 -04:00
Jason Perkins
37ae88092f Patch 3367642: Add support for targetextension property to Xcode 2012-10-04 17:41:34 -04:00
Jason Perkins
a91b2823cd Iniital objdir support for VS C# projects 2012-10-02 12:57:10 -04:00
Jason Perkins
27493cd10c Merged makefile target vars generation; added missing tool name accessor to snc and ow interfaces 2012-09-28 10:35:13 -04:00
Jason Perkins
e65962166e Patch 3485071: Fixed _PREMAKE_COMMAND fallback when premake4 is not in PATH (Konstantin Tokarev) 2012-09-27 17:07:32 -04:00
Jason Perkins
e3947d6535 Added per-config tool selection to C# makefiles; cleaned up tool selection for C++ makefiles 2012-09-27 12:18:03 -04:00
Jason Perkins
1207bbd3ac Ported C# project and assembly reference handling 2012-09-27 10:15:27 -04:00
Jason Perkins
cf3d1f5f6f Merge with premake-dev 2012-09-25 10:27:10 -04:00
Jason Perkins
a4d67cea10 Fixed handling of architectures, including .NET "Any CPU", in VS 2005+ solutions 2012-09-25 10:03:21 -04:00
Jason Perkins
1bdf2f2e31 Improved handling of architecture and .NET projects in VS solution configurations 2012-09-24 11:16:27 -04:00
Jason Perkins
72d4331f65 Fixed handling of .NET configurations in VS2005+ solution platforms block 2012-09-20 18:07:19 -04:00
Jason Perkins
891a1dbcd6 Fixed handling of exact path matches in vpath building 2012-09-18 11:24:18 -04:00
Jason Perkins
f7cb37fc3c Pull 1: Fixed path to Info.plist in Xcode projects (Adrien Anselme) 2012-09-13 16:46:05 -04:00
Jason Perkins
37cfaf0666 Fixed a (stupid) typo in makefile include dirs list (h/t gogoprog) 2012-09-13 16:36:53 -04:00
Jason Perkins
99aee5ac1f Patch 3476176: Fix dependencies of precompiled header in makefile (Konstantin Tokarev) 2012-09-05 18:37:53 -04:00
Jason Perkins
7a65362e40 Added tool interface for MSC command line 2012-08-18 16:33:37 -04:00
Jason Perkins
dc7d776df0 VS2010 now explicitly links all sibling projects for GCC builds (i.e. PS3) 2012-08-09 17:21:29 -04:00
Jason Perkins
dc82f87bd2 Port simple *.cs file handling 2012-08-07 17:03:23 -04:00
Jason Perkins
e6a30c7ee5 Turn off dependency linking in Visual Studio; link all sibling libraries explicitly 2012-08-01 15:28:21 -04:00
xpol
46fe87e6e3 fix the duplicated test name. 2012-07-30 20:52:35 +08:00
xpol
3186004412 Support 'NoWarnings' flags for gcc. 2012-07-30 19:12:01 +08:00
Jason Perkins
f2063245f8 Added configuration map to solution makefiles 2012-07-24 16:54:11 -04:00
Jason Perkins
00d7bfc0da Made build and link targets available for token expansion 2012-07-23 17:21:06 -04:00
Jason Perkins
e96383c3ae Fixed expansion of solution-level tokens 2012-07-18 13:42:39 -04:00
Jason Perkins
3c8eae761a Make file name configuration tests case-insensitive 2012-07-16 15:06:23 -04:00
Jason Perkins
a05fafca93 Prevent "not X" terms from matching file names when building file configurations; object fields are not nil if not set (instead of empty table) 2012-07-15 15:46:22 -04:00
Jason Perkins
0ff8a15947 Break link between target and imp lib extension; setting a custom target extension will no longer change the imp lib extension 2012-07-11 15:53:21 -04:00
Jason Perkins
55e952d7f4 Begin porting C# projects to new APIs 2012-07-10 16:44:44 -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
fc2af5a98a Ported everything except virtual paths to new api.register() definition system 2012-07-05 18:33:40 -04:00
Jason Perkins
be819ed338 Fix file exclusions for Gmake target 2012-07-04 12:52:25 -04:00
Jason Perkins
2386e328b0 Merge mopey's VS2012 support 2012-07-03 13:48:57 -04:00
Jason Perkins
f349259fa0 Remove…() now implicitly creates a new configuration block, so it will be applied in same context as it appears in the script 2012-06-30 14:33:28 -04:00
Jason Perkins
2d5d3a33da Exclude external project references from dependency path lists since actual target isn't known 2012-06-30 08:25:30 -04:00
Jason Perkins
2dd8552258 Initial support for custom build rules in makefiles 2012-06-29 09:05:20 -04:00
Jason Perkins
6df59080eb Fixed a couple of unit tests that were failing on Windows 2012-06-28 15:48:05 -04:00
Jason Perkins
1119afdc08 Make GCC include dir flags project relative 2012-06-28 14:17:19 -04:00
Jason Perkins
67ba45c1c3 Make GMake target rules configuration dependent 2012-06-22 17:15:17 -04:00
Jason Perkins
6928b3c7bb Ported GMake Windows resource file handling, with per-configuration support 2012-06-22 09:27:03 -04:00
Jason Perkins
4b6daf8424 Make baked cfg.objdir absolute, to be consistent with other path fields 2012-06-20 18:16:46 -04:00
Jason Perkins
6ad4ec1506 Allow GCC to provide both system and architecture specific flags (instead of one or the other) 2012-06-20 16:15:45 -04:00
Jason Perkins
770dcdac48 Convert path tokens (i.e. targetdir) to project relative during expansion 2012-06-20 14:10:23 -04:00
Jason Perkins
808aa41177 Bug 1674173: Allow source files to have the same name 2012-06-19 15:58:16 -04:00
Jason Perkins
759c169b94 Port GMake file object lists, start work on per-configuration file lists 2012-06-15 18:42:10 -04:00
Jason Perkins
56f6fe1039 Ported GMake tests to new APIs 2012-06-14 16:30:48 -04:00
Jason Perkins
0550a3fa0f Ported GMake system-specific tool configurations 2012-06-14 15:55:46 -04:00
Jason Perkins
3153c7578f Ported make settings to new APIs 2012-06-13 18:29:51 -04:00
Jason Perkins
8d78b6ef68 Added test for libdirs fix 2012-06-13 17:18:27 -04:00
Jason Perkins
da4dbbc9de Ported GMake link step to new APIs 2012-06-13 15:21:22 -04:00
Jason Perkins
b9c09f6dd3 Added project references to VC 2008 to fix intermittent build failures 2012-06-12 18:16:14 -04:00
Jason Perkins
e45a6efbd4 Ported GMake PCH rules 2012-06-12 15:57:45 -04:00
Jason Perkins
e15d115bbd Fix a bug in configuration map pattern matching 2012-06-11 19:11:21 -04:00
Jason Perkins
019eb6eb39 Minimal changes for VS2012 support, from mopey's pull request 2012-06-08 15:07:49 -04:00
Jason Perkins
c1a793ae65 More changes to match VC2008 project defaults; avoid unnecessary changesets 2012-05-28 18:39:38 -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
ef4e929f60 Fix architecture mismatch in VS2010 project configurations element 2012-05-23 14:28:14 -04:00
Jason Perkins
4d1ad673fd Apply removes first instead of last, to give projects a way to clear the slate of solution level settings 2012-05-22 16:24:53 -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
bf65487655 More progress on nextgen GMake action 2012-05-17 20:41:28 -04:00
Jason Perkins
9659541013 Write all config/architecture pairs into VS2010 project configurations element to avoid missing configurations 2012-05-15 19:06:03 -04:00
Jason Perkins
cac52ce5d6 Tweaks to better match the default VS2008 project layout, avoid modifications on project save 2012-05-10 17:52:28 -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
73146fa066 Disregard project configuration lists when iterating solution configurations 2012-05-08 14:09:07 -04:00
Jason Perkins
06ec00f1f4 Ported default config and help rule to new GMake action 2012-05-04 16:38:21 -04:00
Jason Perkins
7b14efeba7 Removed deprecated config.getuniqueobjdirs(); object directories are now part of up-front bake process 2012-05-01 17:04:26 -04:00
Jason Perkins
aded68ba8a Baking changes to support tokens in object directories 2012-04-26 09:26:44 -04:00
Jason Perkins
7675e057d2 Deep copy all object values, to allow unique per-target token expansions 2012-04-26 07:44:25 -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
b44817ebd7 Solution.bake() now returns a temporary result; does not overwrite original solution object 2012-04-24 16:57:02 -04:00
Jason Perkins
15662f30c9 oven.bake() now takes explicit basis object, no longer tries to set parent objects automatically 2012-04-24 16:36:52 -04:00
Jason Perkins
6bdcb86ece Can now expand cfg.objdir, file.basedir and file.path tokens 2012-04-23 18:18:31 -04:00
Jason Perkins
671fd97864 Ported most list fields to new register() API 2012-04-22 14:12:33 -04:00
Jason Perkins
3ffbbff588 Patch 3353875: Allow running test script from other directories than "tests" 2012-04-22 13:03:43 -04:00
Jason Perkins
66585d36ae Fixed a project caching issue; performance is improved 2012-04-20 18:15:32 -04:00
Jason Perkins
0bbb323d0c Added support for basic token expansion; more work still needed 2012-04-20 16:08:42 -04:00
Jason Perkins
c8d493e569 Allow test or suite to be specified on command line 2012-04-18 17:12:56 -04:00
Jason Perkins
b930597f58 Enable token expansions on simple string fields 2012-04-18 15:15:56 -04:00
Jason Perkins
2c339eacfa Enable running individual tests or suites 2012-04-18 15:14:31 -04:00
Jason Perkins
fb833f3122 Ported string fields to new register()-based API definitions 2012-04-17 14:33:47 -04:00
Jason Perkins
fad379b388 Merged in xpol/premake-dev-debugcommand (debugcommand for Visual Studio) 2012-04-17 14:14:58 -04:00
Jason Perkins
8f60b15942 Ported string fields to new register()-based API definitions 2012-04-16 19:31:08 -04:00
Jason Perkins
d12a97465b Cleaned up test suite for new oven 2012-04-16 18:54:01 -04:00
Jason Perkins
1e29737cd7 Merged in xpol/premake-dev (Add NoWarnings flags) 2012-04-16 18:17:49 -04:00
xpol
d7d6857bf2 Add test for debugcommand.
This file contains MIXed line end styles.
It is suggested to convert to a single line end style.
2012-04-16 10:19:55 +08:00
xpol
ef3a891d83 add debugcommand for vs*. 2012-04-16 10:09:35 +08: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
xpol
ce1ae72f11 Add tests for the warnings flags. 2012-04-11 11:29:16 +08:00
Jason Perkins
8e326ff6f1 Fixes for key-array and the new api.register() path 2012-04-10 17:21:37 -04:00
xpol
bd16eaedeb Add NoWarnings flags for Visual Studo to disable warnings (Very usefull when managing 3rd libraries). 2012-04-10 18:03:31 +08:00
Jason Perkins
86984a87de Added import library support to Visual Studio 2010 C++ projects 2012-04-09 14:51:08 -04:00
Jason Perkins
a68aa47e5f Added new array API value type, and started support for new key-value handling 2012-04-05 20:02:53 -04:00
Jason Perkins
22266a995d Start of API system overhaul, in support of configuration mapping 2012-04-04 16:21:22 -04:00
Jason Perkins
38ae459803 Fixes for VC2010 custom build rule handling 2012-03-29 20:01:02 -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
07f000ecda Folders containing a single sub-folder are now trimmed from top of the source tree 2012-03-27 18:33:15 -04:00
Jason Perkins
ef032d52cc Handle case where a library is specified with a system extension and end quote 2012-03-22 19:37:51 -04:00
Jason Perkins
f8fa020d64 Only add extension to libraries if it doesn't already exist; handle ending quote, if present, when appending extension 2012-03-22 19:30:34 -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
a2aa2f83e1 path.isabsolute() now recognizes quoted shell variables 2012-03-19 18:57:45 -04:00
Jason Perkins
8436afcd24 Added VC2010 support for custom build rules 2012-03-19 18:47:34 -04:00
Jason Perkins
ff7065a239 Patch #3505901: Make VC2010 PCH behavior match VC200x 2012-03-18 17:53:19 -04:00
Jason Perkins
d90942b318 Implemented basic custom build rules for VC2008 2012-03-15 20:02:46 -04:00
Jason Perkins
f1f6304e9b Added support for file configurations to oven; full file configurations now available to actions 2012-03-14 18:20:01 -04:00
Jason Perkins
399739d012 Added buildrule() to the API 2012-03-12 19:51:10 -04:00
Jason Perkins
198a9896fb Configurations that have been excluded from all projects are no longer listed in the solution 2012-03-05 17:45:42 -05:00
Jason Perkins
36978f5063 GCC and SNC can now link object files directly 2012-02-29 16:05:45 -05:00
Jason Perkins
f4a10dec03 Fixed VC2010 linking to PS3 libraries 2012-02-28 18:09:12 -05:00
Jason Perkins
adb36bf3e1 Fixed SNC linking to static library projects 2012-02-28 17:14:28 -05:00
Jason Perkins
5761e86cb6 Ported GCC and SNC linker flag generation to new tool APIs 2012-02-28 16:15:46 -05:00
Jason Perkins
cd6852b896 Target base name now includes prefix; replaced magical "ng" suffix with explicit flag to make migration easier 2012-02-24 16:22:35 -05:00
Jason Perkins
91e69b35e1 Fixed handling of targetextension (was ignored) 2012-02-23 15:12:50 -05:00
Jason Perkins
79e84920bd VC200x resource compiler include paths are now project relative 2012-02-22 16:20:21 -05:00
Jason Perkins
e0a6ca727c Configurations and platforms may now be specified per-project 2012-02-19 12:31:20 -05:00
Jason Perkins
458dcb8cbb Added toolset() API to enable per-configuration tool selection 2012-02-16 19:51:14 -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
7350cc73dd Add per-configuration file lists for VC2010 2012-02-14 16:39:51 -05:00
Jason Perkins
dac18c990b Added per-configuration file lists for VC2008 2012-02-14 16:16:58 -05:00
Jason Perkins
9d8958a923 Standardized handling of file paths in API setters and removers 2012-02-13 18:50:38 -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
309a76cb8a Improved extensibility of VC2010 generator 2012-02-12 16:08:27 -05:00
Jason Perkins
f625e01848 Added VC2008 external linker test 2012-02-11 13:49:58 -05:00
Jason Perkins
b88bf60036 Improved the extensibility of the VC2008 generator 2012-02-11 11:29:45 -05:00
Jason Perkins
fe00186ca3 Made VC200x compiler block easier for add-ons to extend with external toolsets 2012-02-11 08:18:19 -05:00
Jason Perkins
7c2736369f Xbox360 fixes for VS2010 2012-02-10 14:53:43 -05:00
Jason Perkins
bbb70b9f18 Avoid writing empty AdditionalOptions to PS3 compiler blocks 2012-02-06 17:39:32 -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
7e5f16312a Completed VS2010 port to new platforms API 2012-02-01 19:05:13 -05:00
Jason Perkins
1fdc480339 Ported VC2010 project references 2012-01-31 19:54:33 -05:00
Jason Perkins
3230c3ea69 Ported VC2010 files 2012-01-31 19:31:50 -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
afa5c067fa Added missing _ACTION on VC2010 tests, to pass on non-Windows platforms 2012-01-28 10:42:41 -05:00
Jason Perkins
8c4626b654 Ported VC2010 pre- and post-build events; more tests 2012-01-27 17:52:46 -05:00
Jason Perkins
69a28a1369 Ported VC2010 resource compiler and linker setting blocks 2012-01-27 16:29:41 -05:00
Jason Perkins
7d7d95e8f2 Ported VC2010 resource compiler block 2012-01-27 13:37:24 -05:00
Jason Perkins
a01df4bc83 Ported Visual Studio 2010 to new platforms, up to the compiler settings block 2012-01-26 20:40:39 -05:00
Jason Perkins
0d46fe4135 Merge with premake-dev 2012-01-25 16:10:59 -05:00
Jason Perkins
1e97713a26 Default path.translate() to Windows-style backslashes 2012-01-25 15:58:21 -05:00
Jason Perkins
5d5e199efe Ported VC200x C++ .user files to new platforms API 2012-01-24 19:27:18 -05:00
Jason Perkins
7f83f6d506 Fix some minor issues with release build 2012-01-23 11:47:48 -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
Jason Perkins
e4d23a49bf Patch 3111264: Allow path.join() to accept any number of args 2012-01-19 15:28:24 -05:00
Jason Perkins
12b9c326d1 Ported remaining Visual Studio 2008 tool elements: MIDL, resources, Xbox 360 tools 2012-01-18 17:42:34 -05:00
Jason Perkins
761673005b Added some sanity tests for config linker information, to get things started 2012-01-18 16:26:05 -05:00
Jason Perkins
3f0f15942a Ported VCCompilerTool, VCLinkerTool, VCManifestTool and supporting function and tests to new platforms API 2012-01-17 19:04:46 -05:00
Jason Perkins
63a568dd3f Began implementation of Vc200x next-gen projects: header and configuration blocks 2012-01-13 17:19:46 -05:00
Jason Perkins
665ef8b86a Added new output function _x(), XML escapes all arguments before printing 2012-01-12 18:27:30 -05:00
Jason Perkins
8c9c451bdb Added new action "vs2008ng", implemented solutions using new platforms API 2012-01-12 16:59:15 -05:00
Jason Perkins
fa4813cf3b Port unique objects directory logic to the new platforms API 2012-01-11 16:30:59 -05:00
Jason Perkins
b1df4ff7ae Bug 3413866: Incorrect VS200x .csproj relative source paths 2012-01-09 15:35:28 -05:00
Jason Perkins
9749188cc4 Ported build target info logic to new platforms; added system() to API 2012-01-06 17:08:24 -05:00
Jason Perkins
2baa0ce3ad Ported VS2008 .vcproj Platforms and Configuration blocks to new platforms API 2012-01-04 17:16:06 -05:00
Jason Perkins
8f8a1a989f Implemented new ProjectConfigurationPlatforms for VS2008, supporting the new platforms API 2012-01-04 16:15:36 -05:00
Jason Perkins
5533461428 Implemented new SolutionConfigurationPlatforms handler for VS2008, supporting improved configurations 2012-01-03 17:08:22 -05:00
Jason Perkins
81ea63c877 Implement project.eachconfig(), to iterate through the new build configuration/platform pairs 2011-12-28 16:44:09 -05:00
Jason Perkins
12b033afc0 Merge with premake-dev 2011-12-21 16:19:54 -05:00
Jason Perkins
c18f49192f Patch 3463020: Add windres environment variable for makefiles (icebreaker) 2011-12-21 15:52:26 -05:00
Jason Perkins
522907cd4b Started a new, simpler baking API to support the platforms overhaul 2011-12-20 19:03:45 -05:00
Jason Perkins
2322e56d36 Bug 3410213: regression in xcode generation in 4.4 beta3 2011-12-20 14:59:26 -05:00
Jason Perkins
eeff5330eb Fix to previous commit; adds back missing platform identifier to VS2010 configs (h/t Richard Sim) 2011-12-15 14:14:26 -05:00
Jason Perkins
94e29b7cf3 Merge with premake-dev 2011-12-13 16:14:14 -05:00
Jason Perkins
5b6f8f6f36 Patch 3451212: Fix Visual Studio MFC with StaticRuntime 2011-12-13 16:10:22 -05:00
Jason Perkins
acebe2cc9c Patch 3430158: Reorder LINKCMD for Gmake (rjmyst3) 2011-12-08 16:25:50 -05:00
Jason Perkins
458d62ca36 Merge with Premake-dev 2011-12-07 16:10:27 -05:00
Jason Perkins
c8e3c0df6a Improve include() function: only include files once, and allow including specific files instead of just directories 2011-12-04 14:47:59 -05:00
Jason Perkins
b5d7bba342 Added debugformat, with C7 support for Visual Studio 2011-11-19 16:50:50 -05:00
Jason Perkins
4bf628ac12 Fixed Xcode unit tests on non-Mac OSes 2011-11-19 12:10:58 -05:00
Jason Perkins
07853b1e34 Patch 3451928: VS2008 trying to build *.h files in C projects 2011-12-06 15:14:43 -05:00