From 92487ea33db9d882929d755308853d2ed82abd0d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Sat, 6 Jan 2018 15:33:07 -0800 Subject: Add partial_dependency method to dependencies This adds a new method, partial_dependency to all dependencies. These sub dependencies are copies of the original dependency, but with one or more of the attributes replaced with an empty list. This allows creating a sub dependency that has only cflags or drops link_arguments, for example. --- test cases/frameworks/1 boost/partial_dep/foo.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test cases/frameworks/1 boost/partial_dep/foo.cpp (limited to 'test cases/frameworks/1 boost/partial_dep/foo.cpp') diff --git a/test cases/frameworks/1 boost/partial_dep/foo.cpp b/test cases/frameworks/1 boost/partial_dep/foo.cpp new file mode 100644 index 000000000..da5870386 --- /dev/null +++ b/test cases/frameworks/1 boost/partial_dep/foo.cpp @@ -0,0 +1,20 @@ +/* Copyright © 2018 Intel Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "foo.hpp" + +vec Foo::vector() { + return myvec; +} -- cgit v1.2.3