aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/jsoncpp.gyp
blob: b6efd87bf8e805fa30ef0b759fd6a36c1b3ff659 (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
# 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.
{
  'variables': {
    'skia_warnings_as_errors': 0,
  },
  'targets': [
    {
      'target_name': 'jsoncpp',
      'conditions': [
        ['skia_use_system_json', {
          'type': 'none',
          'direct_dependent_settings': {
            'libraries': [
              'jsoncpp.a',
            ],
          },
        }, {
          'type': 'static_library',
          'defines': [
            'JSON_USE_EXCEPTION=0',
          ],
          'sources': [
            '../third_party/externals/jsoncpp/src/lib_json/json_reader.cpp',
            '../third_party/externals/jsoncpp/src/lib_json/json_value.cpp',
            '../third_party/externals/jsoncpp/src/lib_json/json_writer.cpp',
          ],
          'include_dirs': [
            '../third_party/externals/jsoncpp/include/',
            '../third_party/externals/jsoncpp/src/lib_json/',
          ],
          'direct_dependent_settings': {
            'include_dirs': [
              '../third_party/externals/jsoncpp/include/',
            ],
          },
          'cflags': [
            '-w',
          ],
        }],
      ],
    },
  ],
}