summaryrefslogtreecommitdiff
path: root/test cases/frameworks/1 boost/partial_dep/foo.cpp
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-01-06 15:33:07 -0800
committerJussi Pakkanen <jpakkane@gmail.com>2018-04-17 23:33:31 +0300
commit92487ea33db9d882929d755308853d2ed82abd0d (patch)
tree0272fa81d53e2f08b72e70e906bdc4d0df65f23e /test cases/frameworks/1 boost/partial_dep/foo.cpp
parent1952ef5ae13376084dc277de38ff3a6dafb8e595 (diff)
downloadmeson-92487ea33db9d882929d755308853d2ed82abd0d.tar.gz
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.
Diffstat (limited to 'test cases/frameworks/1 boost/partial_dep/foo.cpp')
-rw-r--r--test cases/frameworks/1 boost/partial_dep/foo.cpp20
1 files changed, 20 insertions, 0 deletions
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;
+}