Created
July 13, 2010 11:31
-
-
Save c4milo/473755 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
camilo@macbooksito:~/Development/node-inotify$ node-waf clean configure build | |
'clean' finished successfully (0.012s) | |
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok | |
Checking for node prefix : ok /usr/local | |
Checking for program node : /usr/local/bin/node | |
Checking for header sys/inotify.h : not found | |
'configure' finished successfully (0.035s) | |
Waf: Entering directory `/home/camilo/Development/node-inotify/build' | |
[1/3] cxx: src/node_inotify.cc -> build/default/src/node_inotify_1.o | |
[2/3] cxx: src/bindings.cc -> build/default/src/bindings_1.o | |
[3/3] cxx_link: build/default/src/node_inotify_1.o build/default/src/bindings_1.o -> build/default/src/node-inotify.node | |
Waf: Leaving directory `/home/camilo/Development/node-inotify/build' | |
'build' finished successfully (0.443s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
srcdir = "." | |
blddir = "build" | |
def set_options(opt): | |
opt.tool_options("compiler_cxx") | |
def configure(conf): | |
conf.check_tool("compiler_cxx") | |
conf.check_tool("node_addon") | |
conf.find_program('node', var='NODE', mandatory=True) | |
def is_check_cc_present(): | |
try: | |
print('→ method conf.check_cc %r' % conf.check_cc) | |
except: | |
print('→ there is no method conf.check_cc') | |
if conf.check_cc(header_name="sys/inotify.h"): | |
conf.check_cc(header_name="linux/inotify.h", function_name="inotify_init") | |
def build(bld): | |
obj = bld.new_task_gen("cxx", "shlib", "node_addon") | |
obj.target = "node-inotify" | |
obj.source = bld.path.ant_glob('**/*.cc') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment