source: trunk/nv.lua @ 120

Last change on this file since 120 was 120, checked in by epyon, 12 years ago
  • 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 size: 761 bytes
RevLine 
[2]1project "nv"
2        location (_ACTION)
[120]3        language "C++"
[2]4        kind "StaticLib"
5        includedirs { "." }
6        files { "nv/**.hh", "nv/**.inl", "src/**.cc" }
[120]7        targetname "nv"
8
9-- injection!
10solution( solution().name )
11        configuration "*"
12                includedirs { os.getenv("GLM_PATH") }
13        configuration "gmake"
14                buildoptions "-std=c++0x"
15        configuration "vs*"
16                defines { "_SECURE_SCL=0", "_CRT_SECURE_NO_WARNINGS=1" }
17
18if _ACTION == "gmake-clang" then
19        premake.gcc.cc  = "clang"
20        premake.gcc.cxx = "clang++"
21        _ACTION = "gmake"
22end
23
24premake.action.add {
25        trigger = "gmake-clang",
26        description = "gmake file with clang overrides, needs 'make -R' to work",
27}
28
29if _ACTION == "clean" then
30        for action in premake.action.each() do
31                os.rmdir(action.trigger)
32        end
33end
Note: See TracBrowser for help on using the repository browser.