mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
scons: Fix build on systems without libOpenVG.so
This commit is contained in:
parent
1e4f412242
commit
b07ad1d6bd
2 changed files with 6 additions and 5 deletions
|
|
@ -74,6 +74,7 @@ else:
|
|||
|
||||
# OpenVG
|
||||
env.Append(CPPDEFINES = ['FEATURE_VG=1'])
|
||||
env.Prepend(LIBPATH = [openvg.dir])
|
||||
env.Prepend(LIBS = ['OpenVG', st_vega])
|
||||
|
||||
|
||||
|
|
@ -115,7 +116,7 @@ egl_gallium = env.SharedLibrary(
|
|||
source = sources,
|
||||
)
|
||||
|
||||
env.Depends(egl_gallium, [vgapi])
|
||||
env.Depends(egl_gallium, [openvg])
|
||||
|
||||
egl_gallium = env.InstallSharedLibrary(egl_gallium, version=(1, 4, 0))
|
||||
|
||||
|
|
|
|||
|
|
@ -45,15 +45,15 @@ if env['platform'] != 'winddk':
|
|||
env.Depends(vgapi_objects, vgapi_header)
|
||||
|
||||
openvg = env.SharedLibrary(
|
||||
target = 'libOpenVG',
|
||||
target = 'OpenVG',
|
||||
source = vgapi_objects,
|
||||
)
|
||||
|
||||
env.InstallSharedLibrary(openvg, version=(1, 0, 0))
|
||||
|
||||
if env['platform'] == 'windows':
|
||||
vgapi = env.FindIxes(openvg, 'LIBPREFIX', 'LIBSUFFIX')
|
||||
openvg = env.FindIxes(openvg, 'LIBPREFIX', 'LIBSUFFIX')
|
||||
else:
|
||||
vgapi = env.FindIxes(openvg, 'SHLIBPREFIX', 'SHLIBSUFFIX')
|
||||
openvg = env.FindIxes(openvg, 'SHLIBPREFIX', 'SHLIBSUFFIX')
|
||||
|
||||
Export(['vgapi'])
|
||||
Export(['openvg'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue