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

Side by Side Diff: components/safe_json.gypi

Issue 1203083002: Add a JSON sanitizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN 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
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 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 # GN version: //components/safe_json 8 # GN version: //components/safe_json
9 'target_name': 'safe_json', 9 'target_name': 'safe_json',
10 'type': 'static_library', 10 'type': 'static_library',
11 'dependencies': [ 11 'dependencies': [
12 'safe_json_parser_message_filter', 12 'safe_json_parser_message_filter',
13 '../base/base.gyp:base', 13 '../base/base.gyp:base',
14 '../components/components_strings.gyp:components_strings', 14 '../components/components_strings.gyp:components_strings',
15 '../content/content.gyp:content_browser', 15 '../content/content.gyp:content_browser',
16 '../ui/base/ui_base.gyp:ui_base', 16 '../ui/base/ui_base.gyp:ui_base',
17 ], 17 ],
18 'include_dirs': [ 18 'include_dirs': [
19 '..', 19 '..',
20 ], 20 ],
21 'sources': [ 21 'sources': [
22 'safe_json/android/component_jni_registrar.cc',
23 'safe_json/android/component_jni_registrar.h',
24 'safe_json/json_sanitizer.cc',
25 'safe_json/json_sanitizer.h',
26 'safe_json/json_sanitizer_android.cc',
22 'safe_json/safe_json_parser.cc', 27 'safe_json/safe_json_parser.cc',
23 'safe_json/safe_json_parser.h', 28 'safe_json/safe_json_parser.h',
29 'safe_json/safe_json_parser_android.cc',
30 'safe_json/safe_json_parser_android.h',
24 'safe_json/safe_json_parser_impl.cc', 31 'safe_json/safe_json_parser_impl.cc',
25 'safe_json/safe_json_parser_impl.h', 32 'safe_json/safe_json_parser_impl.h',
26 ], 33 ],
34 'conditions': [
35 ['OS == "android"', {
36 'dependencies': [
37 'safe_json_jni_headers',
38 ],
39 'sources!': [
40 'safe_json/json_sanitizer.cc',
41 'safe_json/safe_json_parser_impl.cc',
42 'safe_json/safe_json_parser_impl.h',
43 ],
44 }],
45 ],
27 }, 46 },
28 { 47 {
29 'target_name': 'safe_json_test_support', 48 'target_name': 'safe_json_test_support',
30 'type': 'static_library', 49 'type': 'static_library',
31 'dependencies': [ 50 'dependencies': [
32 '../base/base.gyp:base', 51 '../base/base.gyp:base',
33 ':safe_json', 52 ':safe_json',
34 ], 53 ],
35 'include_dirs': [ 54 'include_dirs': [
36 '..', 55 '..',
(...skipping 15 matching lines...) Expand all
52 '..', 71 '..',
53 ], 72 ],
54 'sources': [ 73 'sources': [
55 'safe_json/safe_json_parser_message_filter.cc', 74 'safe_json/safe_json_parser_message_filter.cc',
56 'safe_json/safe_json_parser_message_filter.h', 75 'safe_json/safe_json_parser_message_filter.h',
57 'safe_json/safe_json_parser_messages.cc', 76 'safe_json/safe_json_parser_messages.cc',
58 'safe_json/safe_json_parser_messages.h', 77 'safe_json/safe_json_parser_messages.h',
59 ], 78 ],
60 }, 79 },
61 ], 80 ],
81 'conditions': [
82 ['OS=="android"', {
83 'targets': [
84 {
85 # GN version: //components/safe_json/android:safe_json_java
86 'target_name': 'safe_json_java',
87 'type': 'none',
88 'dependencies': [
89 '../base/base.gyp:base',
90 ],
91 'variables': {
92 'java_in_dir': 'safe_json/android/java',
93 },
94 'includes': [ '../build/java.gypi' ],
95 },
96 {
97 # GN version: //components/safe_json:jni
98 'target_name': 'safe_json_jni_headers',
99 'type': 'none',
100 'sources': [
101 'safe_json/android/java/src/org/chromium/components/safejson/JsonSan itizer.java',
102 ],
103 'variables': {
104 'jni_gen_package': 'safe_json',
105 },
106 'includes': [ '../build/jni_generator.gypi' ],
107 },
108 ],
109 }],
110 ]
62 } 111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698