Skip to content

Commit

Permalink
use xml2-config to get the proper cflags. also serves as early detect…
Browse files Browse the repository at this point in the history
…ion of libxml
  • Loading branch information
polotek committed May 31, 2010
1 parent 923c103 commit 286921e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions SConstruct
Expand Up @@ -9,6 +9,7 @@ root_dir = dirname(File('SConstruct').rfile().abspath)
sys.path.insert(0, join(root_dir, 'tools'))
import js2c

xml2config = 'xml2-config'
if ARGUMENTS.get('debug', 0):
node_exe ='node_g'
else:
Expand All @@ -31,14 +32,15 @@ libpath = [
'/usr/local/lib',
'/usr/lib'
]
cflags = ' '.join([
'-I/opt/local/include',
'-I/opt/local/include/libxml2',
'-I/usr/local/include',
'-I/usr/local/include/libxml2',
'-I/usr/include',
'-I/usr/include/libxml2',
])

#cflags = ' '.join([
# '-I/opt/local/include',
# '-I/opt/local/include/libxml2',
# '-I/usr/local/include',
# '-I/usr/include',
# '-I/usr/include/libxml2',
#])
cflags = shellOut([xml2config, '--cflags'])

if using_node_js:
node_flags = shellOut([node_exe, '--vars'])
Expand Down

0 comments on commit 286921e

Please sign in to comment.