Skip to content

Commit a02f8af

Browse files
committed
Don't bother unpacking sqlite if we're not using it
1 parent fcdea86 commit a02f8af

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

binding.gyp

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,21 @@
2020
{
2121
'target_name': 'action_before_build',
2222
'type': 'none',
23-
'actions': [
24-
{
25-
'action_name': 'unpack_sqlite_dep',
26-
'inputs': [
27-
'./deps/sqlite-autoconf-<@(sqlite_version).tar.gz'
28-
],
29-
'outputs': [
30-
'./deps/sqlite-autoconf-<@(sqlite_version)/sqlite3.c'
31-
],
32-
'action': ['<@(bin_name)','./node_modules/.bin/targz','deps/sqlite-autoconf-<@(sqlite_version).tar.gz','-x','deps/']
33-
}
23+
'conditions': [
24+
['sqlite == "internal"', {
25+
'actions': [
26+
{
27+
'action_name': 'unpack_sqlite_dep',
28+
'inputs': [
29+
'./deps/sqlite-autoconf-<@(sqlite_version).tar.gz'
30+
],
31+
'outputs': [
32+
'./deps/sqlite-autoconf-<@(sqlite_version)/sqlite3.c'
33+
],
34+
'action': ['<@(bin_name)','./node_modules/.bin/targz','deps/sqlite-autoconf-<@(sqlite_version).tar.gz','-x','deps/']
35+
}
36+
]
37+
}]
3438
]
3539
},
3640
{

0 commit comments

Comments
 (0)