1# Copyright 2016 Google Inc. 2# 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5 6declare_args() { 7 skia_use_system_jsoncpp = is_official_build 8} 9 10import("../third_party.gni") 11 12if (skia_use_system_jsoncpp) { 13 system("jsoncpp") { 14 libs = [ "jsoncpp" ] 15 } 16} else { 17 third_party("jsoncpp") { 18 public_include_dirs = [ "../externals/jsoncpp/include" ] 19 20 defines = [ "JSON_USE_EXCEPTION=0" ] 21 sources = [ 22 "../externals/jsoncpp/src/lib_json/json_reader.cpp", 23 "../externals/jsoncpp/src/lib_json/json_value.cpp", 24 "../externals/jsoncpp/src/lib_json/json_writer.cpp", 25 ] 26 testonly = true 27 } 28} 29