aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/jsoncpp.gyp
blob: 34f05e5fd082ea00e91b3946e6d90f54bc558f58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# TODO: This file was copied from the external dependency
# third_party/externals/jsoncpp/jsoncpp.gyp , at revision 125399,
# with directory paths modified to work at this level.
#
# It would be better for us to depend on that gypfile within the external
# dependency, but so far we have been unable to make that work reliably.
# See https://code.google.com/p/skia/issues/detail?id=1023

{
  'targets': [
    {
      'target_name': 'jsoncpp',
      'type': 'static_library',
      'defines': [
        'JSON_USE_EXCEPTION=0',
      ],
      'sources': [
        '../third_party/externals/jsoncpp/source/include/json/assertions.h',
        '../third_party/externals/jsoncpp/source/include/json/autolink.h',
        '../third_party/externals/jsoncpp/source/include/json/config.h',
        '../third_party/externals/jsoncpp/source/include/json/features.h',
        '../third_party/externals/jsoncpp/source/include/json/forwards.h',
        '../third_party/externals/jsoncpp/source/include/json/json.h',
        '../third_party/externals/jsoncpp/source/include/json/reader.h',
        '../third_party/externals/jsoncpp/overrides/include/json/value.h',
        '../third_party/externals/jsoncpp/source/include/json/writer.h',
        '../third_party/externals/jsoncpp/source/src/lib_json/json_batchallocator.h',
        '../third_party/externals/jsoncpp/source/src/lib_json/json_reader.cpp',
        '../third_party/externals/jsoncpp/source/src/lib_json/json_tool.h',
        '../third_party/externals/jsoncpp/overrides/src/lib_json/json_value.cpp',
        '../third_party/externals/jsoncpp/source/src/lib_json/json_writer.cpp',
      ],
      'include_dirs': [
        '../third_party/externals/jsoncpp/overrides/include/',
        '../third_party/externals/jsoncpp/source/include/',
        '../third_party/externals/jsoncpp/source/src/lib_json/',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          '../third_party/externals/jsoncpp/overrides/include/',
          '../third_party/externals/jsoncpp/source/include/',
        ],
      },
      'conditions': [
        [ 'skia_os == "mac"', {
          'xcode_settings': {
            'OTHER_CPLUSPLUSFLAGS!': [
              '-Werror',
            ]
          },
        }],
        [ 'skia_os == "win"', {
          'msvs_settings': {
            'VCCLCompilerTool': {
              'WarnAsError': 'false',
            },
          },
        }],
      ],
    },
  ],
}

# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: