~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/glx/SConscript

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Import('*')
 
2
 
 
3
env = env.Clone()
 
4
 
 
5
env.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
 
 
17
env.Append(CPPDEFINES = [
 
18
    '_REENTRANT',
 
19
    #('DEFAULT_DRIVER_DIR', 'DRI_DRIVER_SEARCH_DIR')
 
20
])
 
21
 
 
22
env.Prepend(LIBS = [
 
23
    glapi
 
24
])
 
25
 
 
26
env.PkgUseModules('X11')
 
27
env.PkgUseModules('XCB')
 
28
env.PkgUseModules('DRM')
 
29
 
 
30
if env['HAVE_XF86VIDMODE']:
 
31
    env.Append(CPPDEFINES = ['XF86VIDMODE'])
 
32
    env.PkgUseModules('XF86VIDMODE')
 
33
 
 
34
if False: # XXX: SHARED_GLAPI
 
35
    env.Append(CPPDEFINES = ['GLX_SHARED_GLAPI'])
 
36
 
 
37
sources = [
 
38
    'clientattrib.c',
 
39
    'create_context.c',
 
40
    'compsize.c',
 
41
    'eval.c',
 
42
    'glx_error.c',
 
43
    'glxconfig.c',
 
44
    'glxcmds.c',
 
45
    'glxcurrent.c',
 
46
    'glxext.c',
 
47
    'glxextensions.c',
 
48
    'indirect_glx.c',
 
49
    'indirect.c',
 
50
    'indirect_init.c',
 
51
    'indirect_size.c',
 
52
    'indirect_window_pos.c',
 
53
    'indirect_texture_compression.c',
 
54
    'indirect_transpose_matrix.c',
 
55
    'indirect_vertex_array.c',
 
56
    'indirect_vertex_program.c',
 
57
    'pixel.c',
 
58
    'pixelstore.c',
 
59
    'render2.c',
 
60
    'renderpix.c',
 
61
    'single2.c',
 
62
    'singlepix.c',
 
63
    'vertarr.c',
 
64
    'xfont.c',
 
65
    'glx_pbuffer.c',
 
66
    'glx_query.c',
 
67
    'drisw_glx.c',
 
68
    'dri_common.c',
 
69
    'dri_glx.c',
 
70
    'XF86dri.c',
 
71
    'glxhash.c',
 
72
    'dri2_glx.c',
 
73
    'dri2.c',
 
74
    'applegl_glx.c',
 
75
]
 
76
 
 
77
libgl = env.SharedLibrary(
 
78
    target ='GL',
 
79
    source = sources,
 
80
)
 
81
 
 
82
libgl = env.InstallSharedLibrary(libgl, version=(1, 2))
 
83
 
 
84
env.Alias('glx', libgl)
 
85
env.Alias('libgl', libgl)