1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
# GN version: //components/safe_json
'target_name': 'safe_json',
'type': 'static_library',
'dependencies': [
'safe_json_parser_message_filter',
'../base/base.gyp:base',
'../components/components_strings.gyp:components_strings',
'../content/content.gyp:content_browser',
'../content/content.gyp:content_common',
'../ui/base/ui_base.gyp:ui_base',
],
'include_dirs': [
'..',
],
'sources': [
'safe_json/android/component_jni_registrar.cc',
'safe_json/android/component_jni_registrar.h',
'safe_json/json_sanitizer.cc',
'safe_json/json_sanitizer.h',
'safe_json/json_sanitizer_android.cc',
'safe_json/safe_json_parser.cc',
'safe_json/safe_json_parser.h',
'safe_json/safe_json_parser_android.cc',
'safe_json/safe_json_parser_android.h',
'safe_json/safe_json_parser_impl.cc',
'safe_json/safe_json_parser_impl.h',
],
'conditions': [
['OS == "android"', {
'dependencies': [
'safe_json_jni_headers',
],
'sources!': [
'safe_json/json_sanitizer.cc',
'safe_json/safe_json_parser_impl.cc',
'safe_json/safe_json_parser_impl.h',
],
}],
],
},
{
'target_name': 'safe_json_test_support',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
':safe_json',
],
'include_dirs': [
'..',
],
'sources': [
'safe_json/testing_json_parser.cc',
'safe_json/testing_json_parser.h',
],
},
{
'target_name': 'safe_json_parser_message_filter',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
'../content/content.gyp:content_common',
'../content/content.gyp:content_utility',
'../ipc/ipc.gyp:ipc',
],
'include_dirs': [
'..',
],
'sources': [
'safe_json/safe_json_parser_message_filter.cc',
'safe_json/safe_json_parser_message_filter.h',
'safe_json/safe_json_parser_messages.cc',
'safe_json/safe_json_parser_messages.h',
],
},
],
'conditions': [
['OS=="android"', {
'targets': [
{
# GN version: //components/safe_json/android:safe_json_java
'target_name': 'safe_json_java',
'type': 'none',
'dependencies': [
'../base/base.gyp:base',
],
'variables': {
'java_in_dir': 'safe_json/android/java',
},
'includes': [ '../build/java.gypi' ],
},
{
# GN version: //components/safe_json:jni
'target_name': 'safe_json_jni_headers',
'type': 'none',
'sources': [
'safe_json/android/java/src/org/chromium/components/safejson/JsonSanitizer.java',
],
'variables': {
'jni_gen_package': 'safe_json',
},
'includes': [ '../build/jni_generator.gypi' ],
},
],
}],
]
}
|