summaryrefslogtreecommitdiff
path: root/src/mapi/vgapi/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapi/vgapi/SConscript')
-rw-r--r--src/mapi/vgapi/SConscript15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/mapi/vgapi/SConscript b/src/mapi/vgapi/SConscript
index 20d7f2744d..ee6d9fb827 100644
--- a/src/mapi/vgapi/SConscript
+++ b/src/mapi/vgapi/SConscript
@@ -13,7 +13,7 @@ if env['platform'] != 'winddk':
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'
+ command = python_cmd + ' $SCRIPT --printer vgapi --mode lib $SOURCE > $TARGET'
)
env.Append(CPPDEFINES = [
@@ -44,13 +44,20 @@ if env['platform'] != 'winddk':
env.Depends(vgapi_objects, vgapi_header)
+ # libOpenVG.dll
+ env['LIBPREFIX'] = 'lib'
+ env['SHLIBPREFIX'] = 'lib'
+
openvg = env.SharedLibrary(
- target = 'libOpenVG',
+ target = 'OpenVG',
source = vgapi_objects,
)
env.InstallSharedLibrary(openvg, version=(1, 0, 0))
- vgapi = [env.FindIxes(openvg, 'LIBPREFIX', 'LIBSUFFIX')]
+ if env['platform'] == 'windows':
+ openvg = env.FindIxes(openvg, 'LIBPREFIX', 'LIBSUFFIX')
+ else:
+ openvg = env.FindIxes(openvg, 'SHLIBPREFIX', 'SHLIBSUFFIX')
- Export(['vgapi', 'vgapi_header'])
+ Export(['openvg'])