aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorChristian Kandeler <[email protected]>2025-05-15 16:31:33 +0200
committerChristian Kandeler <[email protected]>2025-05-16 11:16:03 +0000
commit811c196c4ec0f0167b1e296f3412d2ae0304f839 (patch)
treeed038b80f447ae07058cee4f6c284ec31b7e158a /src/libs
parentbea56eeadacfa643c4138cec659aacc2ac02ab4b (diff)
qbs build: Support building against system yaml-cpp
Also remove two directories from the list of files. Change-Id: Ie19fd9f013dba7675556483b6ba3f3f529691ebc Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/3rdparty/yaml-cpp/yaml-cpp.qbs216
1 files changed, 118 insertions, 98 deletions
diff --git a/src/libs/3rdparty/yaml-cpp/yaml-cpp.qbs b/src/libs/3rdparty/yaml-cpp/yaml-cpp.qbs
index 737c67c373e..f451174ba39 100644
--- a/src/libs/3rdparty/yaml-cpp/yaml-cpp.qbs
+++ b/src/libs/3rdparty/yaml-cpp/yaml-cpp.qbs
@@ -1,103 +1,123 @@
-QtcLibrary {
- name: "yaml-cpp"
- hasCMakeProjectFile: false
+Project {
+ Product {
+ name: "YamlCpp"
+ Depends { name: "yaml-cpp"; id: yaml_cpp; required: false }
+ qbsModuleProviders: "qbspkgconfig"
+ property bool foundExternalYaml: yaml_cpp.present
+ Export {
+ Depends { name: "cpp" }
+ Properties {
+ condition: exportingProduct.foundExternalYaml
+ cpp.defines: exportingProduct.cpp.defines
+ cpp.includePaths: exportingProduct.cpp.includePaths
+ cpp.libraryPaths: exportingProduct.cpp.libraryPaths
+ cpp.dynamicLibraries: exportingProduct.cpp.dynamicLibraries
+ cpp.staticLibraries: exportingProduct.cpp.staticLibraries
+ }
+ Depends { name: "BundledYamlCpp"; condition: !exportingProduct.foundExternalYaml }
+ }
+ }
+
+ QtcLibrary {
+ name: "BundledYamlCpp"
+ hasCMakeProjectFile: false
+ builtByDefault: false
- cpp.defines: base.concat(["YAML_CPP_DLL", "yaml_cpp_EXPORTS"])
- cpp.includePaths: [product.sourceDirectory + "/include/"]
+ cpp.defines: base.concat(["YAML_CPP_DLL", "yaml_cpp_EXPORTS"])
+ cpp.includePaths: [product.sourceDirectory + "/include/"]
- files: [
- "include/yaml-cpp/anchor.h",
- "include/yaml-cpp/binary.h",
- "include/yaml-cpp/depthguard.h",
- "include/yaml-cpp/dll.h",
- "include/yaml-cpp/emitfromevents.h",
- "include/yaml-cpp/emitter.h",
- "include/yaml-cpp/emitterdef.h",
- "include/yaml-cpp/emittermanip.h",
- "include/yaml-cpp/emitterstyle.h",
- "include/yaml-cpp/eventhandler.h",
- "include/yaml-cpp/exceptions.h",
- "include/yaml-cpp/mark.h",
- "include/yaml-cpp/noexcept.h",
- "include/yaml-cpp/node",
- "include/yaml-cpp/node/convert.h",
- "include/yaml-cpp/node/detail",
- "include/yaml-cpp/node/detail/impl.h",
- "include/yaml-cpp/node/detail/iterator.h",
- "include/yaml-cpp/node/detail/iterator_fwd.h",
- "include/yaml-cpp/node/detail/memory.h",
- "include/yaml-cpp/node/detail/node.h",
- "include/yaml-cpp/node/detail/node_data.h",
- "include/yaml-cpp/node/detail/node_iterator.h",
- "include/yaml-cpp/node/detail/node_ref.h",
- "include/yaml-cpp/node/emit.h",
- "include/yaml-cpp/node/impl.h",
- "include/yaml-cpp/node/iterator.h",
- "include/yaml-cpp/node/node.h",
- "include/yaml-cpp/node/parse.h",
- "include/yaml-cpp/node/ptr.h",
- "include/yaml-cpp/node/type.h",
- "include/yaml-cpp/null.h",
- "include/yaml-cpp/ostream_wrapper.h",
- "include/yaml-cpp/parser.h",
- "include/yaml-cpp/stlemitter.h",
- "include/yaml-cpp/traits.h",
- "include/yaml-cpp/yaml.h",
- "src/binary.cpp",
- "src/collectionstack.h",
- "src/convert.cpp",
- "src/depthguard.cpp",
- "src/directives.cpp",
- "src/directives.h",
- "src/emit.cpp",
- "src/emitfromevents.cpp",
- "src/emitter.cpp",
- "src/emitterstate.cpp",
- "src/emitterstate.h",
- "src/emitterutils.cpp",
- "src/emitterutils.h",
- "src/exceptions.cpp",
- "src/exp.cpp",
- "src/exp.h",
- "src/indentation.h",
- "src/memory.cpp",
- "src/node.cpp",
- "src/node_data.cpp",
- "src/nodebuilder.cpp",
- "src/nodebuilder.h",
- "src/nodeevents.cpp",
- "src/nodeevents.h",
- "src/null.cpp",
- "src/ostream_wrapper.cpp",
- "src/parse.cpp",
- "src/parser.cpp",
- "src/ptr_vector.h",
- "src/regex_yaml.cpp",
- "src/regex_yaml.h",
- "src/regeximpl.h",
- "src/scanner.cpp",
- "src/scanner.h",
- "src/scanscalar.cpp",
- "src/scanscalar.h",
- "src/scantag.cpp",
- "src/scantag.h",
- "src/scantoken.cpp",
- "src/setting.h",
- "src/simplekey.cpp",
- "src/singledocparser.cpp",
- "src/singledocparser.h",
- "src/stream.cpp",
- "src/stream.h",
- "src/streamcharsource.h",
- "src/stringsource.h",
- "src/tag.cpp",
- "src/tag.h",
- "src/token.h",
- ]
+ files: [
+ "include/yaml-cpp/anchor.h",
+ "include/yaml-cpp/binary.h",
+ "include/yaml-cpp/depthguard.h",
+ "include/yaml-cpp/dll.h",
+ "include/yaml-cpp/emitfromevents.h",
+ "include/yaml-cpp/emitter.h",
+ "include/yaml-cpp/emitterdef.h",
+ "include/yaml-cpp/emittermanip.h",
+ "include/yaml-cpp/emitterstyle.h",
+ "include/yaml-cpp/eventhandler.h",
+ "include/yaml-cpp/exceptions.h",
+ "include/yaml-cpp/mark.h",
+ "include/yaml-cpp/noexcept.h",
+ "include/yaml-cpp/node/convert.h",
+ "include/yaml-cpp/node/detail/impl.h",
+ "include/yaml-cpp/node/detail/iterator.h",
+ "include/yaml-cpp/node/detail/iterator_fwd.h",
+ "include/yaml-cpp/node/detail/memory.h",
+ "include/yaml-cpp/node/detail/node.h",
+ "include/yaml-cpp/node/detail/node_data.h",
+ "include/yaml-cpp/node/detail/node_iterator.h",
+ "include/yaml-cpp/node/detail/node_ref.h",
+ "include/yaml-cpp/node/emit.h",
+ "include/yaml-cpp/node/impl.h",
+ "include/yaml-cpp/node/iterator.h",
+ "include/yaml-cpp/node/node.h",
+ "include/yaml-cpp/node/parse.h",
+ "include/yaml-cpp/node/ptr.h",
+ "include/yaml-cpp/node/type.h",
+ "include/yaml-cpp/null.h",
+ "include/yaml-cpp/ostream_wrapper.h",
+ "include/yaml-cpp/parser.h",
+ "include/yaml-cpp/stlemitter.h",
+ "include/yaml-cpp/traits.h",
+ "include/yaml-cpp/yaml.h",
+ "src/binary.cpp",
+ "src/collectionstack.h",
+ "src/convert.cpp",
+ "src/depthguard.cpp",
+ "src/directives.cpp",
+ "src/directives.h",
+ "src/emit.cpp",
+ "src/emitfromevents.cpp",
+ "src/emitter.cpp",
+ "src/emitterstate.cpp",
+ "src/emitterstate.h",
+ "src/emitterutils.cpp",
+ "src/emitterutils.h",
+ "src/exceptions.cpp",
+ "src/exp.cpp",
+ "src/exp.h",
+ "src/indentation.h",
+ "src/memory.cpp",
+ "src/node.cpp",
+ "src/node_data.cpp",
+ "src/nodebuilder.cpp",
+ "src/nodebuilder.h",
+ "src/nodeevents.cpp",
+ "src/nodeevents.h",
+ "src/null.cpp",
+ "src/ostream_wrapper.cpp",
+ "src/parse.cpp",
+ "src/parser.cpp",
+ "src/ptr_vector.h",
+ "src/regex_yaml.cpp",
+ "src/regex_yaml.h",
+ "src/regeximpl.h",
+ "src/scanner.cpp",
+ "src/scanner.h",
+ "src/scanscalar.cpp",
+ "src/scanscalar.h",
+ "src/scantag.cpp",
+ "src/scantag.h",
+ "src/scantoken.cpp",
+ "src/setting.h",
+ "src/simplekey.cpp",
+ "src/singledocparser.cpp",
+ "src/singledocparser.h",
+ "src/stream.cpp",
+ "src/stream.h",
+ "src/streamcharsource.h",
+ "src/stringsource.h",
+ "src/tag.cpp",
+ "src/tag.h",
+ "src/token.h",
+ ]
- Export {
- Depends { name: "cpp" }
- cpp.includePaths: [exportingProduct.sourceDirectory + "/include/"]
- cpp.defines: "YAML_CPP_DLL"
+ Export {
+ Depends { name: "cpp" }
+ cpp.includePaths: [exportingProduct.sourceDirectory + "/include/"]
+ cpp.defines: "YAML_CPP_DLL"
+ }
}
}