Skip to content
Snippets Groups Projects
Commit f2bf6c9a authored by Yuchen Deng's avatar Yuchen Deng Committed by Joerg Bornemann
Browse files

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


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