summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig57
1 files changed, 29 insertions, 28 deletions
diff --git a/build.zig b/build.zig
index e61d2f0..ff74b20 100644
--- a/build.zig
+++ b/build.zig
@@ -176,33 +176,35 @@ pub fn build(b: *std.Build) !void {
176 // Main library and module 176 // Main library and module
177 // 177 //
178 178
179 //\ const sqlite_lib, const sqlite_mod = blk: { 179 // const sqlite_lib, const sqlite_mod = blk: {
180 //\ const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .with); 180 const sqlite_lib, _ = blk: {
181 //\ 181 const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .with);
182 //\ const mod = b.addModule("sqlite", .{ 182
183 //\ .root_source_file = b.path("sqlite.zig"), 183 const mod = b.addModule("sqlite", .{
184 //\ .link_libc = true, 184 .root_source_file = b.path("sqlite.zig"),
185 //\ }); 185 .link_libc = true,
186 //\ mod.addIncludePath(b.path("c")); 186 });
187 //\ mod.addIncludePath(sqlite_dep.path(".")); 187 mod.addIncludePath(b.path("c"));
188 //\ mod.linkLibrary(lib); 188 mod.addIncludePath(sqlite_dep.path("."));
189 //\ 189 mod.linkLibrary(lib);
190 //\ break :blk .{ lib, mod }; 190
191 //\ }; 191 break :blk .{ lib, mod };
192 //\ b.installArtifact(sqlite_lib); 192 };
193 //\ 193 b.installArtifact(sqlite_lib);
194 //\ const sqliteext_mod = blk: { 194
195 //\ const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .without); 195 // const sqliteext_mod = blk: {
196 //\ 196 _ = blk: {
197 //\ const mod = b.addModule("sqliteext", .{ 197 const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .without);
198 //\ .root_source_file = b.path("sqlite.zig"), 198
199 //\ .link_libc = true, 199 const mod = b.addModule("sqliteext", .{
200 //\ }); 200 .root_source_file = b.path("sqlite.zig"),
201 //\ mod.addIncludePath(b.path("c")); 201 .link_libc = true,
202 //\ mod.linkLibrary(lib); 202 });
203 //\ 203 mod.addIncludePath(b.path("c"));
204 //\ break :blk mod; 204 mod.linkLibrary(lib);
205 //\ }; 205
206 break :blk mod;
207 };
206 208
207 // 209 //
208 // Tests 210 // Tests
@@ -258,7 +260,6 @@ pub fn build(b: *std.Build) !void {
258 260
259 //\ const zigcrypto_install_artifact = addZigcrypto(b, sqliteext_mod, target, optimize); 261 //\ const zigcrypto_install_artifact = addZigcrypto(b, sqliteext_mod, target, optimize);
260 //\ test_step.dependOn(&zigcrypto_install_artifact.step); 262 //\ test_step.dependOn(&zigcrypto_install_artifact.step);
261 //\
262 //\ const zigcrypto_test_run = addZigcryptoTestRun(b, sqlite_mod, target, optimize); 263 //\ const zigcrypto_test_run = addZigcryptoTestRun(b, sqlite_mod, target, optimize);
263 //\ zigcrypto_test_run.step.dependOn(&zigcrypto_install_artifact.step); 264 //\ zigcrypto_test_run.step.dependOn(&zigcrypto_install_artifact.step);
264 //\ test_step.dependOn(&zigcrypto_test_run.step); 265 //\ test_step.dependOn(&zigcrypto_test_run.step);