Commit f2bf6c9a authored by Yuchen Deng's avatar Yuchen Deng Committed by Joerg Bornemann

qbs files: Strip binary files for 'gcc/mingw + release'

Change-Id: I62a4afc5dff6323db916bfdd19431aaeb0c9d2a5
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@nokia.com>
parent 6a90f42d
......@@ -132,6 +132,10 @@ Project {
cpp.rpaths: ["$ORIGIN/../lib/qtcreator"]
cpp.defines: project.additionalCppDefines
cpp.linkerFlags: {
if (qbs.buildVariant == "release" && (qbs.toolchain == "gcc" || qbs.toolchain == "mingw"))
return ["-Wl,-s"]
}
cpp.includePaths: [
"src",
"src/libs",
......
import qbs.base 1.0
DynamicLibrary {
Depends { name: "cpp" }
cpp.linkerFlags: {
if (qbs.buildVariant == "release" && (qbs.toolchain == "gcc" || qbs.toolchain == "mingw"))
return ["-Wl,-s"]
}
destination: {
if (qbs.targetOS == "windows")
return "bin"
......
......@@ -20,9 +20,13 @@ Product {
}
Depends { name: "pluginspec" }
Depends { name: 'cpp' }
Depends { name: "cpp" }
cpp.defines: [name.toUpperCase() + "_LIBRARY"]
cpp.rpaths: ["$ORIGIN/../../.."]
cpp.linkerFlags: {
if (qbs.buildVariant == "release" && (qbs.toolchain == "gcc" || qbs.toolchain == "mingw"))
return ["-Wl,-s"]
}
Group {
files: [ name + ".pluginspec.in" ]
......
import qbs.base 1.0
Application {
Depends { name: "cpp" }
cpp.linkerFlags: {
if (qbs.buildVariant == "release" && (qbs.toolchain == "gcc" || qbs.toolchain == "mingw"))
return ["-Wl,-s"]
}
destination: "bin"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment