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

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

Issue 666813002: GN: Fix Android component build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-clank
Patch Set: Created 6 years, 1 month 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
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/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 9
10 # GYP: //chrome/chrome.gyp:chrome_java (resources part) 10 # GYP: //chrome/chrome.gyp:chrome_java (resources part)
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 deps = [ 164 deps = [
165 "//chrome/browser/ui", 165 "//chrome/browser/ui",
166 "//chrome:chrome_android_core", 166 "//chrome:chrome_android_core",
167 "//base", 167 "//base",
168 "//base/allocator", 168 "//base/allocator",
169 "//content/public/app:browser", 169 "//content/public/app:browser",
170 "//skia", 170 "//skia",
171 ] 171 ]
172 172
173 # Some android targets still depend on --gc-sections to link.
174 # TODO: remove --gc-sections for Debug builds (crbug.com/159847).
175 ldflags = [ "-Wl,--gc-sections" ]
176
173 # TODO(GYP): 177 # TODO(GYP):
174 #[ 'order_profiling!=0', { 178 #[ 'order_profiling!=0', {
175 #'conditions': [ 179 #'conditions': [
176 #[ 'OS=="android"', { 180 #[ 'OS=="android"', {
177 #'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ], 181 #'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
178 #}], 182 #}],
179 #], 183 #],
180 #}], 184 #}],
181 } 185 }
182 186
183 # TODO(GYP, cjhopman): make chrome_shell_base actually link and then move it to
184 # deps. Also, actually compile the main delegates at that point.
185 # GYP: //chrome/chrome_shell.gypi:libchromeshell 187 # GYP: //chrome/chrome_shell.gypi:libchromeshell
186 shared_library("chrome_shell") { 188 shared_library("chrome_shell") {
187 testonly = true 189 testonly = true
188 sources = [ 190 sources = [
189 # This file must always be included in the shared_library step to ensure 191 # This file must always be included in the shared_library step to ensure
190 # JNI_OnLoad is exported. 192 # JNI_OnLoad is exported.
191 #"//chrome/app/android/chrome_jni_onload.cc", 193 "//chrome/app/android/chrome_jni_onload.cc",
192 #"shell/chrome_main_delegate_chrome_shell_android.cc", 194 "shell/chrome_main_delegate_chrome_shell_android.cc",
193 #"shell/chrome_main_delegate_chrome_shell_android.h", 195 "shell/chrome_main_delegate_chrome_shell_android.h",
194 ] 196 ]
195 deps = [ 197 deps = [
196 #":chrome_shell_base", 198 ":chrome_shell_base",
197 ]
198 deps = [ ":chrome_java" ]
199 datadeps = [
200 ":chrome_shell_base"
201 ] 199 ]
202 } 200 }
203 201
204 # GYP: //chrome/chrome_shell.gypi:libchromesyncshell 202 # GYP: //chrome/chrome_shell.gypi:libchromesyncshell
205 shared_library("chrome_sync_shell") { 203 shared_library("chrome_sync_shell") {
206 testonly = true 204 testonly = true
207 sources = [ 205 sources = [
208 # This file must always be included in the shared_library step to ensure 206 # This file must always be included in the shared_library step to ensure
209 # JNI_OnLoad is exported. 207 # JNI_OnLoad is exported.
210 #"//chrome/app/android/chrome_jni_onload.cc", 208 #"//chrome/app/android/chrome_jni_onload.cc",
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 process_version("chrome_version_java") { 467 process_version("chrome_version_java") {
470 source = "java/ChromeVersionConstants.java.version" 468 source = "java/ChromeVersionConstants.java.version"
471 output = chrome_version_java_file 469 output = chrome_version_java_file
472 } 470 }
473 471
474 zip("chrome_version_srcjar") { 472 zip("chrome_version_srcjar") {
475 inputs = [ chrome_version_java_file ] 473 inputs = [ chrome_version_java_file ]
476 output = "$target_gen_dir/$target_name.srcjar" 474 output = "$target_gen_dir/$target_name.srcjar"
477 base_dir = chrome_version_java_dir 475 base_dir = chrome_version_java_dir
478 } 476 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698