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
This commit is contained in:
Colin Walters 2018-07-04 18:47:04 +00:00 committed by Atomic Bot
parent bcbd68d9c8
commit bac6d634bb
2 changed files with 2 additions and 1 deletions

View File

@ -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