Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(701)

Side by Side Diff: components/safe_json/BUILD.gn

Issue 1203083002: Add a JSON sanitizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build files Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/safe_json.gypi ('k') | components/safe_json/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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) {
6 import("//build/config/android/rules.gni")
7 }
8
5 # GYP version: components/safe_json.gypi:safe_json 9 # GYP version: components/safe_json.gypi:safe_json
6 source_set("safe_json") { 10 source_set("safe_json") {
7 sources = [ 11 sources = [
12 "android/component_jni_registrar.cc",
13 "android/component_jni_registrar.h",
14 "json_sanitizer.cc",
15 "json_sanitizer.h",
16 "json_sanitizer_android.cc",
8 "safe_json_parser.cc", 17 "safe_json_parser.cc",
9 "safe_json_parser.h", 18 "safe_json_parser.h",
19 "safe_json_parser_android.cc",
20 "safe_json_parser_android.h",
10 "safe_json_parser_impl.cc", 21 "safe_json_parser_impl.cc",
11 "safe_json_parser_impl.h", 22 "safe_json_parser_impl.h",
12 ] 23 ]
13 24
14 deps = [ 25 deps = [
15 ":safe_json_parser_message_filter", 26 ":safe_json_parser_message_filter",
16 "//base", 27 "//base",
17 "//components/strings", 28 "//components/strings",
18 "//content/public/browser", 29 "//content/public/browser",
19 "//ui/base", 30 "//ui/base",
20 ] 31 ]
32
33 if (is_android) {
34 sources -= [
35 "json_sanitizer.cc",
36 "safe_json_parser_impl.cc",
37 "safe_json_parser_impl.h",
38 ]
39 deps += [ "android:safe_json_jni_headers" ]
40 }
41 }
42
43 # GYP version: components/safe_json.gypi:safe_json_unittest_sources
44 source_set("unit_tests") {
45 testonly = true
46 sources = [
47 "json_sanitizer_unittest.cc",
48 ]
49
50 deps = [
51 ":safe_json",
52 ":test_support",
53 "//base",
54 "//testing/gtest",
55 ]
21 } 56 }
22 57
23 # GYP version: components/safe_json.gypi:safe_json_test_support 58 # GYP version: components/safe_json.gypi:safe_json_test_support
24 source_set("test_support") { 59 source_set("test_support") {
25 testonly = true 60 testonly = true
26 sources = [ 61 sources = [
27 "testing_json_parser.cc", 62 "testing_json_parser.cc",
28 "testing_json_parser.h", 63 "testing_json_parser.h",
29 ] 64 ]
30 65
31 deps = [ 66 deps = [
32 ":safe_json", 67 ":safe_json",
33 "//base", 68 "//base",
34 ] 69 ]
35 } 70 }
36 71
37 # GYP version: components/safe_json.gypi:safe_json_parser_message_filter 72 # GYP version: components/safe_json.gypi:safe_json_parser_message_filter
38 source_set("safe_json_parser_message_filter") { 73 source_set("safe_json_parser_message_filter") {
39 sources = [ 74 sources = [
40 "safe_json_parser_message_filter.cc", 75 "safe_json_parser_message_filter.cc",
41 "safe_json_parser_message_filter.h", 76 "safe_json_parser_message_filter.h",
42 "safe_json_parser_messages.cc", 77 "safe_json_parser_messages.cc",
43 "safe_json_parser_messages.h", 78 "safe_json_parser_messages.h",
44 ] 79 ]
45 80
46 deps = [ 81 deps = [
47 "//base", 82 "//base",
48 "//content/public/browser", 83 "//content/public/common",
84 "//content/public/utility",
49 "//ipc", 85 "//ipc",
50 ] 86 ]
51 } 87 }
OLDNEW
« no previous file with comments | « components/safe_json.gypi ('k') | components/safe_json/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698