2016-07-27 20:55:26 +00:00
|
|
|
# Copyright 2016 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
declare_args() {
|
2017-03-03 14:21:30 +00:00
|
|
|
skia_use_system_jsoncpp = is_official_build
|
2016-07-27 20:55:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
import("../third_party.gni")
|
|
|
|
|
2017-01-26 22:21:27 +00:00
|
|
|
if (skia_use_system_jsoncpp) {
|
|
|
|
system("jsoncpp") {
|
|
|
|
libs = [ "jsoncpp" ]
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
third_party("jsoncpp") {
|
|
|
|
public_include_dirs = [ "../externals/jsoncpp/include" ]
|
2016-07-27 20:55:26 +00:00
|
|
|
|
2017-01-26 22:21:27 +00:00
|
|
|
defines = [ "JSON_USE_EXCEPTION=0" ]
|
|
|
|
sources = [
|
|
|
|
"../externals/jsoncpp/src/lib_json/json_reader.cpp",
|
|
|
|
"../externals/jsoncpp/src/lib_json/json_value.cpp",
|
|
|
|
"../externals/jsoncpp/src/lib_json/json_writer.cpp",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-07-27 20:55:26 +00:00
|
|
|
}
|