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

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

Issue 1236543004: GN (android): Append ".cr" to component .so's to avoid zygote lib collisions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn16
Patch Set: android_shared_library_extension -> android_product_extension (to match GYP) Created 5 years, 5 months 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 | « mandoline/services/updater/BUILD.gn ('k') | mojo/runner/BUILD.gn » ('j') | 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.gni") 5 import("mojo.gni")
6 if (is_android) {
7 import("//build/config/android/config.gni")
8 }
6 9
7 # Generate a binary Mojo application in a self-named directory. 10 # Generate a binary Mojo application in a self-named directory.
8 # Application resources are copied to a "resources" directory alongside the app. 11 # Application resources are copied to a "resources" directory alongside the app.
9 # The parameters of this template are those of a shared library. 12 # The parameters of this template are those of a shared library.
10 template("mojo_native_application") { 13 template("mojo_native_application") {
11 base_target_name = target_name 14 base_target_name = target_name
12 if (defined(invoker.output_name)) { 15 if (defined(invoker.output_name)) {
13 base_target_name = invoker.output_name 16 base_target_name = invoker.output_name
14 } 17 }
15 18
(...skipping 16 matching lines...) Expand all
32 } 35 }
33 deps = mojo_deps 36 deps = mojo_deps
34 } 37 }
35 mojo_deps += [ ":$copy_step_name" ] 38 mojo_deps += [ ":$copy_step_name" ]
36 } 39 }
37 40
38 if (!is_nacl) { 41 if (!is_nacl) {
39 output = base_target_name + ".mojo" 42 output = base_target_name + ".mojo"
40 library_target_name = base_target_name + "_library" 43 library_target_name = base_target_name + "_library"
41 44
42 if (is_linux || is_android) { 45 if (is_linux) {
43 library_name = "lib${library_target_name}.so" 46 library_name = "lib${library_target_name}.so"
47 } else if (is_android) {
48 library_name = "lib${library_target_name}${android_product_extension}"
44 } else if (is_win) { 49 } else if (is_win) {
45 library_name = "${library_target_name}.dll" 50 library_name = "${library_target_name}.dll"
46 } else if (is_mac) { 51 } else if (is_mac) {
47 library_name = "lib${library_target_name}.dylib" 52 library_name = "lib${library_target_name}.dylib"
48 } else { 53 } else {
49 assert(false, "Platform not supported.") 54 assert(false, "Platform not supported.")
50 } 55 }
51 56
52 if (is_android) { 57 if (is_android) {
53 # On android, use the stripped version of the library, because 58 # On android, use the stripped version of the library, because
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 "--output=$rebase_output", 382 "--output=$rebase_output",
378 "--line=#!mojo mojo:android_handler", 383 "--line=#!mojo mojo:android_handler",
379 ] 384 ]
380 385
381 public_deps = [ 386 public_deps = [
382 ":$zip_action_name", 387 ":$zip_action_name",
383 ] 388 ]
384 } 389 }
385 } 390 }
386 } 391 }
OLDNEW
« no previous file with comments | « mandoline/services/updater/BUILD.gn ('k') | mojo/runner/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698