| 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") { |
| 11 sources = [ | 11 sources = [ |
| 12 "android/component_jni_registrar.cc", | 12 "android/component_jni_registrar.cc", |
| 13 "android/component_jni_registrar.h", | 13 "android/component_jni_registrar.h", |
| 14 "json_sanitizer.cc", | 14 "json_sanitizer.cc", |
| 15 "json_sanitizer.h", | 15 "json_sanitizer.h", |
| 16 "json_sanitizer_android.cc", | 16 "json_sanitizer_android.cc", |
| 17 "safe_json_parser.cc", | 17 "safe_json_parser.cc", |
| 18 "safe_json_parser.h", | 18 "safe_json_parser.h", |
| 19 "safe_json_parser_android.cc", | 19 "safe_json_parser_android.cc", |
| 20 "safe_json_parser_android.h", | 20 "safe_json_parser_android.h", |
| 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 ":safe_json_parser_message_filter", | 26 ":messages", |
| 27 "//base", | 27 "//base", |
| 28 "//components/strings", | 28 "//components/strings", |
| 29 "//content/public/browser", | 29 "//content/public/browser", |
| 30 "//ipc", | 30 "//ipc", |
| 31 "//ui/base", | 31 "//ui/base", |
| 32 ] | 32 ] |
| 33 | 33 |
| 34 if (is_android) { | 34 if (is_android) { |
| 35 sources -= [ | 35 sources -= [ |
| 36 "json_sanitizer.cc", | 36 "json_sanitizer.cc", |
| (...skipping 26 matching lines...) Expand all Loading... |
| 63 "testing_json_parser.cc", | 63 "testing_json_parser.cc", |
| 64 "testing_json_parser.h", | 64 "testing_json_parser.h", |
| 65 ] | 65 ] |
| 66 | 66 |
| 67 deps = [ | 67 deps = [ |
| 68 ":safe_json", | 68 ":safe_json", |
| 69 "//base", | 69 "//base", |
| 70 ] | 70 ] |
| 71 } | 71 } |
| 72 | 72 |
| 73 # This is a separate source set so that it can be shared between safe_json |
| 74 # (which can be used from any process) and the message filter (which depends on |
| 75 # the utility process and hence indirectly Blink. |
| 76 source_set("messages") { |
| 77 sources = [ |
| 78 "safe_json_parser_messages.cc", |
| 79 "safe_json_parser_messages.h", |
| 80 ] |
| 81 |
| 82 deps = [ |
| 83 "//content/public/common", |
| 84 "//ipc", |
| 85 ] |
| 86 } |
| 87 |
| 73 # GYP version: components/safe_json.gypi:safe_json_parser_message_filter | 88 # GYP version: components/safe_json.gypi:safe_json_parser_message_filter |
| 74 source_set("safe_json_parser_message_filter") { | 89 source_set("safe_json_parser_message_filter") { |
| 75 sources = [ | 90 sources = [ |
| 76 "safe_json_parser_message_filter.cc", | 91 "safe_json_parser_message_filter.cc", |
| 77 "safe_json_parser_message_filter.h", | 92 "safe_json_parser_message_filter.h", |
| 78 "safe_json_parser_messages.cc", | |
| 79 "safe_json_parser_messages.h", | |
| 80 ] | 93 ] |
| 81 | 94 |
| 82 deps = [ | 95 deps = [ |
| 96 ":messages", |
| 83 "//base", | 97 "//base", |
| 84 "//content/public/common", | 98 "//content/public/common", |
| 85 "//content/public/utility", | 99 "//content/public/utility", |
| 86 "//ipc", | 100 "//ipc", |
| 87 ] | 101 ] |
| 88 } | 102 } |
| OLD | NEW |