diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 66 |
1 files changed, 33 insertions, 33 deletions
| @@ -176,33 +176,33 @@ 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 lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .with); |
| 181 | 181 | //\ | |
| 182 | const mod = b.addModule("sqlite", .{ | 182 | //\ const mod = b.addModule("sqlite", .{ |
| 183 | .root_source_file = b.path("sqlite.zig"), | 183 | //\ .root_source_file = b.path("sqlite.zig"), |
| 184 | .link_libc = true, | 184 | //\ .link_libc = true, |
| 185 | }); | 185 | //\ }); |
| 186 | mod.addIncludePath(b.path("c")); | 186 | //\ mod.addIncludePath(b.path("c")); |
| 187 | mod.addIncludePath(sqlite_dep.path(".")); | 187 | //\ mod.addIncludePath(sqlite_dep.path(".")); |
| 188 | mod.linkLibrary(lib); | 188 | //\ mod.linkLibrary(lib); |
| 189 | 189 | //\ | |
| 190 | break :blk .{ lib, mod }; | 190 | //\ break :blk .{ lib, mod }; |
| 191 | }; | 191 | //\ }; |
| 192 | b.installArtifact(sqlite_lib); | 192 | //\ b.installArtifact(sqlite_lib); |
| 193 | 193 | //\ | |
| 194 | const sqliteext_mod = blk: { | 194 | //\ const sqliteext_mod = blk: { |
| 195 | const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .without); | 195 | //\ const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .without); |
| 196 | 196 | //\ | |
| 197 | const mod = b.addModule("sqliteext", .{ | 197 | //\ const mod = b.addModule("sqliteext", .{ |
| 198 | .root_source_file = b.path("sqlite.zig"), | 198 | //\ .root_source_file = b.path("sqlite.zig"), |
| 199 | .link_libc = true, | 199 | //\ .link_libc = true, |
| 200 | }); | 200 | //\ }); |
| 201 | mod.addIncludePath(b.path("c")); | 201 | //\ mod.addIncludePath(b.path("c")); |
| 202 | mod.linkLibrary(lib); | 202 | //\ mod.linkLibrary(lib); |
| 203 | 203 | //\ | |
| 204 | break :blk mod; | 204 | //\ break :blk mod; |
| 205 | }; | 205 | //\ }; |
| 206 | 206 | ||
| 207 | // | 207 | // |
| 208 | // Tests | 208 | // Tests |
| @@ -256,12 +256,12 @@ pub fn build(b: *std.Build) !void { | |||
| 256 | 256 | ||
| 257 | // This builds an example shared library with the extension and a binary that tests it. | 257 | // This builds an example shared library with the extension and a binary that tests it. |
| 258 | 258 | ||
| 259 | const zigcrypto_install_artifact = addZigcrypto(b, sqliteext_mod, target, optimize); | 259 | //\ const zigcrypto_install_artifact = addZigcrypto(b, sqliteext_mod, target, optimize); |
| 260 | test_step.dependOn(&zigcrypto_install_artifact.step); | 260 | //\ test_step.dependOn(&zigcrypto_install_artifact.step); |
| 261 | 261 | //\ | |
| 262 | const zigcrypto_test_run = addZigcryptoTestRun(b, sqlite_mod, target, optimize); | 262 | //\ const zigcrypto_test_run = addZigcryptoTestRun(b, sqlite_mod, target, optimize); |
| 263 | zigcrypto_test_run.step.dependOn(&zigcrypto_install_artifact.step); | 263 | //\ zigcrypto_test_run.step.dependOn(&zigcrypto_install_artifact.step); |
| 264 | test_step.dependOn(&zigcrypto_test_run.step); | 264 | //\ test_step.dependOn(&zigcrypto_test_run.step); |
| 265 | 265 | ||
| 266 | // | 266 | // |
| 267 | // Tools | 267 | // Tools |