@rocicorp/zero-sqlite3 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.gyp CHANGED
@@ -4,6 +4,9 @@
4
4
 
5
5
  {
6
6
  'includes': ['deps/common.gypi'],
7
+ 'variables': {
8
+ 'is_alpine%': '<!(test -f /etc/alpine-release && echo 1 || echo 0)',
9
+ },
7
10
  'targets': [
8
11
  {
9
12
  'target_name': 'better_sqlite3',
@@ -31,36 +34,44 @@
31
34
  },
32
35
  {
33
36
  'target_name': 'zero_sqlite3',
34
- 'type': 'executable',
35
- 'dependencies': ['deps/sqlite3.gyp:locate_sqlite3'],
36
- 'sources': ['<(SHARED_INTERMEDIATE_DIR)/sqlite3/sqlite3.c', '<(SHARED_INTERMEDIATE_DIR)/sqlite3/shell.c'],
37
- 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/sqlite3/'],
38
- 'direct_dependent_settings': {
39
- 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/sqlite3/'],
40
- },
41
- 'cflags': ['-std=c99', '-w'],
42
- 'xcode_settings': {
43
- 'OTHER_CFLAGS': ['-std=c99'],
44
- 'WARNING_CFLAGS': ['-w'],
45
- },
46
37
  'conditions': [
47
- ['sqlite3 == ""', {
48
- 'includes': ['deps/defines.gypi'],
38
+ ['is_alpine == "1"', {
39
+ 'type': 'none',
40
+ 'dependencies': [],
41
+ 'sources': [],
49
42
  }, {
50
- 'defines': [
51
- # This is currently required by better-sqlite3.
52
- 'SQLITE_ENABLE_COLUMN_METADATA',
43
+ 'type': 'executable',
44
+ 'dependencies': ['deps/sqlite3.gyp:locate_sqlite3'],
45
+ 'sources': ['<(SHARED_INTERMEDIATE_DIR)/sqlite3/sqlite3.c', '<(SHARED_INTERMEDIATE_DIR)/sqlite3/shell.c'],
46
+ 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/sqlite3/'],
47
+ 'direct_dependent_settings': {
48
+ 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/sqlite3/'],
49
+ },
50
+ 'cflags': ['-std=c99', '-w', '-D_POSIX_SOURCE'],
51
+ 'xcode_settings': {
52
+ 'OTHER_CFLAGS': ['-std=c99'],
53
+ 'WARNING_CFLAGS': ['-w'],
54
+ },
55
+ 'conditions': [
56
+ ['sqlite3 == ""', {
57
+ 'includes': ['deps/defines.gypi'],
58
+ }, {
59
+ 'defines': [
60
+ # This is currently required by better-sqlite3.
61
+ 'SQLITE_ENABLE_COLUMN_METADATA',
62
+ ],
63
+ }]
53
64
  ],
65
+ 'configurations': {
66
+ 'Debug': {
67
+ 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': 1 } }, # static debug
68
+ },
69
+ 'Release': {
70
+ 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': 0 } }, # static release
71
+ },
72
+ },
54
73
  }]
55
74
  ],
56
- 'configurations': {
57
- 'Debug': {
58
- 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': 1 } }, # static debug
59
- },
60
- 'Release': {
61
- 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': 0 } }, # static release
62
- },
63
- },
64
75
  },
65
76
  ],
66
77
  }
package/deps/sqlite3.gyp CHANGED
@@ -6,6 +6,9 @@
6
6
 
7
7
  {
8
8
  'includes': ['common.gypi'],
9
+ 'variables': {
10
+ 'is_alpine%': '<!(test -f /etc/alpine-release && echo 1 || echo 0)',
11
+ },
9
12
  'targets': [
10
13
  {
11
14
  'target_name': 'locate_sqlite3',
@@ -65,38 +68,5 @@
65
68
  },
66
69
  },
67
70
  },
68
- {
69
- 'target_name': 'shell',
70
- 'type': 'executable',
71
- 'dependencies': ['sqlite3'],
72
- 'sources': ['<(SHARED_INTERMEDIATE_DIR)/sqlite3/sqlite3.c', '<(SHARED_INTERMEDIATE_DIR)/sqlite3/shell.c'],
73
- 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/sqlite3/'],
74
- 'direct_dependent_settings': {
75
- 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/sqlite3/'],
76
- },
77
- 'cflags': ['-std=c99', '-w'],
78
- 'xcode_settings': {
79
- 'OTHER_CFLAGS': ['-std=c99'],
80
- 'WARNING_CFLAGS': ['-w'],
81
- },
82
- 'conditions': [
83
- ['sqlite3 == ""', {
84
- 'includes': ['defines.gypi'],
85
- }, {
86
- 'defines': [
87
- # This is currently required by better-sqlite3.
88
- 'SQLITE_ENABLE_COLUMN_METADATA',
89
- ],
90
- }]
91
- ],
92
- 'configurations': {
93
- 'Debug': {
94
- 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': 1 } }, # static debug
95
- },
96
- 'Release': {
97
- 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': 0 } }, # static release
98
- },
99
- },
100
- },
101
71
  ],
102
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocicorp/zero-sqlite3",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "better-sqlite3 on bedrock",
5
5
  "homepage": "https://github.com/rocicorp/zero-sqlite3",
6
6
  "author": "Rocicorp",