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

Side by Side Diff: components/cronet/android/BUILD.gn

Issue 2336173003: Fix android depfiles to always list GN's outputs[0] (Closed)
Patch Set: fix cronet_package Created 4 years, 3 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/protoc_java.py ('k') | components/cronet/tools/extract_from_jars.py » ('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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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("//build/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/android/config.gni") 6 import("//build/config/android/config.gni")
7 import("//build/config/android/rules.gni") 7 import("//build/config/android/rules.gni")
8 import("//build/util/version.gni") 8 import("//build/util/version.gni")
9 import("//chrome/version.gni") 9 import("//chrome/version.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 # extract_from_jars.py deletes the target directory before extracting. 756 # extract_from_jars.py deletes the target directory before extracting.
757 script = "//components/cronet/tools/extract_from_jars.py" 757 script = "//components/cronet/tools/extract_from_jars.py"
758 depfile = "$target_gen_dir/$target_name.d" 758 depfile = "$target_gen_dir/$target_name.d"
759 759
760 sources = [ 760 sources = [
761 "$root_out_dir/lib.java/base/base_java.jar", 761 "$root_out_dir/lib.java/base/base_java.jar",
762 "$root_out_dir/lib.java/components/cronet/android/cronet_java.jar", 762 "$root_out_dir/lib.java/components/cronet/android/cronet_java.jar",
763 "$root_out_dir/lib.java/net/android/net_java.jar", 763 "$root_out_dir/lib.java/net/android/net_java.jar",
764 "$root_out_dir/lib.java/url/url_java.jar", 764 "$root_out_dir/lib.java/url/url_java.jar",
765 ] 765 ]
766
767 _stamp_file = "$target_gen_dir/$target_name.stamp"
766 outputs = [ 768 outputs = [
767 depfile, 769 _stamp_file,
768 ] 770 ]
769 771
770 _rebased_sources = rebase_path(sources, root_build_dir) 772 _rebased_sources = rebase_path(sources, root_build_dir)
771 773
772 args = [ 774 args = [
773 "--classes-dir", 775 "--classes-dir",
774 rebase_path(_extract_cronet_jars_dir, root_build_dir), 776 rebase_path(_extract_cronet_jars_dir, root_build_dir),
775 "--jars=${_rebased_sources}", 777 "--jars=${_rebased_sources}",
776 "--depfile", 778 "--depfile",
777 rebase_path(depfile, root_build_dir), 779 rebase_path(depfile, root_build_dir),
780 "--stamp",
781 rebase_path(_stamp_file, root_build_dir),
778 ] 782 ]
779 783
780 deps = [ 784 deps = [
781 ":cronet_java", 785 ":cronet_java",
782 "//base:base_java", 786 "//base:base_java",
783 "//net/android:net_java", 787 "//net/android:net_java",
784 "//url:url_java", 788 "//url:url_java",
785 ] 789 ]
786 } 790 }
787 791
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 ] 869 ]
866 args = [ 870 args = [
867 "license", 871 "license",
868 rebase_path(_license_path, root_build_dir), 872 rebase_path(_license_path, root_build_dir),
869 ] 873 ]
870 } 874 }
871 875
872 action("generate_javadoc") { 876 action("generate_javadoc") {
873 script = "//components/cronet/tools/generate_javadoc.py" 877 script = "//components/cronet/tools/generate_javadoc.py"
874 depfile = "$target_gen_dir/$target_name.d" 878 depfile = "$target_gen_dir/$target_name.d"
879 _stamp_file = "$target_gen_dir/$target_name.stamp"
875 outputs = [ 880 outputs = [
876 depfile, 881 _stamp_file,
877 ] 882 ]
878 args = [ 883 args = [
879 "--output-dir", 884 "--output-dir",
880 rebase_path(_package_dir, root_build_dir), 885 rebase_path(_package_dir, root_build_dir),
881 "--input-dir", 886 "--input-dir",
882 rebase_path("//components/cronet", root_build_dir), 887 rebase_path("//components/cronet", root_build_dir),
883 "--overview-file", 888 "--overview-file",
884 rebase_path("$_package_dir/README.md.html", root_build_dir), 889 rebase_path("$_package_dir/README.md.html", root_build_dir),
885 "--readme-file", 890 "--readme-file",
886 rebase_path("//components/cronet/README.md", root_build_dir), 891 rebase_path("//components/cronet/README.md", root_build_dir),
887 "--depfile", 892 "--depfile",
888 rebase_path(depfile, root_build_dir), 893 rebase_path(depfile, root_build_dir),
894 "--stamp",
895 rebase_path(_stamp_file, root_build_dir),
889 "--lib-java-dir", 896 "--lib-java-dir",
890 rebase_path("$root_build_dir/lib.java/components/cronet/android", 897 rebase_path("$root_build_dir/lib.java/components/cronet/android",
891 root_build_dir), 898 root_build_dir),
892 899
893 # JavaDoc is generated from Cronet's API source jar. 900 # JavaDoc is generated from Cronet's API source jar.
894 "--input-src-jar", 901 "--input-src-jar",
895 rebase_path("$_package_dir/cronet_api-src.jar", root_build_dir), 902 rebase_path("$_package_dir/cronet_api-src.jar", root_build_dir),
896 ] 903 ]
897 deps = [ 904 deps = [
898 ":cronet_javadoc_classpath", 905 ":cronet_javadoc_classpath",
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 ":jar_cronet_api_source", 996 ":jar_cronet_api_source",
990 ":jar_cronet_other_source", 997 ":jar_cronet_other_source",
991 ":jar_cronet_sample_source", 998 ":jar_cronet_sample_source",
992 ":repackage_extracted_jars", 999 ":repackage_extracted_jars",
993 ] 1000 ]
994 if (current_cpu == "arm" && arm_version == 7) { 1001 if (current_cpu == "arm" && arm_version == 7) {
995 deps += [ ":enforce_no_neon" ] 1002 deps += [ ":enforce_no_neon" ]
996 } 1003 }
997 } 1004 }
998 } 1005 }
OLDNEW
« no previous file with comments | « build/protoc_java.py ('k') | components/cronet/tools/extract_from_jars.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698