Adds OpenGL/GLEW checks to scons.
Taken mostly verbatim from 3e2eba22a9
This commit is contained in:
parent
ee59c2be97
commit
eec60d08aa
1 changed files with 0 additions and 8 deletions
|
@ -413,14 +413,6 @@ if env["prereqs"]:
|
|||
if env["history"]:
|
||||
client_env.Append(CPPDEFINES = ["HAVE_HISTORY"])
|
||||
|
||||
if env["PLATFORM"] == 'darwin':
|
||||
client_env.Append(FRAMEWORKS = "OpenGL")
|
||||
client_env.AppendUnique(LIBS = ["GLEW"])
|
||||
elif env["PLATFORM"] == 'posix':
|
||||
opengl_config = check_output(["pkg-config", "--libs", "--cflags", "gl", "glew"])
|
||||
opengl_flags = client_env.ParseFlags(opengl_config)
|
||||
client_env.MergeFlags(opengl_flags)
|
||||
|
||||
if env["forum_user_handler"]:
|
||||
mysql_config = check_output(["mysql_config", "--libs", "--cflags"]).replace("\n", " ").replace("-DNDEBUG", "")
|
||||
mysql_flags = env.ParseFlags(mysql_config)
|
||||
|
|
Loading…
Add table
Reference in a new issue