diff options
author | José Fonseca <jfonseca@vmware.com> | 2011-07-01 13:51:18 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-07-01 13:51:39 +0100 |
commit | 4482eba9b221f5c6cda9a649455bc5485080dbc1 (patch) | |
tree | 206c7defa9eebd477699932330cdb6df12787fbf /src | |
parent | 542194251c36e88601cb20b96a4094da5d0ae675 (diff) | |
download | external_mesa3d-4482eba9b221f5c6cda9a649455bc5485080dbc1.zip external_mesa3d-4482eba9b221f5c6cda9a649455bc5485080dbc1.tar.gz external_mesa3d-4482eba9b221f5c6cda9a649455bc5485080dbc1.tar.bz2 |
scons: Actually add src/glx/SConscript.
Diffstat (limited to 'src')
-rw-r--r-- | src/glx/SConscript | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/src/glx/SConscript b/src/glx/SConscript new file mode 100644 index 0000000..afef337 --- /dev/null +++ b/src/glx/SConscript @@ -0,0 +1,85 @@ +Import('*') + +if env['platform'] == 'windows': + Return() + +env = env.Clone() + +env.Prepend(CPPPATH = [ + '#include', + '#include/GL/internal', + '#src/mesa', + '#src/mapi', + '#src/mapi/glapi', + #$(LIBDRM_CFLAGS) + #$(DRI2PROTO_CFLAGS) + #$(GLPROTO_CFLAGS) + #$(X11_INCLUDES) +]) + +env.Append(CPPDEFINES = [ + '_REENTRANT', + #('DEFAULT_DRIVER_DIR', 'DRI_DRIVER_SEARCH_DIR') +]) + +env.Prepend(LIBS = [ + glapi +]) + +env.PkgUseModules('X11') +env.PkgUseModules('DRM') + +if env['HAVE_XF86VIDMODE']: + env.Append(CPPDEFINES = ['XF86VIDMODE']) + env.PkgUseModules('XF86VIDMODE') + +if False: # XXX: SHARED_GLAPI + env.Append(CPPDEFINES = ['GLX_SHARED_GLAPI']) + +sources = [ + 'clientattrib.c', + 'compsize.c', + 'eval.c', + 'glxconfig.c', + 'glxcmds.c', + 'glxcurrent.c', + 'glxext.c', + 'glxextensions.c', + 'indirect_glx.c', + 'indirect.c', + 'indirect_init.c', + 'indirect_size.c', + 'indirect_window_pos.c', + 'indirect_texture_compression.c', + 'indirect_transpose_matrix.c', + 'indirect_vertex_array.c', + 'indirect_vertex_program.c', + 'pixel.c', + 'pixelstore.c', + 'render2.c', + 'renderpix.c', + 'single2.c', + 'singlepix.c', + 'vertarr.c', + 'xfont.c', + 'glx_pbuffer.c', + 'glx_query.c', + 'drisw_glx.c', + 'dri_common.c', + 'dri_glx.c', + 'XF86dri.c', + 'glxhash.c', + 'dri2_glx.c', + 'dri2.c', + 'applegl_glx.c', +] + +libgl = env.SharedLibrary( + target ='GL', + source = sources, +) + +libgl = env.InstallSharedLibrary(libgl, version=(1, 2)) + +env.Alias('glx', libgl) +env.Alias('libgl', libgl) |