SConscript revision f8aeb1c990b6e127497da1e46e0e4cdcb67ce9b3
1Import('*') 2 3env = env.Clone() 4 5env.Prepend(CPPPATH = [ 6 '#include', 7 '#include/GL/internal', 8 '#src/mesa', 9 '#src/mapi', 10 '#src/mapi/glapi', 11 #$(LIBDRM_CFLAGS) 12 #$(DRI2PROTO_CFLAGS) 13 #$(GLPROTO_CFLAGS) 14 #$(X11_INCLUDES) 15]) 16 17env.Append(CPPDEFINES = [ 18 '_REENTRANT', 19 #('DEFAULT_DRIVER_DIR', 'DRI_DRIVER_SEARCH_DIR') 20]) 21 22env.Prepend(LIBS = [ 23 glapi 24]) 25 26env.PkgUseModules('X11') 27env.PkgUseModules('DRM') 28 29if env['HAVE_XF86VIDMODE']: 30 env.Append(CPPDEFINES = ['XF86VIDMODE']) 31 env.PkgUseModules('XF86VIDMODE') 32 33if False: # XXX: SHARED_GLAPI 34 env.Append(CPPDEFINES = ['GLX_SHARED_GLAPI']) 35 36sources = [ 37 'clientattrib.c', 38 'compsize.c', 39 'eval.c', 40 'glxconfig.c', 41 'glxcmds.c', 42 'glxcurrent.c', 43 'glxext.c', 44 'glxextensions.c', 45 'indirect_glx.c', 46 'indirect.c', 47 'indirect_init.c', 48 'indirect_size.c', 49 'indirect_window_pos.c', 50 'indirect_texture_compression.c', 51 'indirect_transpose_matrix.c', 52 'indirect_vertex_array.c', 53 'indirect_vertex_program.c', 54 'pixel.c', 55 'pixelstore.c', 56 'render2.c', 57 'renderpix.c', 58 'single2.c', 59 'singlepix.c', 60 'vertarr.c', 61 'xfont.c', 62 'glx_pbuffer.c', 63 'glx_query.c', 64 'drisw_glx.c', 65 'dri_common.c', 66 'dri_glx.c', 67 'XF86dri.c', 68 'glxhash.c', 69 'dri2_glx.c', 70 'dri2.c', 71 'applegl_glx.c', 72] 73 74libgl = env.SharedLibrary( 75 target ='GL', 76 source = sources, 77) 78 79libgl = env.InstallSharedLibrary(libgl, version=(1, 2)) 80 81env.Alias('glx', libgl) 82env.Alias('libgl', libgl) 83