Make it possible to specify C++ header files via mod build
parent
c522870b79
commit
ca98081000
|
@ -239,6 +239,11 @@ impl Build {
|
||||||
self.qrc.push(path.as_ref().to_path_buf());
|
self.qrc.push(path.as_ref().to_path_buf());
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
/// Add a C++ header file to be compiled into the program.
|
||||||
|
pub fn h<P: AsRef<Path>>(&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.
|
/// Add a C++ file to be compiled into the program.
|
||||||
pub fn cpp<P: AsRef<Path>>(&mut self, path: P) -> &mut Build {
|
pub fn cpp<P: AsRef<Path>>(&mut self, path: P) -> &mut Build {
|
||||||
self.cpp.push(path.as_ref().to_path_buf());
|
self.cpp.push(path.as_ref().to_path_buf());
|
||||||
|
|
Loading…
Reference in New Issue