summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2024-01-05 19:15:11 -0500
committerHubert Figuière <hub@figuiere.net>2024-01-05 19:15:11 -0500
commit59d951a52b5466336305131deb33c7984ca87397 (patch)
tree7840d90222972ce77bda4cdee524c58b154cb561
parentf643d7ba56bca5a93082ad82d50f9c0546935618 (diff)
build: Fix make distcheck
- Remove the liblibopenraw shenanigan - Added missing Rust files to the list
-rw-r--r--Cargo.toml1
-rw-r--r--Makefile.am21
-rw-r--r--lib/Makefile.am4
3 files changed, 17 insertions, 9 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 4cc34ee..2ca9247 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -54,6 +54,7 @@ fuzzing = ["afl"]
debug = true
[lib]
+name = "openraw"
bench = false
crate-type = [ "staticlib", "rlib" ]
diff --git a/Makefile.am b/Makefile.am
index db51bb0..5cf6110 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,7 +8,10 @@ dox:
webdist: dox
$(top_srcdir)/scripts/webdist.sh ${top_builddir} ${VERSION}
-EXTRA_DIST = MPL-2.0 RELEASE_NOTES build-aux/cargo-vendor.sh
+EXTRA_DIST = MPL-2.0 \
+ RELEASE_NOTES \
+ build-aux/cargo-vendor.sh \
+ $(RUST_FILES)
CLEANFILES = $(CARGO_TARGET_DIR)/CACHEDIR.TAG $(BUILT_SOURCES)
@@ -83,26 +86,30 @@ RUST_FILES = Cargo.lock \
src/rawimage.rs \
src/render.rs \
src/render/demosaic.rs \
+ src/render/grayscale.rs \
src/ricoh.rs \
src/sigma.rs \
src/sony.rs \
src/thumbnail.rs \
src/tiff.rs \
src/tiff/dir.rs \
- src/tiff/exif/tags.rs \
src/tiff/entry.rs \
src/tiff/container.rs \
src/tiff/exif.rs \
src/tiff/exif/generated.rs \
+ src/tiff/exif/tags.rs \
src/tiff/iterator.rs \
src/utils.rs \
+ libopenraw-testing/Cargo.toml \
+ libopenraw-testing/src/bin/gentest.rs \
+ libopenraw-testing/src/lib.rs \
$(NULL)
BUILT_SOURCES = _or_dummy.c
_or_dummy.c:
echo "static int __attribute__((unused)) __or_dummy;" > _or_dummy.c
-noinst_LTLIBRARIES = liblibopenraw.la
+noinst_LTLIBRARIES = libopenraw.la
if DEBUG
CARGO_RELEASE_ARGS=
@@ -112,17 +119,17 @@ endif
CARGO_TARGET_DIR=@abs_top_builddir@/target
RUST_PATH=$(CARGO_TARGET_DIR)/@CARGO_TARGET_SUBDIR@
-RUST_LIB=$(RUST_PATH)/liblibopenraw.a
+RUST_LIB=$(RUST_PATH)/libopenraw.a
Cargo.lock:
CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) \
cargo update
-liblibopenraw_la_SOURCES = _or_dummy.c
-liblibopenraw.la: $(liblibopenraw_la_OBJECTS) $(RUST_FILES)
+libopenraw_la_SOURCES = _or_dummy.c
+libopenraw.la: $(libopenraw_la_OBJECTS) $(RUST_FILES)
CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) \
cargo build --features=capi $(CARGO_VERBOSE) $(CARGO_RELEASE_ARGS) --lib && \
- $(LINK) $< && mv $(RUST_LIB) .libs/liblibopenraw.a
+ $(LINK) $< && mv $(RUST_LIB) .libs/libopenraw.a
clean-local:
CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) cargo clean $(CARGO_VERBOSE) $(CARGO_RELEASE_ARGS)
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 1955ca8..f63500b 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -17,7 +17,7 @@ RUST_FILES = mp4/Cargo.lock \
$(NULL)
-EXTRA_DIST = libopenraw.sym \
+EXTRA_DIST = \
exif/exif-tags.pl \
$(RUST_FILES)
@@ -40,6 +40,6 @@ libopenraw_la_LDFLAGS = \
-no-undefined \
-export-symbols-regex "^or_.*" \
$(AM_LDFLAGS)
-libopenraw_la_LIBADD = ../liblibopenraw.la
+libopenraw_la_LIBADD = ../libopenraw.la
libopenraw_la_SOURCES = \
$(NULL)