Skip to content

Commit

Permalink
add library name for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshuebner committed Apr 26, 2011
1 parent 576d18a commit 15301e8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/wscript
@@ -1,4 +1,3 @@
import Options;
import os;

portmidi_home=os.getenv('HOME') + '/portmedia/portmidi'
Expand All @@ -10,13 +9,13 @@ def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("node_addon")
conf.check(lib='portmidi', libpath=[ portmidi_home ], uselib_store='PORTMIDI');
conf.check(lib='boost_thread-mt', libpath=[ '/opt/local/lib' ], uselib_store='BOOST_THREAD');
conf.check(lib='boost_thread-mt', libpath=[ '/opt/local/lib' ], uselib_store='BOOST_THREAD_MT');
conf.check(lib='boost_thread', libpath=[ '/opt/local/lib' ], uselib_store='BOOST_THREAD');

def build(bld):
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj.includes = portmidi_home + '/pm_common ' + portmidi_home + '/porttime' + ' /opt/local/include'
obj.includes = portmidi_home + '/pm_common ' + portmidi_home + '/porttime' + ' /opt/local/include' + ' /usr/share/doc/libportmidi-dev/examples/'
obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall" ]
obj.target = "MIDI"
obj.source = "MIDI.cc"
obj.uselib = "PORTMIDI BOOST_THREAD"

obj.uselib = "PORTMIDI BOOST_THREAD_MT BOOST_THREAD"

0 comments on commit 15301e8

Please sign in to comment.