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
path: root/src/tools
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2011-09-16 00:45:48 +0400
committerJason Perkins <starkos@industriousone.com>2011-09-16 00:45:48 +0400
commit611014c522a72ea942f5e7fc2097f48ed8e7476d (patch)
treec416c4f8aa3172c058157393575e2c14544cb14a /src/tools
parent363a445f72d639db58f39d021b2ec4e4af8e27c4 (diff)
Patch 3021550: Add Wii homebrew platform (Pathogen David)
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/gcc.lua24
1 files changed, 21 insertions, 3 deletions
diff --git a/src/tools/gcc.lua b/src/tools/gcc.lua
index caedd52..1e8ed31 100644
--- a/src/tools/gcc.lua
+++ b/src/tools/gcc.lua
@@ -79,7 +79,16 @@
cxx = "ppu-lv2-g++",
ar = "ppu-lv2-ar",
cppflags = "-MMD",
- }
+ },
+ WiiDev = {
+ cppflags = "-MMD -MP -I$(LIBOGC_INC) $(MACHDEP)",
+ ldflags = "-L$(LIBOGC_LIB) $(MACHDEP)",
+ cfgsettings = [[
+ ifeq ($(strip $(DEVKITPPC)),)
+ $(error "DEVKITPPC environment variable is not set")'
+ endif
+ include $(DEVKITPPC)/wii_rules']],
+ },
}
local platforms = premake.gcc.platforms
@@ -118,9 +127,8 @@
local result = table.translate(cfg.flags, cxxflags)
return result
end
-
-
+
--
-- Returns a list of linker flags, based on the supplied configuration.
--
@@ -240,3 +248,13 @@
end
return result
end
+
+
+--
+-- Return platform specific project and configuration level
+-- makesettings blocks.
+--
+
+ function premake.gcc.getcfgsettings(cfg)
+ return platforms[cfg.platform].cfgsettings
+ end