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("//build/gypi_to_gn.py",
9 [ rebase_path("../chrome_utility.gypi") ],
11 [ "../chrome_utility.gypi" ])
13 static_library("utility") {
14 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..")
20 "//components/safe_json_parser:safe_json_parser_message_filter",
21 "//components/search_engines",
22 "//components/strings",
23 "//components/url_fixer",
24 "//content/public/common",
25 "//content/public/utility",
28 "//third_party/libxml",
36 "//chrome/common:mojo_bindings",
37 "//net:net_utility_services",
40 rebase_path(gypi_values.chrome_utility_importer_sources, ".", "..")
43 if (enable_extensions) {
45 "//chrome/common/extensions/api",
46 "//extensions/utility",
49 public_deps += [ "//chrome/common/extensions/api" ]
52 rebase_path(gypi_values.chrome_utility_extensions_sources, ".", "..")
54 rebase_path(gypi_values.chrome_utility_shared_media_sources, ".", "..")
56 # Prevent wininet from loading in the renderer. http://crbug.com/460679
58 ldflags = [ "/DELAYLOAD:wininet.dll" ]
61 if (is_win || is_mac) {
63 rebase_path(gypi_values.chrome_utility_win_mac_media_gallery_sources,
66 deps += [ "//components/wifi" ]
68 sources += [ "image_writer/image_writer_stub.cc" ]
73 rebase_path(gypi_values.chrome_utility_mac_media_gallery_sources,
78 # Linux should use system libexif
80 # TODO(thestig): Properly support building on Linux and ChromeOS.
81 deps += [ "//third_party/libexif" ]
87 "importer/nss_decryptor_system_nss.cc",
88 "importer/nss_decryptor_system_nss.h",
96 if (!enable_print_preview) {
98 "printing_handler.cc",
105 "local_discovery/service_discovery_message_handler.cc",
106 "local_discovery/service_discovery_message_handler.h",