mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +01:00
e96943c121
Set scons build to autodetect OpenCL by checking for both the library and header instead of having an option. Unfortunately there probably needs to be a path variable that can be set to the location to look for the headers. For example on Ubuntu with nvidia, the headers are located in /usr/include/nvidia-current instead of /usr/include, and hence not found by scons. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6355 8ced0084-cf51-0410-be5f-012b33b47a6e
37 lines
445 B
CMake
37 lines
445 B
CMake
if(UNIX)
|
|
add_definitions(-DLUA_USE_LINUX)
|
|
endif(UNIX)
|
|
|
|
set(SRCS lapi.c
|
|
lauxlib.c
|
|
lbaselib.c
|
|
lcode.c
|
|
ldblib.c
|
|
ldebug.c
|
|
ldo.c
|
|
ldump.c
|
|
lfunc.c
|
|
lgc.c
|
|
linit.c
|
|
liolib.c
|
|
llex.c
|
|
lmathlib.c
|
|
lmem.c
|
|
loadlib.c
|
|
lobject.c
|
|
lopcodes.c
|
|
loslib.c
|
|
lparser.c
|
|
lstate.c
|
|
lstring.c
|
|
lstrlib.c
|
|
ltable.c
|
|
ltablib.c
|
|
ltm.c
|
|
lundump.c
|
|
lvm.c
|
|
lzio.c
|
|
print.c)
|
|
|
|
add_library(lua STATIC ${SRCS})
|