epoger@google.com | ee8a8e3 | 2012-12-18 19:13:49 +0000 | [diff] [blame] | 1 | # 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.com | 5a5e29e | 2013-01-15 17:16:51 +0000 | [diff] [blame] | 6 | # third_party/externals/jsoncpp-chromium/jsoncpp.gyp , at revision 125399, |
epoger@google.com | ee8a8e3 | 2012-12-18 19:13:49 +0000 | [diff] [blame] | 7 | # 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.com | 5a5e29e | 2013-01-15 17:16:51 +0000 | [diff] [blame] | 12 | # and https://code.google.com/p/skia/source/detail?r=7115 |
epoger@google.com | ee8a8e3 | 2012-12-18 19:13:49 +0000 | [diff] [blame] | 13 | |
| 14 | { |
| 15 | 'targets': [ |
| 16 | { |
| 17 | 'target_name': 'jsoncpp', |
| 18 | 'type': 'static_library', |
| 19 | 'defines': [ |
| 20 | 'JSON_USE_EXCEPTION=0', |
| 21 | ], |
| 22 | 'sources': [ |
epoger@google.com | 5a5e29e | 2013-01-15 17:16:51 +0000 | [diff] [blame] | 23 | '../third_party/externals/jsoncpp/include/json/assertions.h', |
| 24 | '../third_party/externals/jsoncpp/include/json/autolink.h', |
| 25 | '../third_party/externals/jsoncpp/include/json/config.h', |
| 26 | '../third_party/externals/jsoncpp/include/json/features.h', |
| 27 | '../third_party/externals/jsoncpp/include/json/forwards.h', |
| 28 | '../third_party/externals/jsoncpp/include/json/json.h', |
| 29 | '../third_party/externals/jsoncpp/include/json/reader.h', |
| 30 | '../third_party/externals/jsoncpp-chromium/overrides/include/json/value.h', |
| 31 | '../third_party/externals/jsoncpp/include/json/writer.h', |
| 32 | '../third_party/externals/jsoncpp/src/lib_json/json_batchallocator.h', |
| 33 | '../third_party/externals/jsoncpp/src/lib_json/json_reader.cpp', |
| 34 | '../third_party/externals/jsoncpp/src/lib_json/json_tool.h', |
| 35 | '../third_party/externals/jsoncpp-chromium/overrides/src/lib_json/json_value.cpp', |
| 36 | '../third_party/externals/jsoncpp/src/lib_json/json_writer.cpp', |
epoger@google.com | ee8a8e3 | 2012-12-18 19:13:49 +0000 | [diff] [blame] | 37 | ], |
| 38 | 'include_dirs': [ |
epoger@google.com | 5a5e29e | 2013-01-15 17:16:51 +0000 | [diff] [blame] | 39 | '../third_party/externals/jsoncpp-chromium/overrides/include/', |
| 40 | '../third_party/externals/jsoncpp/include/', |
| 41 | '../third_party/externals/jsoncpp/src/lib_json/', |
epoger@google.com | ee8a8e3 | 2012-12-18 19:13:49 +0000 | [diff] [blame] | 42 | ], |
| 43 | 'direct_dependent_settings': { |
| 44 | 'include_dirs': [ |
epoger@google.com | 5a5e29e | 2013-01-15 17:16:51 +0000 | [diff] [blame] | 45 | '../third_party/externals/jsoncpp-chromium/overrides/include/', |
| 46 | '../third_party/externals/jsoncpp/include/', |
epoger@google.com | ee8a8e3 | 2012-12-18 19:13:49 +0000 | [diff] [blame] | 47 | ], |
| 48 | }, |
reed@google.com | 4cbb3a1 | 2013-01-07 20:51:13 +0000 | [diff] [blame] | 49 | 'conditions': [ |
| 50 | [ 'skia_os == "mac"', { |
| 51 | 'xcode_settings': { |
| 52 | 'OTHER_CPLUSPLUSFLAGS!': [ |
| 53 | '-Werror', |
| 54 | ] |
| 55 | }, |
| 56 | }], |
bsalomon@google.com | 50c79d8 | 2013-01-08 20:31:53 +0000 | [diff] [blame] | 57 | [ 'skia_os == "win"', { |
| 58 | 'msvs_settings': { |
| 59 | 'VCCLCompilerTool': { |
| 60 | 'WarnAsError': 'false', |
| 61 | }, |
| 62 | }, |
| 63 | }], |
djsollen@google.com | efbe8e9 | 2013-02-07 18:58:35 +0000 | [diff] [blame] | 64 | [ 'skia_os == "android"', { |
| 65 | 'cflags!': [ |
| 66 | '-Wall', |
| 67 | '-Werror', |
| 68 | ], |
| 69 | }], |
sugoi@google.com | dfc867b | 2013-03-11 18:45:12 +0000 | [diff] [blame] | 70 | ['skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl"]', { |
| 71 | 'cflags!': [ |
| 72 | '-Werror', |
| 73 | ], |
| 74 | }], |
reed@google.com | 4cbb3a1 | 2013-01-07 20:51:13 +0000 | [diff] [blame] | 75 | ], |
epoger@google.com | ee8a8e3 | 2012-12-18 19:13:49 +0000 | [diff] [blame] | 76 | }, |
| 77 | ], |
| 78 | } |
| 79 | |
| 80 | # Local Variables: |
| 81 | # tab-width:2 |
| 82 | # indent-tabs-mode:nil |
| 83 | # End: |
| 84 | # vim: set expandtab tabstop=2 shiftwidth=2: |