Commit Graph

63 Commits

Author SHA1 Message Date
Nicholaus Clark
9e34852bd7 Added unit test, use p.esc 2022-05-16 07:12:26 -05:00
Nicholaus Clark
c36e48a10e Escape group names when creating rules 2022-05-09 21:00:08 -05:00
Nick Clark
5212cda66b Changed MMD to MD in gmake/gmake2 outputs for gcc/clang. 2022-04-08 07:56:46 -05:00
starkos
651617a40b Merge pull request #1754 from englercj/msvc-external-support
Improve external include & warning support
2022-01-04 09:24:47 -05:00
starkos
11da2f49f1 Fix make clean handling of generated files
Closes #1650.
2022-01-04 09:15:47 -05:00
Chad Engler
065b3acb2f
Improve external include & warning support 2022-01-03 08:31:44 -08:00
Jarod42
42d716b3ef Add "support" for kind "None" (as do nothing) for gmake/gmake2. 2021-11-18 16:06:37 +01:00
Jarod42
29fa743f19 Improve rule support:
- move rule code from gmake2.lua to rule.lua
- Add UTs
- Fix enum case
- uniformise code for list.
- Add support of rules for Codelite.
2021-10-28 14:46:10 +02:00
Renaud Guillard
1526363877 Add frameworkdirs support to gmake and gmake2 with gcc/clang toolsets on macOS systems
* Add new optional parameter to toolset.getincludedirs(dirs, sysdirs, frameworkdirs)
* Translate frameworkdirs to -F<path> build & linker flags
* Add tests

