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

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

Issue 345693002: Extensions: Split extensions utility IPC messages into its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 7
8 gypi_values = exec_script( 8 gypi_values = exec_script(
9 "//build/gypi_to_gn.py", 9 "//build/gypi_to_gn.py",
10 [ rebase_path("../chrome_utility.gypi") ], 10 [ rebase_path("../chrome_utility.gypi") ],
11 "scope", 11 "scope",
12 [ "../chrome_utility.gypi" ]) 12 [ "../chrome_utility.gypi" ])
13 13
14 static_library("utility") { 14 static_library("utility") {
15 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..") 15 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..")
16 16
17 deps = [ 17 deps = [
18 "//base", 18 "//base",
19 #'../components/components_strings.gyp:components_strings', TODO(GYP) 19 #"../components/components_strings.gyp:components_strings", TODO(GYP)
20 #'../components/components.gyp:url_fixer', TODO(GYP) 20 #"../components/components.gyp:url_fixer", TODO(GYP)
21 "//content/public/common", 21 "//content/public/common",
22 "//content/public/utility", 22 "//content/public/utility",
23 #'../media/media.gyp:media', TODO(GYP) 23 #"../media/media.gyp:media", TODO(GYP)
24 "//skia", 24 "//skia",
25 "//third_party/libxml", 25 "//third_party/libxml",
26 "//chrome:resources", 26 "//chrome:resources",
27 "//chrome:strings", 27 "//chrome:strings",
28 "//chrome/common", 28 "//chrome/common",
29 "//chrome/common/extensions/api",
30 ] 29 ]
31 30
32 if (is_win || is_mac) { 31 if (!is_android) {
33 sources += rebase_path( 32 sources += rebase_path(gypi_values.chrome_utility_importer_sources,
34 gypi_values.chrome_utility_win_mac_media_gallery_sources, ".", "..") 33 ".", "..")
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 } 34 }
43 35
44 if (is_android) { 36 if (enable_extensions == 1) {
45 sources -= [ "profile_import_handler.cc" ] 37 deps += [
46 } else { 38 "//chrome/common/extensions/api",
47 sources += rebase_path(gypi_values.chrome_utility_importer_sources, 39 #"//third_party/libexif", TODO(GYP)
40 ]
41
42 forward_dependent_configs_from = [
43 "//chrome/common/extensions/api",
44 ]
45
46 sources += rebase_path(gypi_values.chrome_utility_extensions_sources,
48 ".", "..") 47 ".", "..")
49 sources += rebase_path(gypi_values.chrome_utility_shared_media_sources, 48 sources += rebase_path(gypi_values.chrome_utility_shared_media_sources,
50 ".", "..") 49 ".", "..")
51 #deps += [ "//third_party/libexif" ] TODO(GYP) 50
51 if (is_win || is_mac) {
52 sources += rebase_path(
53 gypi_values.chrome_utility_win_mac_media_gallery_sources, ".", "..")
54 #deps += [ "//components/wifi" ] TODO(GYP)
55 } else {
56 sources += [ "image_writer/image_writer_stub.cc" ]
57 }
58
59 if (is_win) {
60 sources += rebase_path(gypi_values.chrome_utility_win_media_gallery_source s,
61 ".", "..")
62 }
63
64 if (is_mac) {
65 sources += rebase_path(gypi_values.chrome_utility_mac_media_gallery_source s,
66 ".", "..")
67 }
52 } 68 }
53 69
54 if (!use_openssl) { 70 if (!use_openssl) {
55 sources -= [ "importer/nss_decryptor.cc" ] 71 sources -= [ "importer/nss_decryptor.cc" ]
56 if (!is_win && !is_mac) { 72 if (!is_win && !is_mac) {
57 sources += [ 73 sources += [
58 "importer/nss_decryptor_system_nss.cc", 74 "importer/nss_decryptor_system_nss.cc",
59 "importer/nss_decryptor_system_nss.h", 75 "importer/nss_decryptor_system_nss.h",
60 ] 76 ]
61 deps += [ 77 deps += [
62 "//crypto", 78 "//crypto",
63 "//crypto:platform", 79 "//crypto:platform",
64 ] 80 ]
65 } 81 }
66 } 82 }
67 83
68
69 if (!is_win && !is_mac) {
70 sources += [ "image_writer/image_writer_stub.cc" ]
71 }
72 if (enable_printing != 1) { 84 if (enable_printing != 1) {
73 sources -= [ 85 sources -= [
74 "printing_handler.cc", 86 "printing_handler.cc",
75 "printing_handler.h", 87 "printing_handler.h",
76 ] 88 ]
77 } 89 }
78 90
79 if (!enable_mdns) { 91 if (!enable_mdns) {
80 sources -= [ 92 sources -= [
81 "local_discovery/service_discovery_message_handler.cc", 93 "local_discovery/service_discovery_message_handler.cc",
82 "local_discovery/service_discovery_message_handler.h", 94 "local_discovery/service_discovery_message_handler.h",
83 ] 95 ]
84 } 96 }
85
86 forward_dependent_configs_from = [
87 "//chrome/common/extensions/api",
88 ]
89 } 97 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698