When you update a project that has a platform value set,
update prefers candidates with matching platform values. Update never selects
a candidate with a platform value that does not match,
but might select a candidate that does not have a platform value set.
During update, the properties of the candidates
are compared with the properties of the project. The platform values
are compared as follows:
- If both the project and the candidates have platform
values set and the platform values do not match, update never selects
the candidate.
- If the platform values match, the candidate is preferred;
that candidate receives eight points.
- If neither the project or the candidate have a
platform, the candidate is preferred; that
candidate receives eight points.
The platform property
is used primarily on projects and products. Source code usually is
written so the same file is built on different platforms (for example,
using #ifdef). Therefore, individual source files
typically do not need platform properties set.