naiveproxy/services/data_decoder/public/cpp/BUILD.gn
2018-02-02 05:49:39 -05:00

57 lines
1.3 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/interfaces",
"//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_java($default_toolchain)",
"android:safe_json_jni_headers",
]
}
}
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",
]
}