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

Side by Side Diff: build/java_apk.gypi

Issue 456493002: Add native libraries to gn apks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # This file is meant to be included into a target to provide a rule 5 # This file is meant to be included into a target to provide a rule
6 # to build Android APKs in a consistent manner. 6 # to build Android APKs in a consistent manner.
7 # 7 #
8 # To use this, create a gyp target with the following form: 8 # To use this, create a gyp target with the following form:
9 # { 9 # {
10 # 'target_name': 'my_package_apk', 10 # 'target_name': 'my_package_apk',
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 ], 251 ],
252 'input_libraries': [ 252 'input_libraries': [
253 '<@(native_libs_paths)', 253 '<@(native_libs_paths)',
254 '<@(extra_native_libs)', 254 '<@(extra_native_libs)',
255 '<@(linker_input_libraries)', 255 '<@(linker_input_libraries)',
256 ], 256 ],
257 }, 257 },
258 'includes': ['../build/android/write_ordered_libraries.gypi'], 258 'includes': ['../build/android/write_ordered_libraries.gypi'],
259 }, 259 },
260 { 260 {
261 'action_name': 'native_libraries_template_data_<(_target_name)',
262 'message': 'Creating native_libraries_list.h for <(_target_name)',
263 'inputs': [
264 '<(DEPTH)/build/android/gyp/util/build_utils.py',
265 '<(DEPTH)/build/android/gyp/create_native_libraries_header.py',
266 '<(ordered_libraries_file)',
267 ],
268 'outputs': [
269 '<(native_libraries_template_data_file)',
270 '<(native_libraries_template_version_file)',
271 ],
272 'action': [
273 'python', '<(DEPTH)/build/android/gyp/create_native_libraries_header .py',
274 '--ordered-libraries=<(ordered_libraries_file)',
275 '--version-name=<(native_lib_version_name)',
276 '--native-library-list=<(native_libraries_template_data_file)',
277 '--version-output=<(native_libraries_template_version_file)',
278 ],
279 },
280 {
281 'action_name': 'native_libraries_<(_target_name)', 261 'action_name': 'native_libraries_<(_target_name)',
282 'variables': { 262 'variables': {
283 'conditions': [ 263 'conditions': [
284 ['use_chromium_linker == 1', { 264 ['use_chromium_linker == 1', {
285 'variables': { 265 'variables': {
286 'linker_gcc_preprocess_defines': [ 266 'linker_gcc_preprocess_defines': [
287 '--defines', 'ENABLE_CHROMIUM_LINKER', 267 '--defines', 'ENABLE_CHROMIUM_LINKER',
288 ], 268 ],
289 } 269 }
290 }, { 270 }, {
(...skipping 27 matching lines...) Expand all
318 'gcc_preprocess_defines': [ 298 'gcc_preprocess_defines': [
319 '<@(linker_load_from_zip_file_preprocess_defines)', 299 '<@(linker_load_from_zip_file_preprocess_defines)',
320 '<@(linker_gcc_preprocess_defines)', 300 '<@(linker_gcc_preprocess_defines)',
321 '<@(linker_tests_gcc_preprocess_defines)', 301 '<@(linker_tests_gcc_preprocess_defines)',
322 ], 302 ],
323 }, 303 },
324 'message': 'Creating NativeLibraries.java for <(_target_name)', 304 'message': 'Creating NativeLibraries.java for <(_target_name)',
325 'inputs': [ 305 'inputs': [
326 '<(DEPTH)/build/android/gyp/util/build_utils.py', 306 '<(DEPTH)/build/android/gyp/util/build_utils.py',
327 '<(DEPTH)/build/android/gyp/gcc_preprocess.py', 307 '<(DEPTH)/build/android/gyp/gcc_preprocess.py',
328 '<(native_libraries_template_data_file)', 308 '<(ordered_libraries_file)',
329 '<(native_libraries_template_version_file)',
330 '<(native_libraries_template)', 309 '<(native_libraries_template)',
331 ], 310 ],
332 'outputs': [ 311 'outputs': [
333 '<(native_libraries_java_stamp)', 312 '<(native_libraries_java_stamp)',
334 ], 313 ],
335 'action': [ 314 'action': [
336 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py', 315 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py',
337 '--include-path=<(native_libraries_template_data_dir)', 316 '--include-path=',
338 '--output=<(native_libraries_java_file)', 317 '--output=<(native_libraries_java_file)',
339 '--template=<(native_libraries_template)', 318 '--template=<(native_libraries_template)',
340 '--stamp=<(native_libraries_java_stamp)', 319 '--stamp=<(native_libraries_java_stamp)',
320 '--defines', 'NATIVE_LIBRARIES_LIST=@FileArg(<(ordered_libraries_fil e):java_libraries_list)',
321 '--defines', 'NATIVE_LIBRARIES_VERSION_NUMBER="<(native_lib_version_ name)"',
341 '<@(gcc_preprocess_defines)', 322 '<@(gcc_preprocess_defines)',
342 ], 323 ],
343 }, 324 },
344 { 325 {
345 'action_name': 'strip_native_libraries', 326 'action_name': 'strip_native_libraries',
346 'variables': { 327 'variables': {
347 'ordered_libraries_file%': '<(ordered_libraries_file)', 328 'ordered_libraries_file%': '<(ordered_libraries_file)',
348 'stripped_libraries_dir%': '<(stripped_libraries_dir)', 329 'stripped_libraries_dir%': '<(stripped_libraries_dir)',
349 'input_paths': [ 330 'input_paths': [
350 '<@(native_libs_paths)', 331 '<@(native_libs_paths)',
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 '<(apk_install_record)', 424 '<(apk_install_record)',
444 '<(build_device_config_path)', 425 '<(build_device_config_path)',
445 '<(ordered_libraries_file)', 426 '<(ordered_libraries_file)',
446 ], 427 ],
447 'outputs': [ 428 'outputs': [
448 '<(link_stamp)' 429 '<(link_stamp)'
449 ], 430 ],
450 'action': [ 431 'action': [
451 'python', '<(DEPTH)/build/android/gyp/create_device_library_link s.py', 432 'python', '<(DEPTH)/build/android/gyp/create_device_library_link s.py',
452 '--build-device-configuration=<(build_device_config_path)', 433 '--build-device-configuration=<(build_device_config_path)',
453 '--libraries-json=<(ordered_libraries_file)', 434 '--libraries=@FileArg(<(ordered_libraries_file):libraries)',
454 '--script-host-path=<(symlink_script_host_path)', 435 '--script-host-path=<(symlink_script_host_path)',
455 '--script-device-path=<(symlink_script_device_path)', 436 '--script-device-path=<(symlink_script_device_path)',
456 '--target-dir=<(device_library_dir)', 437 '--target-dir=<(device_library_dir)',
457 '--apk=<(incomplete_apk_path)', 438 '--apk=<(incomplete_apk_path)',
458 '--stamp=<(link_stamp)', 439 '--stamp=<(link_stamp)',
459 '--configuration-name=<(CONFIGURATION_NAME)', 440 '--configuration-name=<(CONFIGURATION_NAME)',
460 ], 441 ],
461 }, 442 },
462 ], 443 ],
463 'conditions': [ 444 'conditions': [
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 '-DEMMA_INSTRUMENT=<(emma_instrument)', 883 '-DEMMA_INSTRUMENT=<(emma_instrument)',
903 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', 884 '-DEMMA_DEVICE_JAR=<(emma_device_jar)',
904 885
905 '-Dbasedir=.', 886 '-Dbasedir=.',
906 '-buildfile', 887 '-buildfile',
907 '<(DEPTH)/build/android/ant/apk-package.xml', 888 '<(DEPTH)/build/android/ant/apk-package.xml',
908 ] 889 ]
909 }, 890 },
910 ], 891 ],
911 } 892 }
OLDNEW
« build/android/gyp/write_ordered_libraries.py ('K') | « build/config/android/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698