2010-03-09 17:57:13 +00:00
|
|
|
#######################################################################
|
|
|
|
# SConscript for gdi winsys
|
|
|
|
|
|
|
|
Import('*')
|
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
env = env.Clone()
|
|
|
|
|
|
|
|
env.Append(CPPPATH = [
|
2014-08-04 21:14:11 +01:00
|
|
|
'#src',
|
2019-12-03 23:01:31 +00:00
|
|
|
'#src/gallium/frontends/wgl',
|
2010-11-01 13:30:22 +00:00
|
|
|
'#src/gallium/winsys/sw',
|
|
|
|
])
|
|
|
|
|
|
|
|
env.Append(LIBS = [
|
|
|
|
'gdi32',
|
|
|
|
'user32',
|
|
|
|
'kernel32',
|
|
|
|
'ws2_32',
|
2018-10-09 16:46:21 +01:00
|
|
|
'advapi32',
|
2010-11-01 13:30:22 +00:00
|
|
|
])
|
|
|
|
|
2018-03-30 16:12:00 +01:00
|
|
|
env.Prepend(LIBS = [
|
|
|
|
mesautil,
|
|
|
|
nir,
|
|
|
|
spirv
|
|
|
|
])
|
2014-08-04 21:14:11 +01:00
|
|
|
|
2015-10-19 14:29:28 +01:00
|
|
|
sources = ['libgl_gdi.c']
|
2010-11-01 13:30:22 +00:00
|
|
|
drivers = []
|
|
|
|
|
|
|
|
if True:
|
2020-04-03 10:44:30 +01:00
|
|
|
env.Append(CPPDEFINES = ['GALLIUM_SOFTPIPE'])
|
2010-11-16 18:56:39 +00:00
|
|
|
drivers += [softpipe]
|
2010-11-01 13:30:22 +00:00
|
|
|
|
|
|
|
if env['llvm']:
|
2019-08-07 12:42:36 +01:00
|
|
|
env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
|
2010-11-16 18:56:39 +00:00
|
|
|
drivers += [llvmpipe]
|
2010-11-01 13:30:22 +00:00
|
|
|
|
2011-11-03 09:38:43 +00:00
|
|
|
if env['gcc'] and env['machine'] != 'x86_64':
|
2011-08-29 13:28:41 +01:00
|
|
|
# DEF parser in certain versions of MinGW is busted, as does not behave as
|
|
|
|
# MSVC. mingw-w64 works fine.
|
2019-12-03 23:01:31 +00:00
|
|
|
sources += ['#src/gallium/frontends/wgl/opengl32.mingw.def']
|
2010-11-01 13:30:22 +00:00
|
|
|
else:
|
2019-12-03 23:01:31 +00:00
|
|
|
sources += ['#src/gallium/frontends/wgl/opengl32.def']
|
2016-05-25 14:30:06 +01:00
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
env['no_import_lib'] = 1
|
|
|
|
|
|
|
|
opengl32 = env.SharedLibrary(
|
|
|
|
target ='opengl32',
|
|
|
|
source = sources,
|
2016-05-16 18:55:08 +01:00
|
|
|
LIBS = wgl + ws_gdi + glapi + compiler + mesa + drivers + gallium + glsl + nir + env['LIBS'],
|
2010-11-01 13:30:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
env.Alias('opengl32', opengl32)
|
|
|
|
env.Alias('libgl-gdi', opengl32)
|