diff options
Diffstat (limited to 'tutorial/chapter-3/lib/lib.qbs')
-rw-r--r-- | tutorial/chapter-3/lib/lib.qbs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tutorial/chapter-3/lib/lib.qbs b/tutorial/chapter-3/lib/lib.qbs new file mode 100644 index 000000000..a52c29d97 --- /dev/null +++ b/tutorial/chapter-3/lib/lib.qbs @@ -0,0 +1,26 @@ +//! [0] +// lib/lib.qbs + +DynamicLibrary { + name: "mylib" + files: [ + "lib.c", + "lib.h", + "lib_global.h", + ] + version: "1.0.0" + install: true + + Depends { name: "cpp" } + cpp.defines: ["MYLIB_LIBRARY", "CRUCIAL_DEFINE"] + cpp.sonamePrefix: qbs.targetOS.contains("darwin") ? "@rpath" : undefined + + Export { + Depends { name: "cpp" } + cpp.includePaths: [exportingProduct.sourceDirectory] + } + + Depends { name: "bundle" } + bundle.isBundle: false +} +//! [0] |