Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(792)

Side by Side Diff: chrome/utility/BUILD.gn

Issue 348363002: Add chrome/plugin and chrome/utility to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/plugin/BUILD.gn ('k') | content/child/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni")
7
8 gypi_values = exec_script(
9 "//build/gypi_to_gn.py",
10 [ rebase_path("../chrome_utility.gypi") ],
11 "scope",
12 [ "../chrome_utility.gypi" ])
13
14 static_library("utility") {
15 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..")
16
17 deps = [
18 "//base",
19 #'../components/components_strings.gyp:components_strings', TODO(GYP)
20 #'../components/components.gyp:url_fixer', TODO(GYP)
21 "//content/public/common",
22 "//content/public/utility",
23 #'../media/media.gyp:media', TODO(GYP)
24 "//skia",
25 "//third_party/libxml",
26 "//chrome:resources",
27 "//chrome:strings",
28 "//chrome/common",
29 "//chrome/common/extensions/api",
30 ]
31
32 if (is_win || is_mac) {
33 sources += rebase_path(
34 gypi_values.chrome_utility_win_mac_media_gallery_sources, ".", "..")
35 #deps += [ "//components/wifi" ] TODO(GYP)
36 }
37 if (is_mac) {
38 sources += [
39 "media_galleries/iphoto_library_parser.cc",
40 "media_galleries/iphoto_library_parser.h",
41 ]
42 }
43
44 if (is_android) {
45 sources -= [ "profile_import_handler.cc" ]
46 } else {
47 sources += rebase_path(gypi_values.chrome_utility_importer_sources,
48 ".", "..")
49 sources += rebase_path(gypi_values.chrome_utility_shared_media_sources,
50 ".", "..")
51 #deps += [ "//third_party/libexif" ] TODO(GYP)
52 }
53
54 if (!use_openssl) {
55 sources -= [ "importer/nss_decryptor.cc" ]
56 if (!is_win && !is_mac) {
57 sources += [
58 "importer/nss_decryptor_system_nss.cc",
59 "importer/nss_decryptor_system_nss.h",
60 ]
61 deps += [
62 "//crypto",
63 "//crypto:platform",
64 ]
65 }
66 }
67
68
69 if (!is_win && !is_mac) {
70 sources += [ "image_writer/image_writer_stub.cc" ]
71 }
72 if (enable_printing != 1) {
73 sources -= [
74 "printing_handler.cc",
75 "printing_handler.h",
76 ]
77 }
78
79 if (!enable_mdns) {
80 sources -= [
81 "local_discovery/service_discovery_message_handler.cc",
82 "local_discovery/service_discovery_message_handler.h",
83 ]
84 }
85
86 forward_dependent_configs_from = [
87 "//chrome/common/extensions/api",
88 ]
89 }
OLDNEW
« no previous file with comments | « chrome/plugin/BUILD.gn ('k') | content/child/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698