compile fix for gcc 4.4

Task-number: QBS-687
Change-Id: I6ab930513e8769cbf9212369085176d51062fb57
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
fix property values of Application.type and friends

Product.type is an array of strings, not a string.
Using a string literal here breaks the base.concat pattern in
derived products.

Task-number: QBS-675
Change-Id: I83aef275cd6ad524062382afe40a59bc2a47a787
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Allow 2-component ibtool version numbers.

This fixes use of the IB module with Xcode 6.

Change-Id: I5f300e888562450994c0cf7f6d9dc5d9306e0cad
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Make Info.plist formatter commands case insensitive.

This matches Xcode behavior.

Change-Id: I5244cecd3841e922185146a9273c9fb07e06eaa5
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
API: Fix equality operators for the *Data classes.

In particular, the ProjectData class inexplicably omitted to compare the
"name" attributes.

Change-Id: I23b29874299629c62585f8680afa0b52a67e697b
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
remove dead code

Removed code that handles Artifact items below Product items.
This is not supported and never really was.

Change-Id: Id9e6d72c0f8eaab1dbfd59732bb4fd5057aad8b2
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
fix evaluation in subitems of disabled products

Property evaluation in subitems of disabled products didn't work
properly and led to evaluation errors.
Even though a product is disabled, we must handle its subitems in the
ModuleLoader to make module properties available.

Task-number: QBS-671
Change-Id: Ibe051357095766b47e242b65c7899baeb6b0ee43
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Check whether profiles listed in Product.profiles actually exist.

Otherwise people will get cryptic messages about missing properties if
they mistype a profile name.

Change-Id: I732a7ab6a5c0f79ddee7d4f028c2514aec265d0a
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Use the right search and plugin paths in API tests.

Task-number: QBS-684
Change-Id: I45403d7fce4429387b67ff0b50ba2b6208580c17
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Tests: Don't use nm to look for symbols in an object built by MSVC.

We relied on nm not being available on Windows, but it can be if mingw
is installed.

Change-Id: I13a93a7a3b54129f75e1a746a09c9abd9f89ee33
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Fix wrong property names in ib.js

Change-Id: I9419b4a986dda1e2c367e1308bb03f7d96f5a2ef
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
libqtprofilesetup: Fix mingw use case.

- Don't assume the mkspec has "mingw" in its name.
- Relax overly pedantic tests in gcc.js: If a library
  name is an actual file path, then use it as one,
  regardless of what it looks like.
- Some autotest adaptations.

Task-number: QBS-688
Change-Id: I1d0d51b04ae81d4c10f8cdcc18d6447233e44863
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Replace QTC_HOST_* with QBS_HOST_*

There are conflicts when both hostosinfo.h headers are included

Change-Id: Ie6fbbed234c1273163e53bed198f5a1054277ecb
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Make the "sourceDirectory" property get inherited by sub-projects.

Change-Id: I3bfa722cdae4a68d779019bc3660aef289b8154e
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Add tools/architectures.h

The architecture-related functions do not belong into hostosinfo.h.
What's even worse is that we currently include that private header in Qt
Creator, which is a no-go. So introduce a new public header that
supplies the required functionality.

Change-Id: I413c1bcfdf799f3aa768ce5c116f0122da8ac81c
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
refactor setupScriptEngineForProduct

Put code for setting up the "project" script value into its own function.
We want to extend it later.

Change-Id: I06b5541b7ddbe46f56fbfc437682aba6b2b6952f
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
libqbsqtprofilesetup: Get rid of bogus warnings about missing prl files.

- Don't look for debug libraries in a release-only Qt (and vice versa).
- Some libraries are never built as debug libs.
- On Darwin, some modules are not frameworks even in a framework build.

This also fixes a bug setting up plugins of a static Qt build.

Change-Id: I7e6c1e06070897982fdb9b12930bd7f75ae620b0
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
use QScriptValue::setProperty for defining getters

There's no reason to use the more complex defineProperty function.
This also makes sure that all getters are enumerable by default.
Deprecated properties are skipped in enumerations.

Change-Id: Ie4d685b3e6ddb724ba5f0d5a3138dafc4422d2d5
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
fix warning about unused function

Change-Id: Ib2e44cfff8265bf4f1ffb2a3925af12b16ef52d3
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Fix autotests on Mac.

Change-Id: I7bbbf6635006885f47343bf75cb71990f881027b
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>