Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstarkos <none@none>2010-01-01 01:46:45 +0300
committerstarkos <none@none>2010-01-01 01:46:45 +0300
commitfc97fc34d1b09c1cf1e69b7d1b02b68803e8a971 (patch)
treee6b344abbc5351561949522895e3d9b5f87f8454 /tests/test_gcc.lua
parent38a75ffbebba2fe623bc366c2e332d8c5fe612f2 (diff)
Support framework linking in makefiles
Diffstat (limited to 'tests/test_gcc.lua')
-rw-r--r--tests/test_gcc.lua22
1 files changed, 17 insertions, 5 deletions
diff --git a/tests/test_gcc.lua b/tests/test_gcc.lua
index f12da54..9334ef3 100644
--- a/tests/test_gcc.lua
+++ b/tests/test_gcc.lua
@@ -5,9 +5,10 @@
--
T.gcc = { }
+ local suite = T.gcc
local cfg
- function T.gcc.setup()
+ function suite.setup()
cfg = { }
cfg.basedir = "."
cfg.location = "."
@@ -21,28 +22,39 @@
cfg.linktarget = { fullpath="libMyProject.a" }
end
- function T.gcc.cflags_SharedLib_Windows()
+
+ function suite.cflags_SharedLib_Windows()
cfg.kind = "SharedLib"
cfg.system = "windows"
local r = premake.gcc.getcflags(cfg)
test.isequal('', table.concat(r,"|"))
end
- function T.gcc.ldflags_SharedLib_Windows()
+
+ function suite.ldflags_SharedLib_Windows()
cfg.kind = "SharedLib"
cfg.system = "windows"
local r = premake.gcc.getldflags(cfg)
test.isequal('-s|-shared|-Wl,--out-implib="libMyProject.a"', table.concat(r,"|"))
end
- function T.gcc.cflags_OnFpFast()
+
+ function suite.cflags_OnFpFast()
cfg.flags = { "FloatFast" }
local r = premake.gcc.getcflags(cfg)
test.isequal('-ffast-math', table.concat(r,"|"))
end
- function T.gcc.cflags_OnFpStrict()
+
+ function suite.cflags_OnFpStrict()
cfg.flags = { "FloatStrict" }
local r = premake.gcc.getcflags(cfg)
test.isequal('-ffloat-store', table.concat(r,"|"))
end
+
+
+ function suite.linkflags_OnFrameworks()
+ cfg.links = { "Cocoa.framework" }
+ local r = premake.gcc.getlinkflags(cfg)
+ test.isequal('-framework Cocoa', table.concat(r,"|"))
+ end