File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,13 @@ def configure_extension
126
126
127
127
def minimal_recipe
128
128
MiniPortile . new ( libname , sqlite3_config [ :version ] ) . tap do |recipe |
129
- recipe . files = sqlite3_config [ :files ]
130
- recipe . target = File . join ( package_root_dir , "ports" )
131
- recipe . patch_files = Dir [ File . join ( package_root_dir , "patches" , "*.patch" ) ] . sort
129
+ if sqlite_source_dir
130
+ recipe . source_directory = sqlite_source_dir
131
+ else
132
+ recipe . files = sqlite3_config [ :files ]
133
+ recipe . target = File . join ( package_root_dir , "ports" )
134
+ recipe . patch_files = Dir [ File . join ( package_root_dir , "patches" , "*.patch" ) ] . sort
135
+ end
132
136
end
133
137
end
134
138
@@ -157,6 +161,10 @@ def cross_build?
157
161
enable_config ( "cross-build" )
158
162
end
159
163
164
+ def sqlite_source_dir
165
+ arg_config ( "--with-sqlite-source-dir" )
166
+ end
167
+
160
168
def download
161
169
minimal_recipe . download
162
170
end
@@ -178,6 +186,9 @@ def print_help
178
186
Use libsqlcipher instead of libsqlite3.
179
187
(Implies `--enable-system-libraries`.)
180
188
189
+ --with-sqlite-source-dir=DIRECTORY
190
+ (dev only) Build sqlite from the source code in DIRECTORY
191
+
181
192
--help
182
193
Display this message.
183
194
You can’t perform that action at this time.
0 commit comments