scons: Updates for targets/egl-static.
[mesa.git] / src / mapi / vgapi / SConscript
index bf51264ab949e2ab5fa1c5070e5758de4187558a..8d671597859b704ab92aa748bef1b0d3a0a93701 100644 (file)
@@ -13,11 +13,12 @@ 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 = [
                'MAPI_ABI_HEADER=\\"vgapi/vgapi_tmp.h\\"',
+               'MAPI_DLL_EXPORTS',
                'KHRONOS_DLL_EXPORTS',
        ])
 
@@ -50,6 +51,9 @@ if env['platform'] != 'winddk':
 
        env.InstallSharedLibrary(openvg, version=(1, 0, 0))
 
-       vgapi = [env.FindIxes(openvg, 'LIBPREFIX', 'LIBSUFFIX')]
+       if env['platform'] == 'windows':
+           vgapi = env.FindIxes(openvg, 'LIBPREFIX', 'LIBSUFFIX')
+       else:
+           vgapi = env.FindIxes(openvg, 'SHLIBPREFIX', 'SHLIBSUFFIX')
 
-       Export(['vgapi', 'vgapi_header'])
+       Export(['vgapi'])