blob: 337f716a180e521e1932d268748321b3b203725b [file] [log] [blame]
epoger@google.comee8a8e32012-12-18 19:13:49 +00001# Copyright (c) 2012 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# TODO: This file was copied from the external dependency
epoger@google.com5a5e29e2013-01-15 17:16:51 +00006# third_party/externals/jsoncpp-chromium/jsoncpp.gyp , at revision 125399,
epoger@google.comee8a8e32012-12-18 19:13:49 +00007# with directory paths modified to work at this level.
8#
9# It would be better for us to depend on that gypfile within the external
10# dependency, but so far we have been unable to make that work reliably.
11# See https://code.google.com/p/skia/issues/detail?id=1023
epoger@google.com5a5e29e2013-01-15 17:16:51 +000012# and https://code.google.com/p/skia/source/detail?r=7115
epoger@google.comee8a8e32012-12-18 19:13:49 +000013
14{
borenet@google.coma72aef82013-03-22 13:16:06 +000015 'variables': {
16 'skia_warnings_as_errors': 0,
17 },
epoger@google.comee8a8e32012-12-18 19:13:49 +000018 'targets': [
19 {
20 'target_name': 'jsoncpp',
commit-bot@chromium.org61744ec2014-05-16 13:15:41 +000021 'conditions': [
scroggof01a6c32014-06-18 10:31:40 -070022 ['skia_use_system_json', {
23 'type': 'none',
24 'direct_dependent_settings': {
25 'libraries': [
26 'jsoncpp.a',
27 ],
28 },
29 }, {
30 'type': 'static_library',
commit-bot@chromium.org61744ec2014-05-16 13:15:41 +000031 'defines': [
32 'JSON_USE_EXCEPTION=0',
33 ],
34 'sources': [
35 '../third_party/externals/jsoncpp/include/json/assertions.h',
36 '../third_party/externals/jsoncpp/include/json/autolink.h',
37 '../third_party/externals/jsoncpp/include/json/config.h',
38 '../third_party/externals/jsoncpp/include/json/features.h',
39 '../third_party/externals/jsoncpp/include/json/forwards.h',
40 '../third_party/externals/jsoncpp/include/json/json.h',
41 '../third_party/externals/jsoncpp/include/json/reader.h',
42 '../third_party/externals/jsoncpp-chromium/overrides/include/json/value.h',
43 '../third_party/externals/jsoncpp/include/json/writer.h',
44 '../third_party/externals/jsoncpp/src/lib_json/json_batchallocator.h',
45 '../third_party/externals/jsoncpp/src/lib_json/json_reader.cpp',
46 '../third_party/externals/jsoncpp/src/lib_json/json_tool.h',
47 '../third_party/externals/jsoncpp-chromium/overrides/src/lib_json/json_value.cpp',
48 '../third_party/externals/jsoncpp/src/lib_json/json_writer.cpp',
49 ],
50 'include_dirs': [
51 '../third_party/externals/jsoncpp-chromium/overrides/include/',
52 '../third_party/externals/jsoncpp/include/',
53 '../third_party/externals/jsoncpp/src/lib_json/',
54 ],
55 'direct_dependent_settings': {
56 'include_dirs': [
57 '../third_party/externals/jsoncpp-chromium/overrides/include/',
58 '../third_party/externals/jsoncpp/include/',
59 ],
60 },
61 'cflags': [
62 '-w',
63 ],
64 }],
reed@google.com4cbb3a12013-01-07 20:51:13 +000065 ],
epoger@google.comee8a8e32012-12-18 19:13:49 +000066 },
67 ],
68}