source: trunk/tests/render_test/premake4.lua @ 61

Last change on this file since 61 was 61, checked in by melon, 12 years ago

Modified LUA script to support Linux

Modified types.hh, still the header gives errors

Modified function in object.hh. By standarts, the typename is not needed

File size: 943 bytes
Line 
1if _ACTION == nil then
2        print "Error! You must specify target build"
3        print "Example: ./premake4 gmake"
4        print "    This will create makefiles for Linux"
5        print ""
6        print "Aborting!"
7        print ""
8        return
9end
10
11solution "nv_render_test"
12        configurations { "debug", "release" }
13
14        language "C++"
15        flags { "ExtraWarnings", "NoPCH" }
16
17        -- For starters, check the target build.
18        -- If this is a gmake build we must add these
19        -- flags to enable C++11 support.
20        if _ACTION == "gmake" then
21                buildoptions "-std=c++11"
22        end
23
24        configuration "debug"
25                defines { "DEBUG" }
26                flags { "Symbols", "StaticRuntime" }
27                objdir (_ACTION.."/debug")
28
29        configuration "release"
30                defines { "NDEBUG" }
31                flags { "Optimize", "StaticRuntime" }
32                objdir (_ACTION.."/release")
33
34        dofile("render_test.lua")
35        dofile("../../nv.lua")
36
37if _ACTION == "clean" then
38        for action in premake.action.each() do
39                os.rmdir(action.trigger)
40        end
41end
Note: See TracBrowser for help on using the repository browser.