This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make GMake target rules configuration dependent
- Loading branch information
Showing
6 changed files
with
135 additions
and
58 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,59 @@ | |||
-- | |||
-- tests/actions/make/cpp/test_target_rules.lua | |||
-- Validate the makefile target building rules. | |||
-- Copyright (c) 2009-2012 Jason Perkins and the Premake project | |||
-- | |||
|
|||
T.make_cpp_target_rules = { } | |||
local suite = T.make_cpp_target_rules | |||
local cpp = premake.make.cpp | |||
local project = premake5.project | |||
|
|||
|
|||
-- | |||
-- Setup | |||
-- | |||
|
|||
local sln, prj | |||
|
|||
function suite.setup() | |||
sln, prj = test.createsolution() | |||
end | |||
|
|||
local function prepare() | |||
local cfg = project.getconfig(prj, "Debug") | |||
cpp.targetrules(cfg) | |||
end | |||
|
|||
|
|||
-- | |||
-- Check the default, normal format of the rules. | |||
-- | |||
|
|||
function suite.defaultRules() | |||
prepare() | |||
test.capture [[ | |||
all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET) | |||
@: | |||
]] | |||
end | |||
|
|||
|
|||
-- | |||
-- Check rules for an OS X Cocoa application. | |||
-- | |||
|
|||
function suite.osxWindowedAppRules() | |||
system "MacOSX" | |||
kind "WindowedApp" | |||
prepare() | |||
test.capture [[ | |||
all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET) $(dir $(TARGETDIR))PkgInfo $(dir $(TARGETDIR))Info.plist | |||
@: | |||
$(dir $(TARGETDIR))PkgInfo: | |||
$(dir $(TARGETDIR))Info.plist: | |||
]] | |||
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