FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/wscript at v0.0.1 · nodegit/nodegit · GitHub
nodegit
nodegit
Repository navigation
Code
Issues
344
(344)
Pull requests
21
(21)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
wscript
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
41 lines (32 loc) · 1.06 KB
Breadcrumbs
nodegit
/
wscript
Copy path
File metadata and controls
executable file
·
41 lines (32 loc) · 1.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import
Options
,
Utils
from
subprocess
import
Popen
import
os
from
os
import
system
from
os
.
path
import
exists
,
abspath
VERSION
=
'0.0.1'
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'
main
.
rpath
=
abspath
(
'vendor/libgit2/build/shared'
)
main
.
uselib
=
'GIT2'
Back
|
FazBrowse Home
|
New Git URL