Skip to content

Commit

Permalink
Adds OpenGL/GLEW checks to scons.
Browse files Browse the repository at this point in the history
Taken mostly verbatim from 3e2eba2
  • Loading branch information
Pentarctagon authored and jyrkive committed Aug 2, 2018
1 parent 5e4ed5b commit 01fd74d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions SConstruct
Expand Up @@ -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)
Expand Down

0 comments on commit 01fd74d

Please sign in to comment.