mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
mapi/vgapi: Add SConscript for Windows build.
This commit is contained in:
parent
f6f9d1014b
commit
60558b1594
2 changed files with 56 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ SConscript('glsl/SConscript')
|
|||
SConscript('mapi/glapi/SConscript')
|
||||
|
||||
if 'egl' in env['statetrackers']:
|
||||
SConscript('mapi/vgapi/SConscript')
|
||||
SConscript('egl/main/SConscript')
|
||||
|
||||
if 'mesa' in env['statetrackers']:
|
||||
|
|
|
|||
55
src/mapi/vgapi/SConscript
Normal file
55
src/mapi/vgapi/SConscript
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
#######################################################################
|
||||
# SConscript for vgapi
|
||||
|
||||
from sys import executable as python_cmd
|
||||
|
||||
Import('*')
|
||||
|
||||
if env['platform'] != 'winddk':
|
||||
|
||||
env = env.Clone()
|
||||
|
||||
vgapi_header = env.CodeGenerate(
|
||||
target = '#src/mapi/vgapi/vgapi_tmp.h',
|
||||
script = '../mapi/mapi_abi.py',
|
||||
source = 'vgapi.csv',
|
||||
command = python_cmd + ' $SCRIPT -i vgapi/vgapi_defines.h $SOURCE > $TARGET'
|
||||
)
|
||||
|
||||
env.Append(CPPDEFINES = [
|
||||
'MAPI_ABI_HEADER=\\"vgapi/vgapi_tmp.h\\"',
|
||||
'KHRONOS_DLL_EXPORTS',
|
||||
])
|
||||
|
||||
env.Append(CPPPATH = [
|
||||
'#/include',
|
||||
'#/src/mapi',
|
||||
])
|
||||
|
||||
mapi_sources = [
|
||||
'entry.c',
|
||||
'mapi.c',
|
||||
'stub.c',
|
||||
'table.c',
|
||||
'u_current.c',
|
||||
'u_execmem.c',
|
||||
'u_thread.c',
|
||||
]
|
||||
|
||||
vgapi_objects = []
|
||||
for s in mapi_sources:
|
||||
o = env.Object(s[:-2], '../mapi/' + s)
|
||||
vgapi_objects.append(o)
|
||||
|
||||
env.Depends(vgapi_objects, vgapi_header)
|
||||
|
||||
openvg = env.SharedLibrary(
|
||||
target = 'libOpenVG',
|
||||
source = vgapi_objects,
|
||||
)
|
||||
|
||||
env.InstallSharedLibrary(openvg, version=(1, 0, 0))
|
||||
|
||||
vgapi = [env.FindIxes(openvg, 'LIBPREFIX', 'LIBSUFFIX')]
|
||||
|
||||
Export(['vgapi', 'vgapi_header'])
|
||||
Loading…
Add table
Reference in a new issue