mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
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
This commit is contained in:
@ -16,7 +16,12 @@
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#include "TextureDecoder.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <OpenCL/opencl.h>
|
||||
#else
|
||||
#include <CL/cl.h>
|
||||
#endif
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user