1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni")
8 gypi_values = exec_script(
9 "//build/gypi_to_gn.py",
10 [ rebase_path("../chrome_utility.gypi") ],
12 [ "../chrome_utility.gypi" ])
14 static_library("utility") {
15 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..")
21 "//components/strings",
22 "//components/url_fixer",
23 "//content/public/common",
24 "//content/public/utility",
27 "//third_party/libxml",
34 sources += rebase_path(gypi_values.chrome_utility_importer_sources,
38 if (enable_extensions) {
40 "//chrome/common/extensions/api",
41 #"//third_party/libexif", TODO(GYP)
45 "//chrome/common/extensions/api",
48 sources += rebase_path(gypi_values.chrome_utility_extensions_sources,
50 sources += rebase_path(gypi_values.chrome_utility_shared_media_sources,
53 if (is_win || is_mac) {
54 sources += rebase_path(
55 gypi_values.chrome_utility_win_mac_media_gallery_sources, ".", "..")
56 deps += [ "//components/wifi" ]
58 sources += [ "image_writer/image_writer_stub.cc" ]
62 sources += rebase_path(gypi_values.chrome_utility_mac_media_gallery_sources,
68 if (!is_win && !is_mac && !is_android) {
69 sources -= [ "importer/nss_decryptor.cc" ]
71 } else { # !use_openssl
72 if (!is_win && !is_mac) {
74 "importer/nss_decryptor_system_nss.cc",
75 "importer/nss_decryptor_system_nss.h",
84 if (printing_mode != 1) {
86 "printing_handler.cc",
93 "local_discovery/service_discovery_message_handler.cc",
94 "local_discovery/service_discovery_message_handler.h",
98 if (safe_browsing_mode == 1) {
99 defines += [ "FULL_SAFE_BROWSING" ]