aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2013-06-05 16:46:12 -0400
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-06-18 10:52:11 +0200
commitf20c3e06bf517a6e23d20afddd0ba36bfd611244 (patch)
tree232280ae31b609e6d1369fd37ec1414285770da4 /doc
parenta213f293f525759342d5e73d497858d728168bae (diff)
Change targetOS and hostOS to lists, and remove targetPlatform.
Change-Id: I33317c857a319e0fa25c9e0d0cc69abc4ad3fabb Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/items/group.qdoc4
-rw-r--r--doc/items/properties.qdoc14
-rw-r--r--doc/qbs.qdoc58
3 files changed, 33 insertions, 43 deletions
diff --git a/doc/items/group.qdoc b/doc/items/group.qdoc
index 68e7ad983..2813f6ac2 100644
--- a/doc/items/group.qdoc
+++ b/doc/items/group.qdoc
@@ -46,12 +46,12 @@
}
Group {
name: "Windows files"
- condition: targetOS === "windows"
+ condition: targetOS.contains("windows")
files: "myclass_win_impl.cpp"
}
Group {
name: "Linux files"
- condition: targetOS === "linux"
+ condition: targetOS.contains("linux")
files: "myclass_linux_impl.cpp"
}
Group {
diff --git a/doc/items/properties.qdoc b/doc/items/properties.qdoc
index 3f73f5d16..7bbe6e21e 100644
--- a/doc/items/properties.qdoc
+++ b/doc/items/properties.qdoc
@@ -43,7 +43,7 @@
\code
Product {
Properties {
- condition: qbs.targetOS == "windows"
+ condition: qbs.targetOS.contains("windows")
cpp.defines: ["ON_WINDOWS"]
cpp.includePaths: ["extraWindowsIncludes"]
}
@@ -56,12 +56,12 @@
\code
Product {
Properties {
- condition: qbs.targetOS == "windows"
+ condition: qbs.targetOS.contains("windows")
cpp.defines: ["ON_WINDOWS"]
cpp.includePaths: ["myWindowsIncludes"]
}
Properties {
- condition: qbs.targetOS == "linux"
+ condition: qbs.targetOS.contains("linux")
cpp.defines: ["ON_LINUX"]
cpp.includePaths: ["myLinuxIncludes"]
}
@@ -72,16 +72,16 @@
\code
Product {
cpp.defines: {
- if (qbs.targetOS == "windows")
+ if (qbs.targetOS.contains("windows"))
return ["ON_WINDOWS"];
- if (qbs.targetOS == "linux")
+ if (qbs.targetOS.contains("linux"))
return ["ON_LINUX"];
return ["ON_UNKNOWN_PLATFORM"];
}
cpp.includePaths: {
- if (qbs.targetOS == "windows")
+ if (qbs.targetOS.contains("windows"))
return ["ON_WINDOWS"];
- if (qbs.targetOS == "linux")
+ if (qbs.targetOS.contains("linux"))
return ["ON_LINUX"];
return undefined;
}
diff --git a/doc/qbs.qdoc b/doc/qbs.qdoc
index 55184bc7b..4d35c6b16 100644
--- a/doc/qbs.qdoc
+++ b/doc/qbs.qdoc
@@ -503,7 +503,7 @@
be compiled on a certain platform. This is how you do it:
\code
Group {
- condition: qbs.targetOS == "windows"
+ condition: qbs.targetOS.contains("windows")
files: [
"harddiskdeleter_win.cpp",
"blowupmonitor_win.cpp",
@@ -511,7 +511,7 @@
]
}
Group {
- condition: qbs.targetOS == "linux"
+ condition: qbs.targetOS.contains("linux")
files: [
"harddiskdeleter_linux.cpp",
"blowupmonitor_linux.cpp",
@@ -538,14 +538,17 @@
are valid values but the user can add more in a project file.
\row
\li hostOS
- \li string
+ \li stringlist
\li platform-dependent
- \li The host operating system. Currently "windows", "linux" or "osx".
+ \li The host operating system.
+ May contain "windows", "linux", "osx", "darwin", "unix", etc.
\row
\li targetOS
- \li string
+ \li stringlist
\li platform-dependent
- \li The target operating system. Currently "windows", "linux" or "osx".
+ \li The target operating system.
+ May contain "windows", "linux", "osx", "darwin", "unix",
+ "ios", "android", "blackberry", "qnx", etc.
\endtable
You can set these properties on the command line or by using a profile. The property \a
@@ -856,22 +859,30 @@
\section1 hostOS
\table
- \row \li \b{Type:} \li \c{string} (read only)
- \row \li \b{Possible Values:} \li \c{"windows"}, \c{"linux"}, \c{"osx"}, \c{"unix"}
+ \row \li \b{Type:} \li \c{Array} of \c{string}s (read only)
\endtable
- This property is set by qbs internally and contains the name of the OS qbs is running on.
+ This property is set by qbs internally and specifies the OS qbs is running on.
+ The possible values for this property are the values of \c targetOS,
+ though some may not be supported.
\section1 targetOS
\table
- \row \li \b{Type:} \li \c{string}
+ \row \li \b{Type:} \li \c{Array} of \c{string}s
+ \row \li \b{Possible Values:} \li one or more of:
+ \c{"android"},
+ \c{"darwin"},
+ \c{"ios"},
+ \c{"linux"},
+ \c{"osx"},
+ \c{"unix"},
+ \c{"windows"}
\endtable
- Specifies the OS you want to build the project for. This is typically set in a profile.
- The possible values for this property are the values of \c hostOS plus a growing number
- of supported operating systems like \c{"ios"}.
+ Specifies the OS you want to build the project for.
+ This is typically set in a profile.
\section1 architecture
@@ -896,27 +907,6 @@
Specifies the endianness of the target platform's processor architecture.
- \section1 targetPlatform
-
- \table
- \row \li \b{Type:} \li \c{Array} of \c{string}s (read only)
- \endtable
-
- Holds attributes of the target platform. Always contains the value of \c{targetOS}.
- Additional values of this property are:
- \table
- \header
- \li Value
- \li Description
- \row
- \li \c{"unix"}
- \li The platform is a Unix derivative. This is set for Linux, OS X, iOS and Android.
- \row
- \li \c{"darwin"}
- \li The platform is derived from Darwin. This is set for OS X and iOS.
- \endtable
-
-
\section1 toolchain
\table