summaryrefslogtreecommitdiff
path: root/src/gallium/targets/egl-gdi/SConscript
blob: 8f8b28ef67bf9bc199ad2d7dcbe6230a7a2677ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#######################################################################
# SConscript for egl-gdi target

Import('*')

if env['platform'] == 'windows':

    env = env.Clone()

    env.Append(CPPPATH = [
            '#/src/gallium/state_trackers/egl',
            '#/src/gallium/state_trackers/vega',
            '#/src/egl/main',
            '#/src/mesa',
    ])

    env.Append(CPPDEFINES = [
            'FEATURE_VG=1',
            'GALLIUM_SOFTPIPE',
            'GALLIUM_RBUG',
            'GALLIUM_TRACE',
    ])

    env.Append(LIBS = [
        'gdi32',
        'user32',
        'kernel32',
        'ws2_32',
    ])

    env['no_import_lib'] = 1

    drivers = [softpipe]
    if env['llvm']:
        env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
        drivers += [llvmpipe]
    drivers += [identity, trace, rbug]

    apis = [vgapi, st_vega]

    egl_gallium = env.SharedLibrary(
        target ='egl_gallium',
        source = 'egl-static.c',
        LIBS = st_egl_gdi + ws_gdi + drivers + apis + gallium + egl + env['LIBS'],
    )

    env.InstallSharedLibrary(egl_gallium)