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

Side by Side Diff: build/java_apk.gypi

Issue 1138953003: Extract apkbuilder build action into a .gypi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split-manifest
Patch Set: Created 5 years, 7 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 | « build/config/android/internal_rules.gni ('k') | tools/telemetry/telemetry/TELEMETRY_DEPS » ('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 (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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 }, 681 },
682 'inputs': [ 682 'inputs': [
683 '<(DEPTH)/build/android/gyp/util/build_utils.py', 683 '<(DEPTH)/build/android/gyp/util/build_utils.py',
684 '<(DEPTH)/build/android/gyp/javac.py', 684 '<(DEPTH)/build/android/gyp/javac.py',
685 '>@(java_sources)', 685 '>@(java_sources)',
686 '>@(input_jars_paths)', 686 '>@(input_jars_paths)',
687 '<(codegen_stamp)', 687 '<(codegen_stamp)',
688 ], 688 ],
689 'conditions': [ 689 'conditions': [
690 ['native_lib_target != ""', { 690 ['native_lib_target != ""', {
691 'inputs': [ '<(native_libraries_java_stamp)' ], 691 'inputs': [ '<!(echo "<(_target_name): <(native_lib_target)" >> /tmp/f oo.txt)',
cjhopman 2015/05/14 00:30:42 What's this needed for?
agrieve 2015/05/14 13:47:29 Whoops! That was your test :P. Removed.
692 '<(native_libraries_java_stamp)' ],
692 }], 693 }],
693 ], 694 ],
694 'outputs': [ 695 'outputs': [
695 '<(compile_stamp)', 696 '<(compile_stamp)',
696 '<(javac_jar_path)', 697 '<(javac_jar_path)',
697 ], 698 ],
698 'action': [ 699 'action': [
699 'python', '<(DEPTH)/build/android/gyp/javac.py', 700 'python', '<(DEPTH)/build/android/gyp/javac.py',
700 '--classpath=>(input_jars_paths) <(android_sdk_jar)', 701 '--classpath=>(input_jars_paths) <(android_sdk_jar)',
701 '--src-gendirs=>(gen_src_dirs)', 702 '--src-gendirs=>(gen_src_dirs)',
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 '--resource-zips', '>(package_resource_zip_input_paths)', 914 '--resource-zips', '>(package_resource_zip_input_paths)',
914 915
915 '--no-compress', '<(extensions_to_not_compress)', 916 '--no-compress', '<(extensions_to_not_compress)',
916 917
917 '--apk-path', '<(resource_packaged_apk_path)', 918 '--apk-path', '<(resource_packaged_apk_path)',
918 919
919 '<@(package_resources_options)', 920 '<@(package_resources_options)',
920 ], 921 ],
921 }, 922 },
922 { 923 {
923 'action_name': 'ant_package_<(_target_name)',
924 'message': 'Packaging <(_target_name)',
925 'variables': { 924 'variables': {
926 # Write the inputs list to a file, so that its mtime is updated when 925 'apk_path': '<(unsigned_apk_path)',
927 # the list of inputs changes. 926 'native_libs_dir': '<(apk_package_native_libs_dir)',
928 'inputs_list_file': '>|(apk_package.<(_target_name).gypcmd >@(package_in put_paths))' 927 'conditions': [
928 ['native_lib_target != ""', {
929 'extra_inputs': ['<(native_lib_placeholder_stamp)'],
930 }],
931 ],
929 }, 932 },
930 'inputs': [ 933 'includes': ['android/apkbuilder_action.gypi'],
931 '<(DEPTH)/build/android/ant/apk-package.xml',
932 '<(DEPTH)/build/android/gyp/util/build_utils.py',
933 '<(DEPTH)/build/android/gyp/ant.py',
934 '<(dex_path)',
935 '<(codegen_stamp)',
936 '<(obfuscate_stamp)',
937 '<(resource_packaged_apk_path)',
938 '>@(package_input_paths)',
939 '>(inputs_list_file)',
940 ],
941 'outputs': [
942 '<(unsigned_apk_path)',
943 ],
944 'conditions': [
945 ['native_lib_target != ""', {
946 'inputs': ['<(native_lib_placeholder_stamp)'],
947 }],
948 ],
949 'action': [
950 'python', '<(DEPTH)/build/android/gyp/ant.py',
951 '--',
952 '-quiet',
953 '-DDEX_FILE_PATH=<(intermediate_dir)/classes.dex',
954 '-DANDROID_SDK_ROOT=<(android_sdk_root)',
955 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
956 '-DRESOURCE_PACKAGED_APK_NAME=<(resource_packaged_apk_name)',
957 '-DAPK_NAME=<(apk_name)',
958 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)',
959 '-DNATIVE_LIBS_DIR=<(apk_package_native_libs_dir)',
960 '-DOUT_DIR=<(intermediate_dir)',
961 '-DUNSIGNED_APK_PATH=<(unsigned_apk_path)',
962 '-DEMMA_INSTRUMENT=<(emma_instrument)',
963 '-DEMMA_DEVICE_JAR=<(emma_device_jar)',
964
965 '-Dbasedir=.',
966 '-buildfile',
967 '<(DEPTH)/build/android/ant/apk-package.xml',
968 ]
969 }, 934 },
970 ], 935 ],
971 } 936 }
OLDNEW
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | tools/telemetry/telemetry/TELEMETRY_DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698