| 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 ":messages", | |
| 27 "//base", | 26 "//base", |
| 27 "//components/safe_json/public/interfaces", |
| 28 "//components/strings", | 28 "//components/strings", |
| 29 "//content/public/browser", | 29 "//content/public/browser", |
| 30 "//ipc", | 30 "//content/public/common", |
| 31 "//mojo/edk/system", |
| 31 "//ui/base", | 32 "//ui/base", |
| 32 ] | 33 ] |
| 33 | 34 |
| 34 if (is_android) { | 35 if (is_android) { |
| 35 sources -= [ | 36 sources -= [ |
| 36 "json_sanitizer.cc", | 37 "json_sanitizer.cc", |
| 37 "safe_json_parser_impl.cc", | 38 "safe_json_parser_impl.cc", |
| 38 "safe_json_parser_impl.h", | 39 "safe_json_parser_impl.h", |
| 39 ] | 40 ] |
| 40 deps += [ "android:safe_json_jni_headers" ] | 41 deps += [ "android:safe_json_jni_headers" ] |
| 41 deps -= [ | 42 deps -= [ |
| 42 ":messages", | 43 "//components/safe_json/public/interfaces", |
| 43 "//content/public/browser", | 44 "//content/public/browser", |
| 44 "//ipc", | 45 "//mojo/edk/system", |
| 45 ] | 46 ] |
| 46 } | 47 } |
| 47 } | 48 } |
| 48 | 49 |
| 49 # GYP version: components/safe_json.gypi:safe_json_unittest_sources | 50 # GYP version: components/safe_json.gypi:safe_json_unittest_sources |
| 50 source_set("unit_tests") { | 51 source_set("unit_tests") { |
| 51 testonly = true | 52 testonly = true |
| 52 sources = [ | 53 sources = [ |
| 53 "json_sanitizer_unittest.cc", | 54 "json_sanitizer_unittest.cc", |
| 54 ] | 55 ] |
| (...skipping 12 matching lines...) Expand all Loading... |
| 67 sources = [ | 68 sources = [ |
| 68 "testing_json_parser.cc", | 69 "testing_json_parser.cc", |
| 69 "testing_json_parser.h", | 70 "testing_json_parser.h", |
| 70 ] | 71 ] |
| 71 | 72 |
| 72 deps = [ | 73 deps = [ |
| 73 ":safe_json", | 74 ":safe_json", |
| 74 "//base", | 75 "//base", |
| 75 ] | 76 ] |
| 76 } | 77 } |
| 77 | |
| 78 # This is a separate source set so that it can be shared between safe_json | |
| 79 # (which can be used from any process) and the message filter (which depends on | |
| 80 # the utility process and hence indirectly Blink. | |
| 81 source_set("messages") { | |
| 82 sources = [ | |
| 83 "safe_json_parser_messages.cc", | |
| 84 "safe_json_parser_messages.h", | |
| 85 ] | |
| 86 | |
| 87 deps = [ | |
| 88 "//content/public/common", | |
| 89 "//ipc", | |
| 90 ] | |
| 91 } | |
| 92 | |
| 93 # GYP version: components/safe_json.gypi:safe_json_parser_message_filter | |
| 94 source_set("safe_json_parser_message_filter") { | |
| 95 sources = [ | |
| 96 "safe_json_parser_message_filter.cc", | |
| 97 "safe_json_parser_message_filter.h", | |
| 98 ] | |
| 99 | |
| 100 deps = [ | |
| 101 ":messages", | |
| 102 "//base", | |
| 103 "//content/public/common", | |
| 104 "//content/public/utility", | |
| 105 "//ipc", | |
| 106 ] | |
| 107 } | |
| OLD | NEW |