File: premake4.lua

package info (click to toggle)
bullet 2.83.7%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 48,772 kB
  • sloc: cpp: 355,312; lisp: 12,087; ansic: 11,969; python: 644; makefile: 116; xml: 27
file content (50 lines) | stat: -rw-r--r-- 730 bytes parent folder | download
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
40
41
42
43
44
45
46
47
48
49
50
	
		project "OpenGL_Window"
	
		language "C++"
				
		kind "StaticLib"

		initOpenGL()
		initGlew()

		includedirs {
		 	
		 	"../../src",
		}
		
		--links {
		--}
		
		files {
			"*.cpp",
			"*.h",
			"OpenGLWindow/*.c",
			"OpenGLWindow/*.h",
			"OpenGLWindow/GL/*.h"
		}

		if not os.is("Windows") then 
			excludes {  
				"Win32OpenGLWindow.cpp",
      	"Win32OpenGLWindow.h",
      	"Win32Window.cpp",
      	"Win32Window.h",
			}
		end
		if os.is("Linux") then
			initX11()
		end
		if not os.is("Linux") then
			excludes {
				"X11OpenGLWindow.cpp",
				"X11OpenGLWindows.h"
			}
		end
		if os.is("MacOSX") then
			files
			{
					"../OpenGLWindow/MacOpenGLWindow.h",
					"../OpenGLWindow/MacOpenGLWindow.mm",
			} 
		end