qt5base-lts/tests/auto/tools
Morten Johan Sørvig 89ef515177 Add JSON parsing support to qmake.
Add qjson* implementation files from corelib/json
to the qmake build. Add a read-only compile mode,
enabled by defining QT_JSON_READONLY.

Add qmake built-in function parseJson(file, into)
which parses a json file into the given variable.

qmake uses a flat key -> value-list implementation
for storing variables, which means that some hackery
is need to represent arbitrarily nested JSON. Use a
special "_KEYS_" variable for arrays and objects:

Arrays:
["item1", "item2"]
$${array._KEYS_} -> 0 1 2
$${array.0} -> "item1"
$${array.1} -> "item2"

Objects:
{ "key1" : "value1", "key2" : "value2" }
$${object._KEYS_} -> key1 key2
$${object.key1} -> value1
$${object.key2} -> value2

Change-Id: I0aa2e4e4ae14fa25be8242bc16d3cffce32504d2
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2013-10-17 08:07:25 +02:00
..
moc moc: Don't stumble over MSVC __declspec. 2013-09-24 10:09:14 +02:00
qdbuscpp2xml Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdbusxml2cpp Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qmake Add JSON parsing support to qmake. 2013-10-17 08:07:25 +02:00
rcc RCC: Make auto-test pick up the right binary 2013-08-13 17:24:49 +02:00
uic Fix module name format in displayed code 2013-02-11 01:43:21 +01:00
tools.pro test: Disable tst_uic when -no-widgets is used 2013-04-22 16:24:44 +02:00