From bac6d634bbf0b5a44651acaa8c83450077729aca Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 4 Jul 2018 18:47:04 +0000 Subject: [PATCH] build-sys: Move Rust include header under rust/ directory It makes more sense to have the include live next to the associated code, just like we do with C, even though the `cargo build` doesn't touch it. Closes: #1444 Approved by: jlebon --- Makefile-rpm-ostree.am | 3 ++- {src/app => rust/include}/libtreefile_rs.h | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename {src/app => rust/include}/libtreefile_rs.h (100%) diff --git a/Makefile-rpm-ostree.am b/Makefile-rpm-ostree.am index d2caaf5b..750ac736 100644 --- a/Makefile-rpm-ostree.am +++ b/Makefile-rpm-ostree.am @@ -95,6 +95,7 @@ $(libtreefilepath): Makefile $(TREEFILE_RUST_SRCS) $(cargo) build --verbose $(CARGO_RELEASE_ARGS) EXTRA_DIST += $(TREEFILE_RUST_SRCS) rust/Cargo.lock -rpm_ostree_SOURCES += src/app/libtreefile_rs.h +rpm_ostree_CFLAGS += -Irust/include +rpm_ostree_SOURCES += rust/include/libtreefile_rs.h rpm_ostree_LDADD += $(libtreefilepath) endif # ENABLE_RUST diff --git a/src/app/libtreefile_rs.h b/rust/include/libtreefile_rs.h similarity index 100% rename from src/app/libtreefile_rs.h rename to rust/include/libtreefile_rs.h