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 "//extensions/utility",
42 #"//third_party/libexif", TODO(GYP)
46 "//chrome/common/extensions/api",
49 sources += rebase_path(gypi_values.chrome_utility_extensions_sources,
51 sources += rebase_path(gypi_values.chrome_utility_shared_media_sources,
54 if (is_win || is_mac) {
55 sources += rebase_path(
56 gypi_values.chrome_utility_win_mac_media_gallery_sources, ".", "..")
57 deps += [ "//components/wifi" ]
59 sources += [ "image_writer/image_writer_stub.cc" ]
63 sources += rebase_path(gypi_values.chrome_utility_mac_media_gallery_sources,
69 if (!is_win && !is_mac && !is_android) {
70 sources -= [ "importer/nss_decryptor.cc" ]
72 } else { # !use_openssl
73 if (!is_win && !is_mac) {
75 "importer/nss_decryptor_system_nss.cc",
76 "importer/nss_decryptor_system_nss.h",
85 if (!enable_print_preview) {
87 "printing_handler.cc",
94 "local_discovery/service_discovery_message_handler.cc",
95 "local_discovery/service_discovery_message_handler.h",
99 if (safe_browsing_mode == 1) {
100 defines += [ "FULL_SAFE_BROWSING" ]