Chromium Code Reviews| 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/locales.gni") | 6 import("//build/config/locales.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//chrome/chrome_repack_locales.gni") | 8 import("//chrome/chrome_repack_locales.gni") |
| 9 import("//chrome/version.gni") | 9 import("//chrome/version.gni") |
| 10 | 10 |
| 11 if (is_android) { | 11 if (is_android) { |
| 12 import("//build/config/android/rules.gni") | 12 import("//build/config/android/rules.gni") |
| 13 } | 13 } |
| 14 | 14 |
| 15 if (!is_android) { | 15 if (!is_android) { |
| 16 # TODO(GYP) for Windows need to the the reorder-imports step which probably | |
| 17 # means adding another target and renaming this to chrome_initial like in GYP. | |
| 18 executable("chrome") { | |
| 19 # Because the sources list varies so significantly per-platform, generally | |
| 20 # each platform lists its own files rather than relying on filtering or | |
| 21 # removing unused files. | |
| 22 sources = [ | |
| 23 "app/chrome_exe_resource.h", | |
| 24 ] | |
| 25 deps = [] | |
| 26 datadeps = [] | |
| 16 | 27 |
| 17 # TODO(GYP) for Windows need to the the reorder-imports step which probably | 28 # TODO(GYP) mac_bundle_resources, xcode_settings |
| 18 # means adding another target and renaming this to chrome_initial like in GYP. | |
| 19 executable("chrome") { | |
| 20 # Because the sources list varies so significantly per-platform, generally | |
| 21 # each platform lists its own files rather than relying on filtering or | |
| 22 # removing unused files. | |
| 23 sources = [ | |
| 24 "app/chrome_exe_resource.h", | |
| 25 ] | |
| 26 deps = [] | |
| 27 datadeps = [] | |
| 28 | 29 |
| 29 # TODO(GYP) mac_bundle_resources, xcode_settings | 30 # TODO(GYP) order_profiling, order_text_section |
| 30 | 31 |
| 31 # TODO(GYP) order_profiling, order_text_section | 32 if (is_win) { |
| 33 sources += [ | |
| 34 "app/chrome_exe_main_win.cc", | |
| 35 "app/client_util.cc", | |
| 36 "app/client_util.h", | |
| 37 "app/signature_validator_win.cc", | |
| 38 "app/signature_validator_win.h", | |
| 39 "//content/app/startup_helper_win.cc", | |
| 40 ] | |
| 41 deps += [ "//ui/gfx" ] | |
| 42 } else if (use_aura) { | |
| 43 # Non-Windows aura entrypoint. | |
| 44 sources += [ "app/chrome_exe_main_aura.cc" ] | |
| 45 } | |
| 32 | 46 |
| 33 if (is_win) { | 47 if (is_linux) { |
| 34 sources += [ | 48 # TODO(GYP) manpage action |
| 35 "app/chrome_exe_main_win.cc", | |
| 36 "app/client_util.cc", | |
| 37 "app/client_util.h", | |
| 38 "app/signature_validator_win.cc", | |
| 39 "app/signature_validator_win.h", | |
| 40 "//content/app/startup_helper_win.cc", | |
| 41 ] | |
| 42 deps += [ "//ui/gfx" ] | |
| 43 } else if (use_aura) { | |
| 44 # Non-Windows aura entrypoint. | |
| 45 sources += [ "app/chrome_exe_main_aura.cc" ] | |
| 46 } | |
| 47 | 49 |
| 48 if (is_linux) { | 50 sources += [ |
| 49 # TODO(GYP) manpage action | 51 "app/chrome_dll_resource.h", |
| 52 "app/chrome_main.cc", | |
| 53 "app/chrome_main_delegate.cc", | |
| 54 "app/chrome_main_delegate.h", | |
| 55 ] | |
| 50 | 56 |
| 51 sources += [ | 57 deps += [ |
| 52 "app/chrome_dll_resource.h", | 58 # On Linux, link the dependencies (libraries) that make up actual |
| 53 "app/chrome_main.cc", | 59 # Chromium functionality directly into the executable. |
| 54 "app/chrome_main_delegate.cc", | 60 ":browser_dependencies", |
| 55 "app/chrome_main_delegate.h", | 61 ":child_dependencies", |
| 56 ] | 62 "//base/allocator", |
| 57 | 63 |
| 58 deps += [ | 64 # Needed to use the master_preferences functions |
| 59 # On Linux, link the dependencies (libraries) that make up actual | 65 "//chrome/installer/util", |
| 60 # Chromium functionality directly into the executable. | 66 "//content/public/app:both", |
| 61 ":browser_dependencies", | 67 ] |
| 62 ":child_dependencies", | |
| 63 | 68 |
| 64 "//base/allocator", | 69 # Needed for chrome_main.cc initialization of libraries. |
| 65 # Needed to use the master_preferences functions | 70 configs += [ "//build/config/linux:pangocairo" ] |
| 66 "//chrome/installer/util", | |
| 67 "//content/public/app:both", | |
| 68 ] | |
| 69 | 71 |
| 70 # Needed for chrome_main.cc initialization of libraries. | 72 # TODO(GYP) ['profiling==0 and linux_disable_pie==0', { |
| 71 configs += [ "//build/config/linux:pangocairo" ] | 73 # 'ldflags': [ |
| 74 # '-pie', | |
| 75 # ], | |
| 76 #}], | |
| 72 | 77 |
| 73 # TODO(GYP) ['profiling==0 and linux_disable_pie==0', { | 78 if (use_x11) { |
| 74 # 'ldflags': [ | 79 configs += [ |
| 75 # '-pie', | 80 "//build/config/linux:x11", |
| 76 # ], | 81 "//build/config/linux:xext", |
| 77 #}], | 82 ] |
| 83 } | |
| 84 } | |
| 78 | 85 |
| 79 if (use_x11) { | 86 if (is_mac) { |
| 80 configs += [ | 87 sources += [ "app/chrome_exe_main_mac.cc" ] |
| 81 "//build/config/linux:x11", | 88 # TODO(GYP) lots more stuff in the is_mac block. |
| 82 "//build/config/linux:xext", | 89 } else { # Non-Mac. |
| 90 deps += [ | |
| 91 ":packed_extra_resources", | |
| 92 ":packed_resources", | |
| 93 | |
| 94 # Copy Flash Player files to PRODUCT_DIR if applicable. Let the .gyp | |
| 95 # file decide what to do on a per-OS basis; on Mac, internal plugins | |
| 96 # go inside the framework, so this dependency is in chrome_dll.gypi. | |
| 97 #'../third_party/adobe/flash/flash_player.gyp:flapper_binaries', TODO(G YP) | |
| 98 | |
| 99 # Copy CDM files to PRODUCT_DIR if applicable. Let the .gyp | |
| 100 # file decide what to do on a per-OS basis; on Mac, internal plugins | |
| 101 # go inside the framework, so this dependency is in chrome_dll.gypi. | |
| 102 #'../third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter', TOD O(GYP) | |
| 83 ] | 103 ] |
| 104 | |
| 105 # TODO(GYP) some stuff from GYP including chrome_multiple_dll. | |
| 106 } | |
| 107 | |
| 108 if (!is_mac) { | |
| 109 # On Mac this is done in chrome_dll.gypi. | |
| 110 datadeps += [ "//pdf" ] | |
| 111 # TODO(GYP) pdf linux symbols | |
| 84 } | 112 } |
| 85 } | 113 } |
| 86 | |
| 87 if (is_mac) { | |
| 88 sources += [ | |
| 89 "app/chrome_exe_main_mac.cc", | |
| 90 ] | |
| 91 # TODO(GYP) lots more stuff in the is_mac block. | |
| 92 } else { # Non-Mac. | |
| 93 deps += [ | |
| 94 ":packed_extra_resources", | |
| 95 ":packed_resources", | |
| 96 | |
| 97 # Copy Flash Player files to PRODUCT_DIR if applicable. Let the .gyp | |
| 98 # file decide what to do on a per-OS basis; on Mac, internal plugins | |
| 99 # go inside the framework, so this dependency is in chrome_dll.gypi. | |
| 100 #'../third_party/adobe/flash/flash_player.gyp:flapper_binaries', TODO(GYP ) | |
| 101 | |
| 102 # Copy CDM files to PRODUCT_DIR if applicable. Let the .gyp | |
| 103 # file decide what to do on a per-OS basis; on Mac, internal plugins | |
| 104 # go inside the framework, so this dependency is in chrome_dll.gypi. | |
| 105 #'../third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter', TODO( GYP) | |
| 106 ] | |
| 107 | |
| 108 # TODO(GYP) some stuff from GYP including chrome_multiple_dll. | |
| 109 | |
| 110 } | |
| 111 | |
| 112 | |
| 113 if (!is_mac) { | |
| 114 # On Mac this is done in chrome_dll.gypi. | |
| 115 datadeps += [ "//pdf" ] | |
| 116 | |
| 117 # TODO(GYP) pdf linux symbols | |
| 118 } | |
| 119 } | |
| 120 | |
| 121 } # !is_android | 114 } # !is_android |
| 122 | 115 |
| 123 shared_library("main_dll") { | 116 shared_library("main_dll") { |
| 124 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 117 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 125 | 118 |
| 126 deps = [ | 119 deps = [ |
| 127 ":browser_dependencies", | 120 ":browser_dependencies", |
| 128 "//base/allocator", | 121 "//base/allocator", |
| 129 ] | 122 ] |
| 130 if (is_win) { | 123 if (is_win) { |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 147 deps += [ | 140 deps += [ |
| 148 # On Windows, link the dependencies (libraries) that make up actual | 141 # On Windows, link the dependencies (libraries) that make up actual |
| 149 # Chromium functionality into this .dll. | 142 # Chromium functionality into this .dll. |
| 150 #'chrome_version_resources', TODO(GYP) | 143 #'chrome_version_resources', TODO(GYP) |
| 151 "//chrome/app/theme:chrome_unscaled_resources", | 144 "//chrome/app/theme:chrome_unscaled_resources", |
| 152 "//content/app/resources", | 145 "//content/app/resources", |
| 153 "//crypto", | 146 "//crypto", |
| 154 "//net:net_resources", | 147 "//net:net_resources", |
| 155 "//third_party/wtl", | 148 "//third_party/wtl", |
| 156 "//ui/views", | 149 "//ui/views", |
| 150 | |
| 157 #'<(DEPTH)/chrome_elf/chrome_elf.gyp:chrome_elf' ] TODO(GYP) | 151 #'<(DEPTH)/chrome_elf/chrome_elf.gyp:chrome_elf' ] TODO(GYP) |
| 158 ] | 152 ] |
| 159 if (enable_configuration_policy) { | 153 if (enable_configuration_policy) { |
| 160 deps += [ "//components/policy" ] | 154 deps += [ "//components/policy" ] |
| 161 } | 155 } |
| 162 if (cpu_arch == "x86") { | 156 if (cpu_arch == "x86") { |
| 163 # Add a dependency to custom import library for user32 delay imports only | 157 # Add a dependency to custom import library for user32 delay imports only |
| 164 # in x86 builds. | 158 # in x86 builds. |
| 165 #deps += [ 'chrome_user32_delay_imports' ] TODO(GYP) | 159 #deps += [ 'chrome_user32_delay_imports' ] TODO(GYP) |
| 166 } | 160 } |
| 167 | 161 |
| 168 # TODO(GYP) incremental linking flags in debug builds | 162 # TODO(GYP) incremental linking flags in debug builds |
| 169 #'LinkIncremental': '<(msvs_large_module_debug_link_mode)', | 163 #'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 170 | 164 |
| 171 # TODO(GYP) Lots of VCLinkerTool stuff on Windows. | 165 # TODO(GYP) Lots of VCLinkerTool stuff on Windows. |
| 172 | 166 |
| 173 # TODO(GYP) chrome_pgo_phase on Windows. | 167 # TODO(GYP) chrome_pgo_phase on Windows. |
| 174 } | 168 } |
| 175 | 169 |
| 176 if (use_aura) { | 170 if (use_aura) { |
| 177 deps += [ "//ui/compositor" ] | 171 deps += [ "//ui/compositor" ] |
| 178 } | 172 } |
| 179 | 173 |
| 180 #TODO(GYP) add chrome_multiple_dll support | 174 #TODO(GYP) add chrome_multiple_dll support |
| 181 if (false) { #chrome_multiple_dll) { | 175 if (false) { #chrome_multiple_dll) { |
| 182 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] | 176 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] |
| 183 deps += [ | 177 deps += [ "//content/public/app:browser" ] |
| 184 "//content/public/app:browser", | |
| 185 ] | |
| 186 } else { | 178 } else { |
| 187 deps += [ | 179 deps += [ |
| 188 ":child_dependencies", | 180 ":child_dependencies", |
| 189 "//content/public/app:both", | 181 "//content/public/app:both", |
| 190 ] | 182 ] |
| 191 } | 183 } |
| 192 | 184 |
| 193 if (cld_version == 0 || cld_version == 2) { | 185 if (cld_version == 0 || cld_version == 2) { |
| 194 deps += [ | 186 deps += [ "//third_party/cld_2" ] |
| 195 "//third_party/cld_2", | |
| 196 ] | |
| 197 } | 187 } |
| 198 | 188 |
| 199 if (is_mac) { | 189 if (is_mac) { |
| 200 #['OS=="mac" and component!="shared_library"', { TODO(GYP) | 190 #['OS=="mac" and component!="shared_library"', { TODO(GYP) |
| 201 # 'includes': [ 'chrome_dll_bundle.gypi' ], | 191 # 'includes': [ 'chrome_dll_bundle.gypi' ], |
| 202 #}], | 192 #}], |
| 203 | |
| 204 # TODO(GYP) Lots of other stuff in the OS=="mac" block. | 193 # TODO(GYP) Lots of other stuff in the OS=="mac" block. |
| 205 } | 194 } |
| 206 } | 195 } |
| 207 | 196 |
| 208 # GYP version: chromium_browser_dependencies variable in chrome.gyp | 197 # GYP version: chromium_browser_dependencies variable in chrome.gyp |
| 209 group("browser_dependencies") { | 198 group("browser_dependencies") { |
| 210 deps = [ | 199 deps = [ |
| 211 "//chrome/browser", | 200 "//chrome/browser", |
| 212 "//chrome/common", | 201 "//chrome/common", |
| 213 "//sync", | 202 "//sync", |
| 214 ] | 203 ] |
| 215 if (!is_ios) { | 204 if (!is_ios) { |
| 216 deps += [ | 205 deps += [ "//ppapi:ppapi_host" ] |
| 217 "//ppapi:ppapi_host", | |
| 218 ] | |
| 219 } | 206 } |
| 220 | 207 |
| 221 if (enable_basic_printing || enable_print_preview) { | 208 if (enable_basic_printing || enable_print_preview) { |
| 222 deps += [ "//printing" ] | 209 deps += [ "//printing" ] |
| 223 if (enable_print_preview) { | 210 if (enable_print_preview) { |
| 224 deps += [ "//chrome/service" ] | 211 deps += [ "//chrome/service" ] |
| 225 } | 212 } |
| 226 } | 213 } |
| 227 } | 214 } |
| 228 | 215 |
| 229 # GYP version: chromium_child_dependencies variable in chrome.gyp | 216 # GYP version: chromium_child_dependencies variable in chrome.gyp |
| 230 group("child_dependencies") { | 217 group("child_dependencies") { |
| 231 deps = [ | 218 deps = [ |
| 232 "//chrome/common", | 219 "//chrome/common", |
| 233 "//sync", | 220 "//sync", |
| 234 ] | 221 ] |
| 235 if (!is_ios) { | 222 if (!is_ios) { |
| 236 deps += [ | 223 deps += [ |
| 237 "//chrome/browser/devtools", | 224 "//chrome/browser/devtools", |
| 238 "//chrome/plugin", | 225 "//chrome/plugin", |
| 239 "//chrome/renderer", | 226 "//chrome/renderer", |
| 240 "//chrome/utility", | 227 "//chrome/utility", |
| 241 "//content/public/child", | 228 "//content/public/child", |
| 242 "//third_party/WebKit/public:blink_devtools_frontend_resources", | 229 "//third_party/WebKit/public:blink_devtools_frontend_resources", |
| 243 ] | 230 ] |
| 244 } | 231 } |
| 245 if (cld_version == 0 || cld_version == 2) { | 232 if (cld_version == 0 || cld_version == 2) { |
| 246 deps += [ | 233 deps += [ "//third_party/cld_2:cld2_platform_impl" ] |
| 247 "//third_party/cld_2:cld2_platform_impl", | |
| 248 ] | |
| 249 } | 234 } |
| 250 } | 235 } |
| 251 | 236 |
| 252 if (is_win) { | 237 if (is_win) { |
| 253 # TODO(brettw) this duplicates "//chrome/common:version" which applies to | 238 # TODO(brettw) this duplicates "//chrome/common:version" which applies to |
| 254 # Linux. | 239 # Linux. |
| 255 process_version("version_header") { | 240 process_version("version_header") { |
| 256 # TODO(brettW) this should have more reduced visibility, but chrome/browser | 241 # TODO(brettW) this should have more reduced visibility, but chrome/browser |
| 257 # currently depends on this. | 242 # currently depends on this. |
| 258 #visibility = [ ":*" ] | 243 #visibility = [ ":*" ] |
| 259 source = "version.h.in" | 244 source = "version.h.in" |
| 245 | |
| 260 # TODO(brettw) this should move to $target_gen_dir/version.h and | 246 # TODO(brettw) this should move to $target_gen_dir/version.h and |
| 261 # source files including it should reference it via "chrome/version.h" | 247 # source files including it should reference it via "chrome/version.h" |
| 262 output = "$root_gen_dir/version.h" | 248 output = "$root_gen_dir/version.h" |
| 263 } | 249 } |
| 264 } | 250 } |
| 265 | 251 |
| 266 # GYP version: chrome/chrome_resources.gyp:chrome_resources | 252 # GYP version: chrome/chrome_resources.gyp:chrome_resources |
| 267 group("resources") { | 253 group("resources") { |
| 268 deps = [ | 254 deps = [ |
| 269 # Note: GYP lists some dependencies in addition to these actions. However, | 255 # Note: GYP lists some dependencies in addition to these actions. However, |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 459 template("chrome_repack_percent") { | 445 template("chrome_repack_percent") { |
| 460 percent = invoker.percent | 446 percent = invoker.percent |
| 461 | 447 |
| 462 repack_name = "${target_name}_repack" | 448 repack_name = "${target_name}_repack" |
| 463 repack_output_file = "$root_gen_dir/repack/chrome_${percent}_percent.pak" | 449 repack_output_file = "$root_gen_dir/repack/chrome_${percent}_percent.pak" |
| 464 | 450 |
| 465 copy_name = target_name | 451 copy_name = target_name |
| 466 | 452 |
| 467 repack(repack_name) { | 453 repack(repack_name) { |
| 468 visibility = [ ":$copy_name" ] | 454 visibility = [ ":$copy_name" ] |
| 455 | |
| 469 # All sources should also have deps for completeness. | 456 # All sources should also have deps for completeness. |
| 470 sources = [ | 457 sources = [ |
| 471 "$root_gen_dir/components/components_resources_${percent}_percent.pak", | 458 "$root_gen_dir/components/components_resources_${percent}_percent.pak", |
| 472 "$root_gen_dir/ui/resources/ui_resources_${percent}_percent.pak", | 459 "$root_gen_dir/ui/resources/ui_resources_${percent}_percent.pak", |
| 473 "$root_gen_dir/chrome/renderer_resources_${percent}_percent.pak", | 460 "$root_gen_dir/chrome/renderer_resources_${percent}_percent.pak", |
| 474 "$root_gen_dir/chrome/theme_resources_${percent}_percent.pak", | 461 "$root_gen_dir/chrome/theme_resources_${percent}_percent.pak", |
| 475 ] | 462 ] |
| 476 | 463 |
| 477 deps = [ | 464 deps = [ |
| 478 "//chrome/app/theme:theme_resources", | 465 "//chrome/app/theme:theme_resources", |
| 479 "//chrome/renderer:resources", | 466 "//chrome/renderer:resources", |
| 480 "//components/strings", | 467 "//components/strings", |
| 481 "//net:net_resources", | 468 "//net:net_resources", |
| 482 ] | 469 ] |
| 483 | 470 |
| 484 if (!is_ios) { | 471 if (!is_ios) { |
| 485 sources += [ | 472 sources += [ "$root_gen_dir/content/app/resources/content_resources_${perc ent}_percent.pak" ] |
| 486 "$root_gen_dir/content/app/resources/content_resources_${percent}_percen t.pak", | |
| 487 ] | |
| 488 deps += [ "//content:resources" ] | 473 deps += [ "//content:resources" ] |
| 489 } | 474 } |
| 490 if (use_ash) { | 475 if (use_ash) { |
| 491 sources += [ "$root_gen_dir/ash/resources/ash_resources_${percent}_percent .pak" ] | 476 sources += |
| 477 [ "$root_gen_dir/ash/resources/ash_resources_${percent}_percent.pak" ] | |
|
tfarina
2014/12/03 18:30:07
ouch, is that the format we want? I have a slightl
scottmg
2014/12/03 20:07:37
It's preferred at the moment because it's fewer li
| |
| 492 deps += [ "//ash/resources" ] | 478 deps += [ "//ash/resources" ] |
| 493 } | 479 } |
| 494 if (use_athena) { | 480 if (use_athena) { |
| 495 sources += [ | 481 sources += [ "$root_gen_dir/athena/resources/athena_resources_${percent}_p ercent.pak" ] |
| 496 "$root_gen_dir/athena/resources/athena_resources_${percent}_percent.pak" , | |
| 497 ] | |
| 498 deps += [ "//athena/resources" ] | 482 deps += [ "//athena/resources" ] |
| 499 } | 483 } |
| 500 if (is_chromeos) { | 484 if (is_chromeos) { |
| 501 sources += [ | 485 sources += [ "$root_gen_dir/ui/chromeos/resources/ui_chromeos_resources_${ percent}_percent.pak" ] |
| 502 "$root_gen_dir/ui/chromeos/resources/ui_chromeos_resources_${percent}_pe rcent.pak", | |
| 503 ] | |
| 504 deps += [ "//ui/chromeos/resources" ] | 486 deps += [ "//ui/chromeos/resources" ] |
| 505 } | 487 } |
| 506 if (enable_extensions) { | 488 if (enable_extensions) { |
| 507 sources += [ | 489 sources += [ "$root_gen_dir/extensions/extensions_browser_resources_${perc ent}_percent.pak" ] |
| 508 "$root_gen_dir/extensions/extensions_browser_resources_${percent}_percen t.pak", | |
| 509 ] | |
| 510 } | 490 } |
| 511 | 491 |
| 512 output = repack_output_file | 492 output = repack_output_file |
| 513 } | 493 } |
| 514 | 494 |
| 515 copy(copy_name) { | 495 copy(copy_name) { |
| 516 visibility = [ ":*" ] | 496 visibility = [ ":*" ] |
| 517 deps = [ ":$repack_name" ] | 497 deps = [ |
| 518 sources = [ repack_output_file ] | 498 ":$repack_name", |
| 499 ] | |
| 500 sources = [ | |
| 501 repack_output_file, | |
| 502 ] | |
| 519 outputs = [ "$root_build_dir/chrome_${percent}_percent.pak" ] | 503 outputs = [ "$root_build_dir/chrome_${percent}_percent.pak" ] |
| 520 } | 504 } |
| 521 } | 505 } |
| 522 | 506 |
| 523 chrome_repack_percent("repack_chrome_100_percent") { | 507 chrome_repack_percent("repack_chrome_100_percent") { |
| 524 percent = "100" | 508 percent = "100" |
| 525 } | 509 } |
| 526 | 510 |
| 527 if (enable_hidpi) { | 511 if (enable_hidpi) { |
| 528 chrome_repack_percent("repack_chrome_200_percent") { | 512 chrome_repack_percent("repack_chrome_200_percent") { |
| 529 percent = "200" | 513 percent = "200" |
| 530 } | 514 } |
| 531 } | 515 } |
| 532 | 516 |
| 533 # GYP version: chrome/chrome_resources.gyp:chrome_strings | 517 # GYP version: chrome/chrome_resources.gyp:chrome_strings |
| 534 group("strings") { | 518 group("strings") { |
| 535 deps = [ | 519 deps = [ |
| 536 "//chrome/app:chromium_strings", | 520 "//chrome/app:chromium_strings", |
| 537 "//chrome/app:generated_resources", | 521 "//chrome/app:generated_resources", |
| 538 "//chrome/app:google_chrome_strings", | 522 "//chrome/app:google_chrome_strings", |
| 539 "//chrome/app/resources:locale_settings", | 523 "//chrome/app/resources:locale_settings", |
| 540 ] | 524 ] |
| 541 } | 525 } |
| 542 | 526 |
| 543 if (is_android) { | 527 if (is_android) { |
| 528 # GYP: //chrome/chrome.gyp:content_setting_java | |
| 529 java_cpp_enum("content_setting_javagen") { | |
| 530 sources = [ | |
| 531 "../components/content_settings/core/common/content_settings.h", | |
| 532 ] | |
| 533 outputs = [ "org/chromium/chrome/browser/ContentSetting.java" ] | |
| 534 } | |
| 544 | 535 |
| 545 # GYP: //chrome/chrome.gyp:content_setting_java | 536 # GYP: //chrome/chrome.gyp:content_settings_type_java |
| 546 java_cpp_enum("content_setting_javagen") { | 537 java_cpp_enum("content_settings_type_javagen") { |
| 547 sources = [ | 538 sources = [ |
| 548 "../components/content_settings/core/common/content_settings.h" | 539 "../components/content_settings/core/common/content_settings_types.h", |
| 549 ] | 540 ] |
| 550 outputs = [ | 541 outputs = [ "org/chromium/chrome/browser/ContentSettingsType.java" ] |
| 551 "org/chromium/chrome/browser/ContentSetting.java", | 542 } |
| 552 ] | 543 |
| 544 # GYP: //chrome/chrome.gyp:page_info_connection_type_java | |
| 545 java_cpp_enum("page_info_connection_type_javagen") { | |
| 546 sources = [ | |
| 547 "browser/ui/android/website_settings_popup_android.h", | |
| 548 ] | |
| 549 outputs = [ "org/chromium/chrome/browser/PageInfoConnectionType.java" ] | |
| 550 } | |
| 551 | |
| 552 # GYP: //chrome/chrome_android.gypi:chrome_android_core | |
| 553 static_library("chrome_android_core") { | |
| 554 sources = [ | |
| 555 "app/android/chrome_android_initializer.cc", | |
| 556 "app/android/chrome_android_initializer.h", | |
| 557 "app/android/chrome_main_delegate_android.cc", | |
| 558 "app/android/chrome_main_delegate_android.h", | |
| 559 "app/chrome_main_delegate.cc", | |
| 560 "app/chrome_main_delegate.h", | |
| 561 ] | |
| 562 | |
| 563 include_dirs = [ android_ndk_include_dir ] | |
| 564 | |
| 565 libs = [ | |
| 566 "android", | |
| 567 "jnigraphics", | |
| 568 ] | |
| 569 | |
| 570 deps = [ | |
| 571 "//chrome/browser", | |
| 572 "//chrome/browser/ui", | |
| 573 "//chrome/plugin", | |
| 574 "//chrome/renderer", | |
| 575 "//chrome/utility", | |
| 576 "//components/enhanced_bookmarks", | |
| 577 "//content/public/app:browser", | |
| 578 ] | |
| 579 } | |
| 553 } | 580 } |
| 554 | |
| 555 # GYP: //chrome/chrome.gyp:content_settings_type_java | |
| 556 java_cpp_enum("content_settings_type_javagen") { | |
| 557 sources = [ | |
| 558 "../components/content_settings/core/common/content_settings_types.h" | |
| 559 ] | |
| 560 outputs = [ | |
| 561 "org/chromium/chrome/browser/ContentSettingsType.java", | |
| 562 ] | |
| 563 } | |
| 564 | |
| 565 # GYP: //chrome/chrome.gyp:page_info_connection_type_java | |
| 566 java_cpp_enum("page_info_connection_type_javagen") { | |
| 567 sources = [ | |
| 568 "browser/ui/android/website_settings_popup_android.h" | |
| 569 ] | |
| 570 outputs = [ | |
| 571 "org/chromium/chrome/browser/PageInfoConnectionType.java", | |
| 572 ] | |
| 573 } | |
| 574 | |
| 575 # GYP: //chrome/chrome_android.gypi:chrome_android_core | |
| 576 static_library("chrome_android_core") { | |
| 577 sources = [ | |
| 578 "app/android/chrome_android_initializer.cc", | |
| 579 "app/android/chrome_android_initializer.h", | |
| 580 "app/android/chrome_main_delegate_android.cc", | |
| 581 "app/android/chrome_main_delegate_android.h", | |
| 582 "app/chrome_main_delegate.cc", | |
| 583 "app/chrome_main_delegate.h", | |
| 584 ] | |
| 585 | |
| 586 include_dirs = [ | |
| 587 android_ndk_include_dir, | |
| 588 ] | |
| 589 | |
| 590 libs = [ | |
| 591 "android", | |
| 592 "jnigraphics", | |
| 593 ] | |
| 594 | |
| 595 deps = [ | |
| 596 "//chrome/browser", | |
| 597 "//chrome/browser/ui", | |
| 598 "//chrome/plugin", | |
| 599 "//chrome/renderer", | |
| 600 "//chrome/utility", | |
| 601 "//components/enhanced_bookmarks", | |
| 602 "//content/public/app:browser", | |
| 603 ] | |
| 604 } | |
| 605 | |
| 606 } | |
| OLD | NEW |