diff options
author | Jason Perkins <starkos@industriousone.com> | 2011-09-16 00:45:48 +0400 |
---|---|---|
committer | Jason Perkins <starkos@industriousone.com> | 2011-09-16 00:45:48 +0400 |
commit | 611014c522a72ea942f5e7fc2097f48ed8e7476d (patch) | |
tree | c416c4f8aa3172c058157393575e2c14544cb14a /src/tools | |
parent | 363a445f72d639db58f39d021b2ec4e4af8e27c4 (diff) |
Patch 3021550: Add Wii homebrew platform (Pathogen David)
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/gcc.lua | 24 |
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 |