Changeset 120 for trunk/premake4.lua


Ignore:
Timestamp:
06/15/13 02:05:49 (12 years ago)
Author:
epyon
Message:
  • Nova now properly compiles and works under: mingw GCC 4.6 32-bit target mingw GCC 4.6 64-bit targte clang 3.2 32-bit target (64-bit clang doesn't work under windows)
  • warning removal will follow soon
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/premake4.lua

    r17 r120  
    1 -- Error handling if user didn't provide any action/target
    2 -- for the build
    3 if _ACTION == nil then
    4         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         return
    11 end
    12 
    131solution "nv"
    142        configurations { "debug", "release" }
    15 
    16         -- For starters, check the target build.
    17         -- If this is a gmake build we must add these
    18         -- flags to enable C++11 support.
    19         if _ACTION == "gmake" then
    20                 buildoptions "-std=c++11"
    21         end
    22 
    233        targetdir "bin"
    244        flags { "ExtraWarnings", "NoPCH" }
     
    299                flags { "Symbols" }
    3010                targetdir "bin"
    31                 objdir (_ACTION.."/debug")
     11                objdir (_ACTION or "".."/debug")
    3212
    3313        configuration "release"
     
    3515                flags { "Optimize" }
    3616                targetdir "bin"
    37                 objdir (_ACTION.."/release")
     17                objdir (_ACTION or "".."/release")
    3818
    3919        dofile("nv.lua")
     
    4626        end
    4727}
    48 
    49 if _ACTION == "clean" then
    50         for action in premake.action.each() do
    51                 os.rmdir(action.trigger)
    52         end
    53 end
    54 
Note: See TracChangeset for help on using the changeset viewer.