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/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
| 7 import("//chrome/version.gni") | 7 import("//chrome/version.gni") |
| 8 import("//third_party/icu/config.gni") | 8 import("//third_party/icu/config.gni") |
| 9 import("channel.gni") | 9 import("channel.gni") |
| 10 | 10 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 191 sources = [ | 191 sources = [ |
| 192 # This file must always be included in the shared_library step to ensure | 192 # This file must always be included in the shared_library step to ensure |
| 193 # JNI_OnLoad is exported. | 193 # JNI_OnLoad is exported. |
| 194 "//chrome/app/android/chrome_jni_onload.cc", | 194 "//chrome/app/android/chrome_jni_onload.cc", |
| 195 "shell/chrome_main_delegate_chrome_shell_android.cc", | 195 "shell/chrome_main_delegate_chrome_shell_android.cc", |
| 196 "shell/chrome_main_delegate_chrome_shell_android.h", | 196 "shell/chrome_main_delegate_chrome_shell_android.h", |
| 197 ] | 197 ] |
| 198 deps = [ | 198 deps = [ |
| 199 ":chrome_shell_base", | 199 ":chrome_shell_base", |
| 200 ] | 200 ] |
| 201 # GYP: via base/files/protect_file_posix.gypi | |
| 202 # TODO(pasko): make these 3 lines of code more reusable. | |
|
pasko
2014/11/07 18:00:42
brettw: I tried to make it a config(), but it did
| |
| 203 if (!is_component_build) { | |
| 204 ldflags = [ "-Wl,--wrap=close" ] | |
| 205 deps += [ "//base:protect_file_posix" ] | |
| 206 } | |
| 201 } | 207 } |
| 202 | 208 |
| 203 # GYP: //chrome/chrome_shell.gypi:libchromesyncshell | 209 # GYP: //chrome/chrome_shell.gypi:libchromesyncshell |
| 204 shared_library("chrome_sync_shell") { | 210 shared_library("chrome_sync_shell") { |
| 205 testonly = true | 211 testonly = true |
| 206 sources = [ | 212 sources = [ |
| 207 # This file must always be included in the shared_library step to ensure | 213 # This file must always be included in the shared_library step to ensure |
| 208 # JNI_OnLoad is exported. | 214 # JNI_OnLoad is exported. |
| 209 #"//chrome/app/android/chrome_jni_onload.cc", | 215 #"//chrome/app/android/chrome_jni_onload.cc", |
| 210 #"sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc", | 216 #"sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc", |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 469 source = "java/ChromeVersionConstants.java.version" | 475 source = "java/ChromeVersionConstants.java.version" |
| 470 output = chrome_version_java_file | 476 output = chrome_version_java_file |
| 471 extra_args = ["-e", "CHANNEL=str.upper('$android_channel')"] | 477 extra_args = ["-e", "CHANNEL=str.upper('$android_channel')"] |
| 472 } | 478 } |
| 473 | 479 |
| 474 zip("chrome_version_srcjar") { | 480 zip("chrome_version_srcjar") { |
| 475 inputs = [ chrome_version_java_file ] | 481 inputs = [ chrome_version_java_file ] |
| 476 output = "$target_gen_dir/$target_name.srcjar" | 482 output = "$target_gen_dir/$target_name.srcjar" |
| 477 base_dir = chrome_version_java_dir | 483 base_dir = chrome_version_java_dir |
| 478 } | 484 } |
| OLD | NEW |