Co-authored-by: Joris Dauphin <Jarod42@users.noreply.github.com>
Co-authored-by: Samuel Surtees <samsinsane@users.noreply.github.com>
2021-09-08 11:08:36 +02:00
Joris Dauphin
ebbbb72ab7
Enable pchheader for Codelite. (#1627)
* Enable pchheader for Codelite.

* Factorize code.
2021-05-29 14:19:18 -04:00
Renaud Guillard
24b2b4abdd
Runpathdirs improvements (#1538)
* Add mode argument ot toolset.getrunpathdirs()

* Add config.getsiblingtargetdirs()

* Delegate automatic addition of sibling target dirs as run path search paths to actions

* Simplify gcc.getrunpathdirs()
* Restore previous behavior in gmake & gmake2 actions

* Add xcode.getToolSet()

Use clang as default, gcc on MacOS X 10.6 and lower

* runpathdirs support in xcode4 action

Translate runpathdirs to LD_RUNPATH_SEARCH_PATHS Xcode setting

Co-authored-by: Renaud Guillard <renaud@depinxi.be>
2021-04-19 10:58:36 -04:00
Sam Surtees
a4bba42013 Added support for Objective-C and Objective-C++ in xcode and gmake2
- Added unit tests for Objective-C and Objective-C++
2020-03-31 18:14:26 +10:00
Mikhael Danilov
7c0c02acfd Place all generated files in separate GENERATED list, so they all can be cleaned by clean target. 2020-03-17 22:21:13 +03:00
Sam Surtees
b976d2f178 Simplified unit test to resolve path issues 2019-11-07 00:53:52 +10:00
starkos
bffce3e4cb Fix failing gmake2 unit test 2019-10-21 21:27:55 -04:00
@starkos
448b5cb3ee
Merge pull request #1229 from LORgames/ssurtees/gmake2Fix
Generated makefiles no longer error when a configuration can be missing
2019-10-21 16:05:57 -04:00
Ben Ratzlaff
5142230999 Account for filename collisions on systems with case-insensitive file systems 2019-09-11 22:39:07 -07:00
Sam Surtees
8568b607ba Generated makefiles no longer error when a configuration can be missing 2019-01-21 01:46:44 +10:00
Samuel Surtees
1d469fc518
Merge pull request #1067 from ratzlaff/xcode_debugformat
Add 'Default', 'Dwarf' and 'SplitDwarf' arguments to 'debugformat'
2019-01-11 12:59:39 +10:00
Ben Ratzlaff
85ed6bbda1 Handle 'Full' and 'FastLink' arguments to 'symbols'. Add associated gmake and gmake2 tests 2018-11-17 18:45:08 -07:00
Ben Ratzlaff
da90c1ffd0 Add 'Default', 'Dwarf' and 'SplitDwarf' inputs to 'debugformat' 2018-11-17 18:45:08 -07:00
WorldofBay
de1398af25 Move rule property expansion into modules
Reuse code in gmake2 module
Adjust vs2010 test for fixed behaviour
Add vs2010 test for custom separator
2018-11-16 11:21:41 +01:00
Ben Ratzlaff
8d139aea31 Fix objname collisions 2018-11-09 23:08:27 -07:00
WorldofBay
8c5e4e18ad use ';' as default separator for vs 2018-10-18 11:59:00 +02:00
Manu Evans
05a58d8d3f Fix gmake multiple-output rule issue. 2018-07-17 16:30:03 -07:00
Thomas Desveaux
cf4161e78a gmake2: Remove makeVarName from local space to ease user override of perFileFlags 2018-06-18 16:57:40 +02:00
Thomas Desveaux
77f6a080cb gmake2: Fix perFileFlags generation for cpp + unit test 2018-06-18 16:55:26 +02:00
Samuel Surtees
f46a27ec6e
Merge pull request #1108 from Blizzard/gmake_fix
Fix gmake2
2018-06-05 20:26:08 +10:00
Sungun Park
9219bd6c6d Fix gmake2 (#169)
bindirs are added to make files for gmake2
2018-06-04 17:58:47 -07:00
thomas desveaux
7ba491cae6 gmake*: fix shell type identification 2018-06-03 16:47:13 +02:00
thomas desveaux
4250aa3928 gmake2: Add unit tests for PCH include 2018-06-01 01:42:02 +02:00
Thomas Desveaux
807f318c47 gmake2: Remove pch from FORCE_INCLUDE to allow NoPCH per-file 2018-05-30 17:52:36 +02:00
Samuel Surtees
3d522e9068
Merge pull request #1096 from tdesveauxPKFX/gmake2-pch-dependencies
gmake2: Fix dependency for pch
2018-05-29 11:16:24 +10:00
Ben Ratzlaff
be3742dd2a Get 'compileas' working when using a 'filter "files: ..."' scope. 2018-05-28 15:17:04 -07:00
Thomas Desveaux
d173b077bd gmake2: Fix dependency for pch. Changes in headers included in pch would not be properly detected. 2018-05-28 22:41:21 +02:00
Sam Surtees
138a443b3c Fixed issues with duplicate tests
- Test suite will now fail when test names are reused
- Fixed several unit tests that reused test names
2018-04-30 17:01:20 +02:00
thomas desveaux
04f22eead1 Gmake2: Clean Makefile tests 2018-04-02 21:18:40 +02:00
thomas desveaux
dbf36a5f97 Gmake2: Add tests for Makefile project kind 2018-04-02 21:15:24 +02:00
thomas desveaux
bc71ad0d9e Gmake2: Fix callArray calls 2018-04-02 20:25:57 +02:00
Manu Evans
1cd1f4df6c Update tests. 2018-03-21 16:45:36 -07:00
Manu Evans
ba96baa62c Attempt to fix the gmake dependency chain 2018-03-21 16:45:36 -07:00
Cat Stevens
b779f6f600 src/base and modules: change links to industriousone.com to working HTTPS github links 2017-12-19 13:52:30 -05:00
Manu Evans
02f5a75fc9
Merge pull request #959 from Blizzard/multiple-gmake2-fixes
Multiple gmake2 fixes
2017-11-30 15:58:22 -08:00
Tom van Dijck
366bb63a10 default toolset for linux/gmake is 'gcc'. 2017-11-30 09:34:27 -08:00
Tom van Dijck
431cba5c6a Gmake elseif (#161)
* gmake2 elseif pattern for configurations.
https://ghosthub.corp.blizzard.net/premake/premake-core/issues/131

* fix error message.

* don't output else if there is no if statements.
2017-11-30 09:33:55 -08:00
Tom van Dijck
0b4659cf1e makeUnique only for internal rules, not for all rules. 2017-11-30 09:33:42 -08:00
Tom van Dijck
6800af3342 fix buildoutput sequencing. 2017-11-30 09:33:31 -08:00
Tom van Dijck
c7f0080a80 fix gmake2 utility outputting an entire set of elements. 2017-11-30 09:14:37 -08:00
Tom van Dijck
1279e6baf6
Merge pull request #950 from LORgames/ssurtees/gmakeDefaultPlatform
Added defaultplatform support to gmake and gmake2 actions
2017-11-29 12:14:30 -08:00
Tom van Dijck
a3c80ae238
Merge pull request #939 from premake/resolve_rule_props
Resolve the rule properties for gmake (#162)
2017-11-29 12:12:27 -08:00