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

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: disable another test Created 6 years, 5 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_mac) {
60 sources += rebase_path(gypi_values.chrome_utility_mac_media_gallery_source s,
61 ".", "..")
62 }
52 } 63 }
53 64
54 if (!use_openssl) { 65 if (!use_openssl) {
55 sources -= [ "importer/nss_decryptor.cc" ] 66 sources -= [ "importer/nss_decryptor.cc" ]
56 if (!is_win && !is_mac) { 67 if (!is_win && !is_mac) {
57 sources += [ 68 sources += [
58 "importer/nss_decryptor_system_nss.cc", 69 "importer/nss_decryptor_system_nss.cc",
59 "importer/nss_decryptor_system_nss.h", 70 "importer/nss_decryptor_system_nss.h",
60 ] 71 ]
61 deps += [ 72 deps += [
62 "//crypto", 73 "//crypto",
63 "//crypto:platform", 74 "//crypto:platform",
64 ] 75 ]
65 } 76 }
66 } 77 }
67 78
68
69 if (!is_win && !is_mac) {
70 sources += [ "image_writer/image_writer_stub.cc" ]
71 }
72 if (enable_printing != 1) { 79 if (enable_printing != 1) {
73 sources -= [ 80 sources -= [
74 "printing_handler.cc", 81 "printing_handler.cc",
75 "printing_handler.h", 82 "printing_handler.h",
76 ] 83 ]
77 } 84 }
78 85
79 if (!enable_mdns) { 86 if (!enable_mdns) {
80 sources -= [ 87 sources -= [
81 "local_discovery/service_discovery_message_handler.cc", 88 "local_discovery/service_discovery_message_handler.cc",
82 "local_discovery/service_discovery_message_handler.h", 89 "local_discovery/service_discovery_message_handler.h",
83 ] 90 ]
84 } 91 }
85
86 forward_dependent_configs_from = [
87 "//chrome/common/extensions/api",
88 ]
89 } 92 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/chrome_utility_extensions_messages.h ('k') | chrome/utility/chrome_content_utility_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698