Skip to content

Commit

Permalink
Fix build on non-linux platforms.
Browse files Browse the repository at this point in the history
Inherit PATH from the environment, require gl, glu & glut.
  • Loading branch information
stixpjr committed Mar 29, 2024
1 parent b0d6c71 commit 3dfa0b4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SConstruct
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from __future__ import print_function

import os

EnsureSConsVersion(0, 95)
SConsignFile('.sconsign')

env = Environment(ENV={'PATH': os.environ['PATH']})

env = Environment()

env.ParseConfig('pkg-config --cflags --libs gl')
env.ParseConfig('pkg-config --cflags --libs gl glu glut')

# configure
if not env.GetOption("clean"):
Expand Down

0 comments on commit 3dfa0b4

Please sign in to comment.