This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/intern/ghost/SConscript

31 lines
836 B
Python
Raw Normal View History

#!/usr/bin/python
import sys
import os
Import ('env')
2004-01-04 21:11:59 +00:00
window_system = sys.platform
2004-01-04 21:11:59 +00:00
sources = env.Glob('intern/*.cpp')
pf = ['GHOST_DisplayManager', 'GHOST_System', 'GHOST_Window']
2004-01-04 21:11:59 +00:00
if window_system == 'linux2':
for f in pf:
sources.remove('intern' + os.sep + f + 'Win32.cpp')
sources.remove('intern' + os.sep + f + 'Carbon.cpp')
elif window_system == 'win32':
for f in pf:
sources.remove('intern' + os.sep + f + 'X11.cpp')
sources.remove('intern' + os.sep + f + 'Carbon.cpp')
elif window_system == 'darwin':
for f in pf:
sources.remove('intern' + os.sep + f + 'Win32.cpp')
sources.remove('intern' + os.sep + f + 'X11.cpp')
else:
print "Unknown window system specified."
Exit()
2004-01-04 21:11:59 +00:00
incs = '. ../string ' + env['BF_OPENGL_INC']
env.BlenderLib ('blender_GHOST', sources, Split(incs), [], libtype='core', priority = 25 )