Skip to content

Commit ed8af21

Browse files
author
rsx
committed
From libpng/png.h: "If pnglibconf.h is missing, you can copy scripts/pnglibconf.h.prebuilt to pnglibconf.h"
1 parent 3caf7b0 commit ed8af21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ fn main() {
2323
return;
2424
}
2525

26+
// From libpng/png.h:
27+
// "If pnglibconf.h is missing, you can copy scripts/pnglibconf.h.prebuilt to pnglibconf.h"
28+
std::fs::copy("libpng/scripts/pnglibconf.h.prebuilt", "libpng/pnglibconf.h").unwrap();
29+
2630
let mut build = cc::Build::new();
2731

2832
build

0 commit comments

Comments
 (0)