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

Side by Side Diff: third_party/mojo/src/mojo/public/mojo_application.gni

Issue 1413753005: GN: Remove mentions of lib.stripped (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/android/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("//mojo/public/mojo.gni") 5 import("//mojo/public/mojo.gni")
6 import("mojo_sdk.gni") 6 import("mojo_sdk.gni")
7 7
8 # Generate a binary mojo application.The parameters of this template are those 8 # Generate a binary mojo application.The parameters of this template are those
9 # of a shared library. 9 # of a shared library.
10 template("mojo_native_application") { 10 template("mojo_native_application") {
(...skipping 13 matching lines...) Expand all
24 if (is_linux || is_android) { 24 if (is_linux || is_android) {
25 library_name = "lib${library_target_name}.so" 25 library_name = "lib${library_target_name}.so"
26 } else if (is_win) { 26 } else if (is_win) {
27 library_name = "${library_target_name}.dll" 27 library_name = "${library_target_name}.dll"
28 } else if (is_mac || is_ios) { 28 } else if (is_mac || is_ios) {
29 library_name = "lib${library_target_name}.dylib" 29 library_name = "lib${library_target_name}.dylib"
30 } else { 30 } else {
31 assert(false, "Platform not supported.") 31 assert(false, "Platform not supported.")
32 } 32 }
33 33
34 if (is_android) { 34 library_dir = root_out_dir
35 # On android, use the stripped version of the library, because application s
36 # are always fetched over the network.
37 library_dir = "${root_out_dir}/lib.stripped"
38 } else {
39 library_dir = root_out_dir
40 }
41 35
42 shared_library(library_target_name) { 36 shared_library(library_target_name) {
43 if (defined(invoker.cflags)) { 37 if (defined(invoker.cflags)) {
44 cflags = invoker.cflags 38 cflags = invoker.cflags
45 } 39 }
46 if (defined(invoker.cflags_c)) { 40 if (defined(invoker.cflags_c)) {
47 cflags_c = invoker.cflags_c 41 cflags_c = invoker.cflags_c
48 } 42 }
49 if (defined(invoker.cflags_cc)) { 43 if (defined(invoker.cflags_cc)) {
50 cflags_cc = invoker.cflags_cc 44 cflags_cc = invoker.cflags_cc
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 } 394 }
401 395
402 dex_path = dex_output_path 396 dex_path = dex_output_path
403 } 397 }
404 398
405 action(zip_action_name) { 399 action(zip_action_name) {
406 visibility = [ ":${final_target_name}" ] 400 visibility = [ ":${final_target_name}" ]
407 script = "//build/android/gn/zip.py" 401 script = "//build/android/gn/zip.py"
408 402
409 inputs = [ 403 inputs = [
410 "${root_out_dir}/lib.stripped/${library_basename}", 404 "${root_out_dir}/${library_basename}",
411 dex_output_path, 405 dex_output_path,
412 ] 406 ]
413 407
414 output = zip_action_output 408 output = zip_action_output
415 outputs = [ 409 outputs = [
416 output, 410 output,
417 ] 411 ]
418 412
419 rebase_inputs = rebase_path(inputs, root_build_dir) 413 rebase_inputs = rebase_path(inputs, root_build_dir)
420 rebase_output = rebase_path(output, root_build_dir) 414 rebase_output = rebase_path(output, root_build_dir)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 deps = [ 463 deps = [
470 ":${copy_symbols_target}", 464 ":${copy_symbols_target}",
471 ] 465 ]
472 466
473 public_deps = [ 467 public_deps = [
474 ":${zip_action_name}", 468 ":${zip_action_name}",
475 ] 469 ]
476 } 470 }
477 } 471 }
478 } 472 }
OLDNEW
« no previous file with comments | « chrome/android/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698