| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 if (is_android) { | 5 if (is_android) { |
| 6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
| 7 } | 7 } |
| 8 | 8 |
| 9 # GYP version: components/safe_json.gypi:safe_json | 9 # GYP version: components/safe_json.gypi:safe_json |
| 10 source_set("safe_json") { | 10 source_set("safe_json") { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 "safe_json_parser_impl.cc", | 21 "safe_json_parser_impl.cc", |
| 22 "safe_json_parser_impl.h", | 22 "safe_json_parser_impl.h", |
| 23 ] | 23 ] |
| 24 | 24 |
| 25 deps = [ | 25 deps = [ |
| 26 "//base", | 26 "//base", |
| 27 "//components/safe_json/public/interfaces", | 27 "//components/safe_json/public/interfaces", |
| 28 "//components/strings", | 28 "//components/strings", |
| 29 "//content/public/browser", | 29 "//content/public/browser", |
| 30 "//content/public/common", | 30 "//content/public/common", |
| 31 "//mojo/edk/system", | |
| 32 "//ui/base", | 31 "//ui/base", |
| 33 ] | 32 ] |
| 34 | 33 |
| 35 if (is_android) { | 34 if (is_android) { |
| 36 sources -= [ | 35 sources -= [ |
| 37 "json_sanitizer.cc", | 36 "json_sanitizer.cc", |
| 38 "safe_json_parser_impl.cc", | 37 "safe_json_parser_impl.cc", |
| 39 "safe_json_parser_impl.h", | 38 "safe_json_parser_impl.h", |
| 40 ] | 39 ] |
| 41 deps += [ "android:safe_json_jni_headers" ] | 40 deps += [ "android:safe_json_jni_headers" ] |
| 42 deps -= [ | 41 deps -= [ |
| 43 "//components/safe_json/public/interfaces", | 42 "//components/safe_json/public/interfaces", |
| 44 "//content/public/browser", | 43 "//content/public/browser", |
| 45 "//mojo/edk/system", | |
| 46 ] | 44 ] |
| 47 } | 45 } |
| 48 } | 46 } |
| 49 | 47 |
| 50 # GYP version: components/safe_json.gypi:safe_json_unittest_sources | 48 # GYP version: components/safe_json.gypi:safe_json_unittest_sources |
| 51 source_set("unit_tests") { | 49 source_set("unit_tests") { |
| 52 testonly = true | 50 testonly = true |
| 53 sources = [ | 51 sources = [ |
| 54 "json_sanitizer_unittest.cc", | 52 "json_sanitizer_unittest.cc", |
| 55 "testing_json_parser_unittest.cc", | 53 "testing_json_parser_unittest.cc", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 69 sources = [ | 67 sources = [ |
| 70 "testing_json_parser.cc", | 68 "testing_json_parser.cc", |
| 71 "testing_json_parser.h", | 69 "testing_json_parser.h", |
| 72 ] | 70 ] |
| 73 | 71 |
| 74 deps = [ | 72 deps = [ |
| 75 ":safe_json", | 73 ":safe_json", |
| 76 "//base", | 74 "//base", |
| 77 ] | 75 ] |
| 78 } | 76 } |
| OLD | NEW |