summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/SConscript
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2009-09-30 06:49:08 +0000
committernakeee <nakeee@gmail.com>2009-09-30 06:49:08 +0000
commitffe12ec752566be042767b805f24c204e7428fc6 (patch)
tree1dfbfcb182848b1f4eaf81d5ffca8633deb43498 /Source/Core/VideoCommon/Src/SConscript
parentaa1fd81e3756c4beecd762f8c8a2b28ebb59c747 (diff)
OpenCL: added opencl=true option to scons and fixed the case on the way.
Add ifdef for osx ocl include. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4348 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/SConscript')
-rw-r--r--Source/Core/VideoCommon/Src/SConscript14
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Src/SConscript b/Source/Core/VideoCommon/Src/SConscript
index 3aaa470ed1..b1c2890cb6 100644
--- a/Source/Core/VideoCommon/Src/SConscript
+++ b/Source/Core/VideoCommon/Src/SConscript
@@ -13,7 +13,6 @@ files = [
'memcpy_amd.cpp',
'OpcodeDecoding.cpp',
'TextureDecoder.cpp',
-# 'OpenCL/TextureDecoder.cpp',
'XFMemory.cpp',
'XFBConvert.cpp',
'IndexGenerator.cpp',
@@ -37,6 +36,13 @@ files = [
'HiresTextures.cpp',
]
-env_common = env.Clone()
-env_common.Append(CXXFLAGS = [ '-fPIC' ])
-env_common.StaticLibrary(env['local_libs'] + "videocommon", files)
+
+env_vcommon = env.Clone()
+
+if env_vcommon['HAVE_OPENCL']:
+ files += [
+ 'OpenCL/TextureDecoder.cpp',
+ ]
+
+env_vcommon.Append(CXXFLAGS = [ '-fPIC' ])
+env_vcommon.StaticLibrary(env['local_libs'] + "videocommon", files)