1 #######################################################################
4 from sys import executable as python_cmd
8 if env['platform'] != 'winddk':
12 vgapi_header = env.CodeGenerate(
13 target = '#src/mapi/vgapi/vgapi_tmp.h',
14 script = '../mapi/mapi_abi.py',
16 command = python_cmd + ' $SCRIPT --printer vgapi --mode lib $SOURCE > $TARGET'
19 env.Append(CPPDEFINES = [
20 'MAPI_ABI_HEADER=\\"vgapi/vgapi_tmp.h\\"',
22 'KHRONOS_DLL_EXPORTS',
25 env.Append(CPPPATH = [
41 for s in mapi_sources:
42 o = env.SharedObject(s[:-2], '../mapi/' + s)
43 vgapi_objects.append(o)
45 env.Depends(vgapi_objects, vgapi_header)
48 env['LIBPREFIX'] = 'lib'
49 env['SHLIBPREFIX'] = 'lib'
51 openvg = env.SharedLibrary(
53 source = vgapi_objects,
56 env.InstallSharedLibrary(openvg, version=(1, 0, 0))
58 if env['platform'] == 'windows':
59 openvg = env.FindIxes(openvg, 'LIBPREFIX', 'LIBSUFFIX')
61 openvg = env.FindIxes(openvg, 'SHLIBPREFIX', 'SHLIBSUFFIX')