qt5base-lts/tests/auto/tools
Thiago Macieira da04322b4c Make moc obey the preprocessor environment variable for include paths
C preprocessors augment their standard list of include paths from the
environment: Unix preprocessors use $C_INCLUDE_PATH (for C) and
$CPLUS_INCLUDE_PATH (for C++), plus CPATH for both, whereas MSVC uses
the an environment variable simply called "INCLUDE". Handling this for
MSVC is particularly important because the VCVARSALL.BAT script sets the
necessary #include paths in the environment for important things.
Without that being parsed, moc won't find some #defines, like
WINAPI_DESKTOP_FAMILY.

[ChangeLog][moc] qmake and moc now cooperate to use the Visual Studio
environment variables (set by the VCVARSALL.BAT script) to find system
include files. A possible consequence is that moc parses application
headers slightly differently, depending on #if conditions that depended
on macros that previous versions had not seen #define'd. Implementers of
other buildsystems are advised to pass the --compiler-flavor=msvc option
to moc.

Change-Id: I7e06274214d1939b0124e5b4bf169cceaef9ca46
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2016-07-20 02:54:09 +00:00
..
moc Make moc obey the preprocessor environment variable for include paths 2016-07-20 02:54:09 +00:00
qdbuscpp2xml Unify naming of LIBS/CFLAGS for 3rd party libraries 2016-04-07 16:18:03 +00:00
qdbusxml2cpp Unify naming of LIBS/CFLAGS for 3rd party libraries 2016-04-07 16:18:03 +00:00
qmake make extra compiler targets depend on their respective compiler 2016-04-18 09:38:10 +00:00
qmakelib Improve error reporting when parsing JSON files 2016-06-17 16:11:11 +00:00
rcc Updated license headers 2016-01-21 18:55:18 +00:00
uic Merge remote-tracking branch 'origin/5.6' into 5.7 2016-03-11 20:08:50 +01:00
tools.pro add test for the qmake library 2015-02-25 13:54:33 +00:00