Skip to content

Commit

Permalink
wscript: build without shared library
Browse files Browse the repository at this point in the history
  • Loading branch information
booo committed May 7, 2012
1 parent b4ce97e commit 0f37084
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ def configure(conf):
def build(bld):
# protobuf_for_node comes as a library to link against for services
# and an addon to use for plain serialization.
obj = bld.new_task_gen('cxx', 'shlib')
obj.target = 'protobuf_for_node_lib'
obj.source = 'protobuf_for_node.cc'
obj.uselib = ['NODE', 'PROTOBUF']
#obj = bld.new_task_gen('cxx', 'shlib')
#obj.target = 'protobuf_for_node_lib'
#obj.source = 'protobuf_for_node.cc'
#obj.uselib = ['NODE', 'PROTOBUF']

obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.target = 'protobuf_for_node'
obj.source = 'addon.cc'
obj.uselib = ['PROTOBUF']
obj.uselib_local = 'protobuf_for_node_lib'
obj.source = 'protobuf_for_node.cc addon.cc'
obj.uselib = ['PROTOBUF', 'NODE']
#obj.uselib_local = 'protobuf_for_node_lib'

# Example service. If you build your own add-on that exports a
# protobuf service, you will need to replace uselib_local with
# uselib and point CPPPATH, LIBPATH and LIB to where you've
# installed protobuf_for_node.
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.target = 'protoservice'
obj.source = ['example/protoservice.pb.cc', 'example/protoservice.cc']
obj.uselib = ['PROTOBUF']
obj.uselib_local = 'protobuf_for_node_lib'
#obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
#obj.target = 'protoservice'
#obj.source = ['example/protoservice.pb.cc', 'example/protoservice.cc']
#obj.uselib = ['PROTOBUF']
#obj.uselib_local = 'protobuf_for_node_lib'

0 comments on commit 0f37084

Please sign in to comment.