mesa/src/hgl/SConscript
Alexander von Gluck IV 915d808a56 gallium/st + hgl: Build fixes for Haiku
* No impact risk to any other platforms
* Tracing printf needs stdio.h now due to child header change
* Add missing #/src include directory for util/macros.h
2015-05-13 09:41:30 -05:00

37 lines
706 B
Python

#######################################################################
# SConscript for Haiku OpenGL kit
Import('*')
env = env.Clone()
env.Append(CPPPATH = [
'#/src',
'#/src/mapi',
'#/src/mesa',
'#/src/mesa/main',
'#/include/HaikuGL',
'/boot/system/develop/headers/private',
Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers
])
env.Prepend(LIBS = [
glapi
])
sources = [
'GLView.cpp',
'GLRenderer.cpp',
'GLRendererRoster.cpp',
'GLDispatcher.cpp',
]
# libGL.so
libgl = env.SharedLibrary(
target ='GL',
source = sources,
SHLIBSUFFIX = env['SHLIBSUFFIX'],
)
env.Alias('libgl-haiku', libgl)
Export('libgl')