mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
Some preliminary cleanup of the global namespace for LTO.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6942 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
4
Externals/GLew/CMakeLists.txt
vendored
4
Externals/GLew/CMakeLists.txt
vendored
@ -1,7 +1,5 @@
|
||||
include_directories(include)
|
||||
|
||||
set(SRCS src/glew.c
|
||||
src/glewinfo.c
|
||||
src/visualinfo.c)
|
||||
set(SRCS src/glew.c)
|
||||
|
||||
add_library(GLEW STATIC ${SRCS})
|
||||
|
16
Externals/GLew/SConscript
vendored
16
Externals/GLew/SConscript
vendored
@ -1,15 +1,19 @@
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
if env.has_key('shared_glew') and env['shared_glew']:
|
||||
Return()
|
||||
|
||||
files = [
|
||||
'src/glew.c',
|
||||
'src/glewinfo.c',
|
||||
'src/visualinfo.c',
|
||||
]
|
||||
if sys.platform == 'darwin':
|
||||
libs = ['GLEW']
|
||||
frames = ['AGL', 'OpenGL']
|
||||
else:
|
||||
libs = ['GLEW', 'GL', 'GLU']
|
||||
frames = []
|
||||
|
||||
env.StaticLibrary(env['local_libs'] + "GLEW", files)
|
||||
env.Program('glewinfo', 'src/glewinfo.c', LIBS = libs, FRAMEWORKS = frames)
|
||||
env.Program('visualinfo', 'src/visualinfo.c', LIBS = libs, FRAMEWORKS = frames)
|
||||
env.StaticLibrary(env['local_libs'] + 'GLEW', ['src/glew.c'])
|
||||
env['CPPPATH'] += ['#Externals/GLew/include']
|
||||
|
Reference in New Issue
Block a user