summaryrefslogtreecommitdiff
path: root/src/gallium/targets/egl-apis/SConscript
blob: 0ca3d1fb9e5f272501bd1b1714aa71e343b533ce (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
#######################################################################
# SConscript for egl-apis target

Import('*')

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

    env = env.Clone()

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

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

    env['no_import_lib'] = 1

    api_libs = {
        'OpenVG': vgapi + st_vega,
    }

    for name in api_libs.keys():
        api = env.SharedLibrary(
            target = 'api_' + name,
            source = ['api_' + name + '.c'],
            LIBS = api_libs[name] + gallium + env['LIBS'],
        )
        env.InstallSharedLibrary(api)