-
-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for idirafter flag in GCC/Clang
- Loading branch information
1 parent
d6caf5f
commit 1e65164
Showing
18 changed files
with
219 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
-- | ||
-- test_gmake2_linking.lua | ||
-- Validate the link step generation for makefiles. | ||
-- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project | ||
-- | ||
|
||
local suite = test.declare("gmake2_includes") | ||
|
||
local p = premake | ||
local gmake2 = p.modules.gmake2 | ||
|
||
local project = p.project | ||
|
||
|
||
-- | ||
-- Setup and teardown | ||
-- | ||
|
||
local wks, prj | ||
|
||
function suite.setup() | ||
wks, prj = test.createWorkspace() | ||
end | ||
|
||
local function prepare(calls) | ||
local cfg = test.getconfig(prj, "Debug") | ||
local toolset = p.tools.gcc | ||
gmake2.cpp.includes(cfg, toolset) | ||
end | ||
|
||
|
||
-- | ||
-- Check for idirafter flags | ||
-- | ||
|
||
function suite.includeDirsAfter() | ||
includedirsafter { 'DirAfter' } | ||
prepare() | ||
test.capture [[ | ||
INCLUDES += -idirafter DirAfter | ||
]] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Specifies the include directories to parse last per the toolset ordering and marks the directory as an external include directory. If the exporter or toolset | ||
does not support include directory ordering, these directories are added to the external include directory path. | ||
|
||
```lua | ||
includedirsafter { "paths" } | ||
``` | ||
|
||
### Parameters ### | ||
|
||
`paths` specifies a list of include file search directories. Paths should be specified relative to the currently running script file. Search order is evaluated from | ||
right to left. | ||
|
||
### Applies To ### | ||
|
||
Project configurations. GCC and Clang are the only toolsets supporting the ordering functionality in the gmake, gmake2 and Codelite exporters. All exporters and toolsets | ||
support appending the directories to the external include directories. | ||
|
||
### Availability ### | ||
|
||
Premake 5.0 or later. | ||
|
||
### Examples ### | ||
|
||
Define two include file search paths. | ||
|
||
```lua | ||
includedirsafter { "../lua/include", "../zlib" } | ||
``` | ||
|
||
You can also use wildcards to match multiple directories. The * will match against a single directory, ** will recurse into subdirectories as well. | ||
|
||
```lua | ||
includedirsafter { "../includes/**" } | ||
``` | ||
|
||
### See Also ### | ||
|
||
* [includedirs](includedirs.md) | ||
* [externalincludedirs](externalincludedirs.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters