From 510e040b0e149fb920c6a61f1de89a65beca50d0 Mon Sep 17 00:00:00 2001 From: opilarium Date: Thu, 13 Jul 2017 23:50:58 +0300 Subject: [PATCH] Config::files method --- src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 7aab3ae..1f2de4e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -309,6 +309,16 @@ impl Config { self } + /// Add files which will be compiled + pub fn files

(&mut self, p: P) -> &mut Config + where P: IntoIterator, + P::Item: AsRef { + for file in p.into_iter() { + self.file(file); + } + self + } + /// Set C++ support. /// /// The other `cpp_*` options will only become active if this is set to