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, ".", "..")
20 "//components/strings",
21 "//components/url_fixer",
22 "//content/public/common",
23 "//content/public/utility",
26 "//third_party/libxml",
33 sources += rebase_path(gypi_values.chrome_utility_importer_sources,
37 if (enable_extensions == 1) {
39 "//chrome/common/extensions/api",
40 #"//third_party/libexif", TODO(GYP)
43 forward_dependent_configs_from = [
44 "//chrome/common/extensions/api",
47 sources += rebase_path(gypi_values.chrome_utility_extensions_sources,
49 sources += rebase_path(gypi_values.chrome_utility_shared_media_sources,
52 if (is_win || is_mac) {
53 sources += rebase_path(
54 gypi_values.chrome_utility_win_mac_media_gallery_sources, ".", "..")
55 deps += [ "//components/wifi" ]
57 sources += [ "image_writer/image_writer_stub.cc" ]
61 sources += rebase_path(gypi_values.chrome_utility_mac_media_gallery_sources,
67 sources -= [ "importer/nss_decryptor.cc" ]
68 if (!is_win && !is_mac) {
70 "importer/nss_decryptor_system_nss.cc",
71 "importer/nss_decryptor_system_nss.h",
80 if (printing_mode != 1) {
82 "printing_handler.cc",
89 "local_discovery/service_discovery_message_handler.cc",
90 "local_discovery/service_discovery_message_handler.h",
94 if (safe_browsing_mode == 1) {
95 defines += [ "FULL_SAFE_BROWSING" ]