summaryrefslogtreecommitdiffstats
path: root/src/mapi/vgapi/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-11-09 07:05:52 +0000
committerJosé Fonseca <[email protected]>2011-11-29 17:34:56 +0000
commit10b07665be5cff9fa9f03b0f7db459f3b380570d (patch)
treeebe9bcbf6586abbf27b9b4ae827fc459cedf05e0 /src/mapi/vgapi/SConscript
parent57f8e26ca87a2846f192682c84eccbf8b4500bfc (diff)
Remove windows kernel support code.
Not actively used. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mapi/vgapi/SConscript')
-rw-r--r--src/mapi/vgapi/SConscript110
1 files changed, 54 insertions, 56 deletions
diff --git a/src/mapi/vgapi/SConscript b/src/mapi/vgapi/SConscript
index ee6d9fb827c..5b4549e0594 100644
--- a/src/mapi/vgapi/SConscript
+++ b/src/mapi/vgapi/SConscript
@@ -5,59 +5,57 @@ 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 --printer vgapi --mode lib $SOURCE > $TARGET'
- )
-
- env.Append(CPPDEFINES = [
- 'MAPI_ABI_HEADER=\\"vgapi/vgapi_tmp.h\\"',
- 'MAPI_DLL_EXPORTS',
- '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.SharedObject(s[:-2], '../mapi/' + s)
- vgapi_objects.append(o)
-
- env.Depends(vgapi_objects, vgapi_header)
-
- # libOpenVG.dll
- env['LIBPREFIX'] = 'lib'
- env['SHLIBPREFIX'] = 'lib'
-
- openvg = env.SharedLibrary(
- target = 'OpenVG',
- source = vgapi_objects,
- )
-
- env.InstallSharedLibrary(openvg, version=(1, 0, 0))
-
- if env['platform'] == 'windows':
- openvg = env.FindIxes(openvg, 'LIBPREFIX', 'LIBSUFFIX')
- else:
- openvg = env.FindIxes(openvg, 'SHLIBPREFIX', 'SHLIBSUFFIX')
-
- Export(['openvg'])
+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 --printer vgapi --mode lib $SOURCE > $TARGET'
+)
+
+env.Append(CPPDEFINES = [
+ 'MAPI_ABI_HEADER=\\"vgapi/vgapi_tmp.h\\"',
+ 'MAPI_DLL_EXPORTS',
+ '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.SharedObject(s[:-2], '../mapi/' + s)
+ vgapi_objects.append(o)
+
+env.Depends(vgapi_objects, vgapi_header)
+
+# libOpenVG.dll
+env['LIBPREFIX'] = 'lib'
+env['SHLIBPREFIX'] = 'lib'
+
+openvg = env.SharedLibrary(
+ target = 'OpenVG',
+ source = vgapi_objects,
+)
+
+env.InstallSharedLibrary(openvg, version=(1, 0, 0))
+
+if env['platform'] == 'windows':
+ openvg = env.FindIxes(openvg, 'LIBPREFIX', 'LIBSUFFIX')
+else:
+ openvg = env.FindIxes(openvg, 'SHLIBPREFIX', 'SHLIBSUFFIX')
+
+Export(['openvg'])