/minild29

To get this branch, use:
bzr branch http://9ix.org/bzr/minild29
1 by Josh C
initial commit
1
solution "Dark"
2
  configurations { "Debug", "Release" }
3
4
  newoption {
5
     trigger = "monocle",
6
     value = "PATH",
7
     description = "Path to Monocle source"
8
  }
9
10
  if _OPTIONS["monocle"] then
11
     _MONOCLE_BASE = _OPTIONS["monocle"]
12
     _MONOCLE_APP_BASE = _OPTIONS["monocle"]
13
     dofile(_OPTIONS["monocle"] .. "/premake4-helper.lua")
14
     libdirs(_BUILD_BASE) -- where monocle puts libMonocleCore[Debug].a
15
     monocle_os_includedirs()
16
     monocle_os_links_base()
17
  else 
18
     if not _OPTIONS["help"] then
19
	--error("ERROR: you must set the --monocle option", 0)
20
	print("ERROR: you must set the --monocle option")
21
	return false
22
     end
23
  end
24
25
 
26
  project "Dark"
27
    kind "ConsoleApp" -- Might need to be WindowedApp on win/mac?
28
    language "C++"
29
    files { "**.h", "**.cpp" }
30
 
31
    configuration "Debug"
32
      defines { "DEBUG" }
33
      flags { "Symbols" }
34
      links { "MonocleCoreDebug" }
35
 
36
    configuration "Release"
37
      defines { "NDEBUG" }
38
      flags { "Optimize" }  
39
      links { "MonocleCore" }