| Index: chrome/utility/BUILD.gn
|
| diff --git a/chrome/utility/BUILD.gn b/chrome/utility/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9eb5cc0c97625b65c928cf418d12957c5b85361c
|
| --- /dev/null
|
| +++ b/chrome/utility/BUILD.gn
|
| @@ -0,0 +1,89 @@
|
| +# Copyright 2014 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("//build/config/crypto.gni")
|
| +import("//build/config/features.gni")
|
| +
|
| +gypi_values = exec_script(
|
| + "//build/gypi_to_gn.py",
|
| + [ rebase_path("../chrome_utility.gypi") ],
|
| + "scope",
|
| + [ "../chrome_utility.gypi" ])
|
| +
|
| +static_library("utility") {
|
| + sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..")
|
| +
|
| + deps = [
|
| + "//base",
|
| + #'../components/components_strings.gyp:components_strings', TODO(GYP)
|
| + #'../components/components.gyp:url_fixer', TODO(GYP)
|
| + "//content/public/common",
|
| + "//content/public/utility",
|
| + #'../media/media.gyp:media', TODO(GYP)
|
| + "//skia",
|
| + "//third_party/libxml",
|
| + "//chrome:resources",
|
| + "//chrome:strings",
|
| + "//chrome/common",
|
| + "//chrome/common/extensions/api",
|
| + ]
|
| +
|
| + if (is_win || is_mac) {
|
| + sources += rebase_path(
|
| + gypi_values.chrome_utility_win_mac_media_gallery_sources, ".", "..")
|
| + #deps += [ "//components/wifi" ] TODO(GYP)
|
| + }
|
| + if (is_mac) {
|
| + sources += [
|
| + "media_galleries/iphoto_library_parser.cc",
|
| + "media_galleries/iphoto_library_parser.h",
|
| + ]
|
| + }
|
| +
|
| + if (is_android) {
|
| + sources -= [ "profile_import_handler.cc" ]
|
| + } else {
|
| + sources += rebase_path(gypi_values.chrome_utility_importer_sources,
|
| + ".", "..")
|
| + sources += rebase_path(gypi_values.chrome_utility_shared_media_sources,
|
| + ".", "..")
|
| + #deps += [ "//third_party/libexif" ] TODO(GYP)
|
| + }
|
| +
|
| + if (!use_openssl) {
|
| + sources -= [ "importer/nss_decryptor.cc" ]
|
| + if (!is_win && !is_mac) {
|
| + sources += [
|
| + "importer/nss_decryptor_system_nss.cc",
|
| + "importer/nss_decryptor_system_nss.h",
|
| + ]
|
| + deps += [
|
| + "//crypto",
|
| + "//crypto:platform",
|
| + ]
|
| + }
|
| + }
|
| +
|
| +
|
| + if (!is_win && !is_mac) {
|
| + sources += [ "image_writer/image_writer_stub.cc" ]
|
| + }
|
| + if (enable_printing != 1) {
|
| + sources -= [
|
| + "printing_handler.cc",
|
| + "printing_handler.h",
|
| + ]
|
| + }
|
| +
|
| + if (!enable_mdns) {
|
| + sources -= [
|
| + "local_discovery/service_discovery_message_handler.cc",
|
| + "local_discovery/service_discovery_message_handler.h",
|
| + ]
|
| + }
|
| +
|
| + forward_dependent_configs_from = [
|
| + "//chrome/common/extensions/api",
|
| + ]
|
| +}
|
|
|