diff options
Diffstat (limited to 'tests/actions/make/test_wiidev.lua')
-rw-r--r-- | tests/actions/make/test_wiidev.lua | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/tests/actions/make/test_wiidev.lua b/tests/actions/make/test_wiidev.lua index 4561b0c..f3787a0 100644 --- a/tests/actions/make/test_wiidev.lua +++ b/tests/actions/make/test_wiidev.lua @@ -3,23 +3,23 @@ -- Tests for Wii homebrew support in makefiles. -- Copyright (c) 2011 Jason Perkins and the Premake project -- - + T.make_wiidev = { } local suite = T.make_wiidev local make = premake.make local cpp = premake.make.cpp - + local sln, prj, cfg - + function suite.setup() _ACTION = "gmake" sln = solution("MySolution") configurations { "Debug", "Release" } - platforms { "WiiDev" } - + platforms { "WiiDev" } + prj = project("MyProject") - + premake.bake.buildconfigs() cfg = premake.getconfig(prj, "Debug", "WiiDev") end @@ -33,10 +33,16 @@ cpp.flags(cfg, premake.gcc) test.capture [[ ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -I$(LIBOGC_INC) $(MACHDEP) -MP $(DEFINES) $(INCLUDES) - ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) - ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) + ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) + ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) + ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) + ]] + end + + function suite.writesCorrectLinkFlags() + cpp.linker(cfg, premake.gcc) + test.capture [[ ALL_LDFLAGS += $(LDFLAGS) -s -L$(LIBOGC_LIB) $(MACHDEP) - RESFLAGS += $(DEFINES) $(INCLUDES) ]] end |