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

Side by Side Diff: build/android/chrome_with_libs.gyp

Issue 17569006: Support using loadable module for libpeerconnection on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | build/android/create_standalone_apk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # This file is meant to add more loadable libs into Chrome_apk.
6 #
7 # This is useful when building Chrome_apk with some loadable modules which are
8 # not included in Chrome_apk.
9 # As an example, when building Chrome_apk with libpeer_target_type=loadable_modu le,
tommi (sloooow) - chröme 2013/06/24 08:09:12 nit: it will make future diffs easier if you can w
wjia(left Chromium) 2013/06/24 17:56:20 Done.
10 # the libpeerconnection.so is not included in Chrome_apk. To add the missing lib ,
11 # follow the steps below:
12 # - Run gyp:
13 # GYP_DEFINES="$GYP_DEFINES libpeer_target_type=loadable_module" CHROMIUM_GY P_FILE="build/android/chrome_with_libs.gyp" build/gyp_chromium
14 # - Build chrome_with_libs:
15 # ninja (or make) chrome_with_libs
16 #
17 # This tool also allows replacing the loadable module with a new one via the fol lowing steps:
18 # - Build Chrome_apk with the gyp define:
19 # GYP_DEFINES="$GYP_DEFINES libpeer_target_type=loadable_module" build/gyp_c hromium
20 # ninja (or make) Chrome_apk
21 # - Replace libpeerconnection.so with a new one:
22 # cp the_new_one path/to/libpeerconnection.so
23 # - Run gyp:
24 # GYP_DEFINES="$GYP_DEFINES libpeer_target_type=loadable_module" CHROMIUM_GY P_FILE="build/android/chrome_with_libs.gyp" build/gyp_chromium
25 # - Build chrome_with_libs:
26 # ninja (or make) chrome_with_libs
27 {
28 'targets': [
29 {
30 # An "All" target is required for a top-level gyp-file.
31 'target_name': 'All',
32 'type': 'none',
33 'dependencies': [
34 'chrome_with_libs',
35 ],
36 },
37 {
38 'target_name': 'chrome_with_libs',
39 'type': 'none',
40 'variables': {
41 'intermediate_dir': '<(PRODUCT_DIR)/prebuilt_libs/',
42 'chrome_unsigned_path': '<(PRODUCT_DIR)/chrome_apk/Chrome-unsigned.apk',
43 'chrome_with_libs_unsigned': '<(intermediate_dir)/Chrome-with-libs-unsig ned.apk',
44 'chrome_with_libs_final': '<(PRODUCT_DIR)/apks/Chrome-with-libs.apk',
45 },
46 'dependencies': [
47 '<(DEPTH)/clank/native/framework/clank.gyp:chrome_apk'
48 ],
49 'copies': [
50 {
51 'destination': '<(intermediate_dir)/lib/<(android_app_abi)',
52 'files': [
53 '<(PRODUCT_DIR)/libpeerconnection.so',
54 ]
tommi (sloooow) - chröme 2013/06/24 08:09:12 nit: ], and }, for consistency (commas after ] and
wjia(left Chromium) 2013/06/24 17:56:20 Done.
55 }
56 ],
57 'actions': [
58 {
59 'action_name': 'put_libs_in_chrome',
60 'variables': {
61 'inputs': [
62 '<(intermediate_dir)/lib/<(android_app_abi)/libpeerconnection.so',
63 ],
64 'input_apk_path': '<(chrome_unsigned_path)',
65 'output_apk_path': '<(chrome_with_libs_unsigned)',
66 'libraries_top_dir%': '<(intermediate_dir)',
67 },
68 'includes': [ 'create_standalone_apk_action.gypi' ],
69 },
70 {
71 'action_name': 'finalize_chrome_with_libs',
72 'variables': {
73 'input_apk_path': '<(chrome_with_libs_unsigned)',
74 'output_apk_path': '<(chrome_with_libs_final)',
75 },
76 'includes': [ 'finalize_apk_action.gypi']
77 },
78 ],
79 }],
80 }
OLDNEW
« no previous file with comments | « no previous file | build/android/create_standalone_apk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698