Changeset 120 for trunk/premake4.lua
- Timestamp:
- 06/15/13 02:05:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/premake4.lua
r17 r120 1 -- Error handling if user didn't provide any action/target2 -- for the build3 if _ACTION == nil then4 print "Error! You must specify target build"5 print "Example: ./premake4 gmake"6 print " This will create makefiles for Linux"7 print ""8 print "Aborting!"9 print ""10 return11 end12 13 1 solution "nv" 14 2 configurations { "debug", "release" } 15 16 -- For starters, check the target build.17 -- If this is a gmake build we must add these18 -- flags to enable C++11 support.19 if _ACTION == "gmake" then20 buildoptions "-std=c++11"21 end22 23 3 targetdir "bin" 24 4 flags { "ExtraWarnings", "NoPCH" } … … 29 9 flags { "Symbols" } 30 10 targetdir "bin" 31 objdir (_ACTION .."/debug")11 objdir (_ACTION or "".."/debug") 32 12 33 13 configuration "release" … … 35 15 flags { "Optimize" } 36 16 targetdir "bin" 37 objdir (_ACTION .."/release")17 objdir (_ACTION or "".."/release") 38 18 39 19 dofile("nv.lua") … … 46 26 end 47 27 } 48 49 if _ACTION == "clean" then50 for action in premake.action.each() do51 os.rmdir(action.trigger)52 end53 end54
Note: See TracChangeset
for help on using the changeset viewer.