summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-05-31 12:38:44 +0800
committerChia-I Wu <[email protected]>2010-05-31 13:28:03 +0800
commit636f7becfd9afc0d2d19090a16a780098cfa4eb3 (patch)
treef11aa20e9ac3f79c5f3339649a9aaf84812ce4b5 /src
parente5b5d84e8a87a5603a84f8c4625592a278bcf9af (diff)
targets/egl: Add SConscript for egl-apis.
It will build api_OpenVG.dll on Windows.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/targets/SConscript1
-rw-r--r--src/gallium/targets/egl-apis/SConscript33
2 files changed, 34 insertions, 0 deletions
diff --git a/src/gallium/targets/SConscript b/src/gallium/targets/SConscript
index bae839a772f..b61a4855af1 100644
--- a/src/gallium/targets/SConscript
+++ b/src/gallium/targets/SConscript
@@ -33,6 +33,7 @@ if 'xorg' in env['statetrackers']:
if 'egl' in env['statetrackers']:
SConscript([
'egl-swrast/SConscript',
+ 'egl-apis/SConscript',
])
# Ideally all non-target directories would produce convenience
diff --git a/src/gallium/targets/egl-apis/SConscript b/src/gallium/targets/egl-apis/SConscript
new file mode 100644
index 00000000000..0ca3d1fb9e5
--- /dev/null
+++ b/src/gallium/targets/egl-apis/SConscript
@@ -0,0 +1,33 @@
+#######################################################################
+# SConscript for egl-apis target
+
+Import('*')
+
+if env['platform'] == 'windows':
+
+ env = env.Clone()
+
+ env.Append(CPPPATH = [
+ '#/src/gallium/state_trackers/vega',
+ ])
+
+ env.Append(LIBS = [
+ 'gdi32',
+ 'user32',
+ 'kernel32',
+ 'ws2_32',
+ ])
+
+ env['no_import_lib'] = 1
+
+ api_libs = {
+ 'OpenVG': vgapi + st_vega,
+ }
+
+ for name in api_libs.keys():
+ api = env.SharedLibrary(
+ target = 'api_' + name,
+ source = ['api_' + name + '.c'],
+ LIBS = api_libs[name] + gallium + env['LIBS'],
+ )
+ env.InstallSharedLibrary(api)