summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/haiku/SConscript
blob: 2c385994309d21b46af60552c38e9998b0633dbf (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
Import('*')

env = env.Clone()

env.Append(CPPDEFINES = [
    'DEFAULT_DRIVER_DIR=\\"\\"',
])

env.Append(CPPPATH = [
    '#/include',
    '#/src/egl/main',
    '#/src/loader',
])

sources = [
    'egl_haiku.cpp'
]

if env['platform'] == 'haiku':
    env.Append(CPPDEFINES = [
        'HAVE_HAIKU_PLATFORM',
        '_EGL_NATIVE_PLATFORM=haiku',
    ])

env.Prepend(LIBS = [
    libloader,
])

egl_haiku = env.ConvenienceLibrary(
#egl_dri2 = env.SharedLibrary(
    target = 'egl_haiku',
    source = sources,
)

Export('egl_haiku')