From ca98081000a569277972e77c2f44b92c5280875c Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Sun, 24 Feb 2019 10:27:12 +0100 Subject: [PATCH] Make it possible to specify C++ header files via mod build --- src/build.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/build.rs b/src/build.rs index 3ebc450..11ff0f3 100644 --- a/src/build.rs +++ b/src/build.rs @@ -239,6 +239,11 @@ impl Build { self.qrc.push(path.as_ref().to_path_buf()); self } + /// Add a C++ header file to be compiled into the program. + pub fn h>(&mut self, path: P) -> &mut Build { + self.h.push(path.as_ref().to_path_buf()); + self + } /// Add a C++ file to be compiled into the program. pub fn cpp>(&mut self, path: P) -> &mut Build { self.cpp.push(path.as_ref().to_path_buf());