Skip to content

Commit

Permalink
support multiple include paths in xml2-config
Browse files Browse the repository at this point in the history
closes #100
  • Loading branch information
defunctzombie committed Jan 26, 2012
1 parent abe5454 commit e259565
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ def configure(conf):

conf.env.append_value("LIB_XML2", "xml2")
xml2_config = conf.find_program('xml2-config', var='XML2_CONFIG', mandatory=True)
xml2_includedir = popen("%s --cflags" % xml2_config).readline().strip().replace('-I', '')
conf.env.append_value("CPPPATH_XML2", xml2_includedir)
xml2_includedir = popen("%s --cflags" % xml2_config).readline().strip()
conf.env.append_value("CPPPATH_XML2", [i.strip() for i in xml2_includedir.split('-I') if len(i) > 0])


def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
Expand Down

0 comments on commit e259565

Please sign in to comment.