Permalink
Browse files

wscript: build without shared library

  • Loading branch information...
1 parent b4ce97e commit 0f3708419c90af860c2b92989d00c18d1dcd0fc0 @booo committed May 7, 2012
Showing with 12 additions and 12 deletions.
  1. +12 −12 wscript
View
@@ -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.