Changeset 3238

Show
Ignore:
Timestamp:
01/26/10 14:32:32 (6 weeks ago)
Author:
ghoulsblade
Message:
added environment variable for additional compile flags in premake.lua : IRIS_COMPILE_FLAGS
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/premake.lua

    r3235 r3238  
    2323gbUseSoundOpenAl = true 
    2424gbUseSoundFmod = true 
    25                  
     25 
     26gAdditionalCompileFlags = os.getenv("IRIS_COMPILE_FLAGS") -- environment variable 
     27 
     28function MyModPackage(package)  
     29        package.buildoptions = package.buildoptions or {} 
     30        if (gAdditionalCompileFlags) then table.insert(package.buildoptions,gAdditionalCompileFlags) end 
     31end 
     32 
    2633-- ------------------------------------------------------------------ 
    2734-- ------------------------------------------------------------------ 
     
    204211          matchfiles(gLugreOisDir.."/src/"..gOisPlatform.."/*.h", gLugreOisDir.."/src/"..gOisPlatform.."/*.cpp"), 
    205212        } 
     213        MyModPackage(package) 
    206214else 
    207215        print("OIS platform: system wide installed") 
     
    228236        table.insert(package.includepaths, gLugreDir.."/lib/"..v.."/include/")  
    229237        AddLugreLibDeps(package) 
     238        MyModPackage(package) 
    230239end 
    231240 
     
    246255} 
    247256AddLugreDeps(package) 
     257MyModPackage(package) 
    248258 
    249259-- --------------------------------------------- 
     
    277287--  "dont_build_this.c" 
    278288} 
     289MyModPackage(package)