Skip to content

Commit

Permalink
comment out cfitsio and fitsimg until it works on master
Browse files Browse the repository at this point in the history
  • Loading branch information
ATTron committed Nov 13, 2024
1 parent d374d17 commit 1741cc3
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,23 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
.root_source_file = root_source_file,
});
const zigimg_dependency = b.dependency("zigimg", .{
.target = target,
.optimize = optimize,
});

lib.root_module.addImport("zigimg", zigimg_dependency.module("zigimg"));
astroz_mod.addImport("zigimg", zigimg_dependency.module("zigimg"));

const cfitsio_dep = b.dependency("cfitsio", .{
.target = target,
.optimize = optimize,
});

lib.root_module.addImport("cfitsio", cfitsio_dep.module("cfitsio"));
astroz_mod.addImport("cfitsio", cfitsio_dep.module("cfitsio"));
// Currently not using cfitsio or zigimg due to breaking on the master branch
// const zigimg_dependency = b.dependency("zigimg", .{
// .target = target,
// .optimize = optimize,
// });
//
// lib.root_module.addImport("zigimg", zigimg_dependency.module("zigimg"));
// astroz_mod.addImport("zigimg", zigimg_dependency.module("zigimg"));

// const cfitsio_dep = b.dependency("cfitsio", .{
// .target = target,
// .optimize = optimize,
// });
//
// lib.root_module.addImport("cfitsio", cfitsio_dep.module("cfitsio"));
// astroz_mod.addImport("cfitsio", cfitsio_dep.module("cfitsio"));

const lib_install = b.addInstallArtifact(lib, .{});
lib_step.dependOn(&lib_install.step);
Expand Down Expand Up @@ -78,8 +80,8 @@ pub fn build(b: *std.Build) void {
.root_source_file = root_source_file,
});

tests.root_module.addImport("zigimg", zigimg_dependency.module("zigimg"));
tests.root_module.addImport("cfitsio", cfitsio_dep.module("cfitsio"));
// tests.root_module.addImport("zigimg", zigimg_dependency.module("zigimg"));
// tests.root_module.addImport("cfitsio", cfitsio_dep.module("cfitsio"));

const tests_run = b.addRunArtifact(tests);
tests_step.dependOn(&tests_run.step);
Expand Down

0 comments on commit 1741cc3

Please sign in to comment.