mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
57 lines
1.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
# Copyright 2016 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.
|
|
|
|
import("//mojo/public/tools/bindings/mojom.gni")
|
|
|
|
source_set("cpp") {
|
|
sources = [
|
|
"decode_image.cc",
|
|
"decode_image.h",
|
|
"json_sanitizer.cc",
|
|
"json_sanitizer.h",
|
|
"safe_json_parser.cc",
|
|
"safe_json_parser.h",
|
|
"safe_json_parser_impl.cc",
|
|
"safe_json_parser_impl.h",
|
|
"safe_json_parser_impl.h",
|
|
"safe_xml_parser.cc",
|
|
"safe_xml_parser.h",
|
|
]
|
|
|
|
public_deps = [
|
|
"//services/data_decoder/public/mojom",
|
|
"//services/service_manager/public/cpp",
|
|
]
|
|
|
|
if (is_android) {
|
|
sources -= [ "json_sanitizer.cc" ]
|
|
sources += [
|
|
"json_sanitizer_android.cc",
|
|
"safe_json_parser_android.cc",
|
|
"safe_json_parser_android.h",
|
|
]
|
|
deps = [
|
|
"android:safe_json_jni_headers",
|
|
"//base",
|
|
]
|
|
}
|
|
}
|
|
|
|
static_library("test_support") {
|
|
testonly = true
|
|
sources = [
|
|
"test_data_decoder_service.cc",
|
|
"test_data_decoder_service.h",
|
|
"testing_json_parser.cc",
|
|
"testing_json_parser.h",
|
|
]
|
|
|
|
deps = [
|
|
":cpp",
|
|
"//base",
|
|
"//services/data_decoder:lib",
|
|
"//services/service_manager/public/cpp/test:test_support",
|
|
]
|
|
}
|