summaryrefslogtreecommitdiffstats
path: root/bindings/rust/tests/build.rs.in
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/rust/tests/build.rs.in')
-rw-r--r--bindings/rust/tests/build.rs.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/bindings/rust/tests/build.rs.in b/bindings/rust/tests/build.rs.in
new file mode 100644
index 0000000..39a97ba
--- /dev/null
+++ b/bindings/rust/tests/build.rs.in
@@ -0,0 +1,22 @@
+// Copyright (C) 2021-2023 Red Hat, Inc.
+//
+// All rights reserved.
+//
+// Author: Christine Caulfield (ccaulfi@redhat.com)
+//
+
+extern crate pkg_config;
+
+fn main() {
+ // Tell the compiler to use the build-tree libs & headers for compiling
+ println!("cargo:rustc-link-search=native=../../../lib/.libs/");
+ println!("cargo:rustc-link-search=native=../../../common_lib/.libs/");
+ println!("cargo:rustc-flags=@LIBQBLIBS@");
+ println!("cargo:rustc-link-lib=cpg");
+ println!("cargo:rustc-link-lib=cfg");
+ println!("cargo:rustc-link-lib=cmap");
+ println!("cargo:rustc-link-lib=quorum");
+ println!("cargo:rustc-link-lib=votequorum");
+ println!("cargo:rustc-link-lib=corosync_common");
+ println!("cargo:rustc-link-lib=qb");
+}