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

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

Powered by Google App Engine
This is Rietveld 408576698