/minild29

To get this branch, use:
bzr branch http://9ix.org/bzr/minild29
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
solution "Dark"
  configurations { "Debug", "Release" }

  newoption {
     trigger = "monocle",
     value = "PATH",
     description = "Path to Monocle source"
  }

  if _OPTIONS["monocle"] then
     _MONOCLE_BASE = _OPTIONS["monocle"]
     _MONOCLE_APP_BASE = _OPTIONS["monocle"]
     dofile(_OPTIONS["monocle"] .. "/premake4-helper.lua")
     libdirs(_BUILD_BASE) -- where monocle puts libMonocleCore[Debug].a
     monocle_os_includedirs()
     monocle_os_links_base()
  else 
     if not _OPTIONS["help"] then
	--error("ERROR: you must set the --monocle option", 0)
	print("ERROR: you must set the --monocle option")
	return false
     end
  end

 
  project "Dark"
    kind "ConsoleApp" -- Might need to be WindowedApp on win/mac?
    language "C++"
    files { "**.h", "**.cpp" }
 
    configuration "Debug"
      defines { "DEBUG" }
      flags { "Symbols" }
      links { "MonocleCoreDebug" }
 
    configuration "Release"
      defines { "NDEBUG" }
      flags { "Optimize" }  
      links { "MonocleCore" }