Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 42 lines (32 sloc) 1.108 kb
import Options, Utils
from subprocess import Popen
import os
from os import system
from os.path import exists, abspath
VERSION = '0.0.2'
APPNAME = 'nodegit'
srcdir = '.'
blddir = 'build'
def set_options(opt):
opt.tool_options('gcc')
opt.tool_options('compiler_cxx')
def configure(conf):
import preproc
preproc.go_absolute = True
conf.check_tool('gcc')
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')
os.chdir('vendor/libgit2')
Popen('python waf configure', shell=True).wait()
conf.env.append_value('LIBPATH_GIT2', abspath('build/shared'))
conf.env.append_value('LIB_GIT2', 'git2')
def build(bld):
try: os.chdir('vendor/libgit2')
except: pass
Popen('python waf build-shared', shell=True).wait()
os.chdir('../../')
main = bld.new_task_gen('cxx', 'shlib', 'node_addon')
main.target = 'nodegit'
main.source = 'src/base.cc src/sig.cc src/blob.cc src/error.cc src/object.cc src/reference.cc src/repo.cc src/commit.cc src/oid.cc src/revwalk.cc src/tree.cc src/tree_entry.cc'
main.rpath = abspath('vendor/libgit2/build/shared')
main.uselib = 'GIT2'
Jump to Line
Something went wrong with that request. Please try again.