OLD | NEW |
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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//chrome/version.gni") |
| 8 |
| 9 # TODO(GYP) for Windows need to the the reorder-imports step which probably |
| 10 # means adding another target and renaming this to chrome_initial like in GYP. |
| 11 #executable("chrome") { # TODO(GYP) enable once this links. |
| 12 source_set("chrome") { |
| 13 # Because the sources list varies so significantly per-platform, generally |
| 14 # each platform lists its own files rather than relying on filtering or |
| 15 # removing unused files. |
| 16 sources = [ |
| 17 "app/chrome_exe_resource.h", |
| 18 "//content/public/common/content_switches.cc", |
| 19 ] |
| 20 deps = [] |
| 21 |
| 22 # TODO(GYP) mac_bundle_resources, xcode_settings |
| 23 |
| 24 # TODO(GYP) order_profiling, order_text_section |
| 25 |
| 26 if (is_win) { |
| 27 sources += [ |
| 28 "app/chrome_exe_main_win.cc", |
| 29 "app/client_util.cc", |
| 30 "app/client_util.h", |
| 31 "app/signature_validator_win.cc", |
| 32 "app/signature_validator_win.h", |
| 33 "//content/app/startup_helper_win.cc", |
| 34 ] |
| 35 deps += [ "//ui/gfx" ] |
| 36 } else if (use_aura) { |
| 37 # Non-Windows aura entrypoint. |
| 38 sources += [ "app/chrome_exe_main_aura.cc" ] |
| 39 } |
| 40 |
| 41 if (is_linux) { |
| 42 # TODO(GYP) manpage action |
| 43 |
| 44 sources += [ |
| 45 "app/chrome_dll_resource.h", |
| 46 "app/chrome_main.cc", |
| 47 "app/chrome_main_delegate.cc", |
| 48 "app/chrome_main_delegate.h", |
| 49 ] |
| 50 |
| 51 deps += [ |
| 52 # On Linux, link the dependencies (libraries) that make up actual |
| 53 # Chromium functionality directly into the executable. |
| 54 ":browser_dependencies", |
| 55 ":child_dependencies", |
| 56 |
| 57 "//base/allocator", |
| 58 # Needed to use the master_preferences functions |
| 59 "//chrome/installer/util", |
| 60 "//content/app:both", |
| 61 ] |
| 62 |
| 63 # Needed for chrome_main.cc initialization of libraries. |
| 64 configs += [ "//build/config/linux:pangocairo" ] |
| 65 |
| 66 # TODO(GYP) ['profiling==0 and linux_disable_pie==0', { |
| 67 # 'ldflags': [ |
| 68 # '-pie', |
| 69 # ], |
| 70 #}], |
| 71 |
| 72 if (use_x11) { |
| 73 configs += [ |
| 74 "//build/config/linux:x11", |
| 75 "//build/config/linux:xext", |
| 76 ] |
| 77 } |
| 78 } |
| 79 |
| 80 if (is_mac) { |
| 81 sources += [ |
| 82 "app/chrome_exe_main_mac.cc", |
| 83 ] |
| 84 } |
| 85 # TODO(GYP) is_mac |
| 86 |
| 87 } |
7 | 88 |
8 shared_library("main_dll") { | 89 shared_library("main_dll") { |
9 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 90 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
10 | 91 |
11 deps = [ | 92 deps = [ |
12 ":browser_dependencies", | 93 ":browser_dependencies", |
13 "//base/allocator", | 94 "//base/allocator", |
14 ] | 95 ] |
15 if (is_win) { | 96 if (is_win) { |
16 output_name = "chrome" | 97 output_name = "chrome" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 "//chrome/plugin", | 202 "//chrome/plugin", |
122 "//chrome/renderer", | 203 "//chrome/renderer", |
123 "//chrome/utility", | 204 "//chrome/utility", |
124 "//content/gpu", | 205 "//content/gpu", |
125 "//content/ppapi_plugin", | 206 "//content/ppapi_plugin", |
126 "//third_party/WebKit/public:blink_devtools_frontend_resources", | 207 "//third_party/WebKit/public:blink_devtools_frontend_resources", |
127 ] | 208 ] |
128 } | 209 } |
129 } | 210 } |
130 | 211 |
| 212 if (is_win) { |
| 213 # TODO(brettw) this duplicates "//chrome/common:version" which applies to |
| 214 # Linux. |
| 215 process_version("version_header") { |
| 216 visibility = ":*" |
| 217 source = "version.h.in" |
| 218 # TODO(brettw) this should move to $target_gen_dir/version.h and |
| 219 # source files including it should reference it via "chrome/version.h" |
| 220 output = "$root_gen_dir/version.h" |
| 221 } |
| 222 } |
| 223 |
131 # GYP version: chrome/chrome_resources.gyp:chrome_resources | 224 # GYP version: chrome/chrome_resources.gyp:chrome_resources |
132 group("resources") { | 225 group("resources") { |
133 deps = [ | 226 deps = [ |
134 # Note: GYP lists some dependencies in addition to these actions. However, | 227 # Note: GYP lists some dependencies in addition to these actions. However, |
135 # these are just dependencies for the actions themselves, which our actions | 228 # these are just dependencies for the actions themselves, which our actions |
136 # list individually when needed. | 229 # list individually when needed. |
137 "//chrome/browser:resources", | 230 "//chrome/browser:resources", |
138 "//chrome/common:resources", | 231 "//chrome/common:resources", |
139 "//chrome/renderer:resources", | 232 "//chrome/renderer:resources", |
140 ] | 233 ] |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 275 |
183 # GYP version: chrome/chrome_resources.gyp:chrome_strings | 276 # GYP version: chrome/chrome_resources.gyp:chrome_strings |
184 group("strings") { | 277 group("strings") { |
185 deps = [ | 278 deps = [ |
186 "//chrome/app:chromium_strings", | 279 "//chrome/app:chromium_strings", |
187 "//chrome/app:generated_resources", | 280 "//chrome/app:generated_resources", |
188 "//chrome/app:google_chrome_strings", | 281 "//chrome/app:google_chrome_strings", |
189 "//chrome/app/resources:locale_settings", | 282 "//chrome/app/resources:locale_settings", |
190 ] | 283 ] |
191 } | 284 } |
OLD | NEW |