qt5base-lts/qmake
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
..
doc Mention that the c++11 CONFIG flag sometimes has no effect. 2013-10-09 13:52:58 +02:00
generators Xcode: Dynamically choose release/debug libs based on current configuration 2013-10-16 19:33:15 +02:00
library Add JSON parsing support to qmake. 2013-10-17 08:07:25 +02:00
cachekeys.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
main.cpp make sure that installed meta files are always postprocessed 2013-10-11 21:04:04 +02:00
Makefile.unix Add JSON parsing support to qmake. 2013-10-17 08:07:25 +02:00
Makefile.win32 Add JSON parsing support to qmake. 2013-10-17 08:07:25 +02:00
meta.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
meta.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
option.cpp Merge branch 'stable' into dev 2013-09-13 18:04:17 +02:00
option.h implement simple VFS to support caching during project parsing 2013-08-07 13:58:41 +02:00
project.cpp implement simple VFS to support caching during project parsing 2013-08-07 13:58:41 +02:00
project.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
property.cpp introduce /src qmake property variants 2013-06-12 16:27:21 +02:00
property.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qmake_pch.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qmake-docs.pro move qmake docs into qtbase 2013-06-17 15:41:55 +02:00
qmake.pri Add JSON parsing support to qmake. 2013-10-17 08:07:25 +02:00
qmake.pro Add JSON parsing support to qmake. 2013-10-17 08:07:25 +02:00