89ef515177
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> |
||
---|---|---|
.. | ||
bundle-spaces | ||
comments | ||
duplicateLibraryEntries | ||
export_across_file_boundaries | ||
findDeps | ||
findMocs | ||
func_export | ||
func_variables | ||
functions | ||
include_dir | ||
include_dir_build | ||
include_function | ||
include_pwd | ||
install_depends | ||
json | ||
one_space | ||
operators | ||
pro_file_cache | ||
project | ||
prompt | ||
quotedfilenames | ||
shadow_files | ||
shadow_files_build | ||
simple_app | ||
simple_app_build | ||
simple_dll | ||
simple_lib | ||
subdir_via_pro_file_extra_target | ||
subdirs | ||
substitutes | ||
substitutes_build | ||
variables |