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

Side by Side Diff: build/config/android/internal_rules.gni

Issue 2840193003: [Android] Fix stack symbolization when packed relocations are on. (Closed)
Patch Set: tedchoc comment Created 3 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/android/gyp/create_stack_script.py ('k') | build/config/android/rules.gni » ('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 # Do not add any imports to non-//build directories here. 5 # Do not add any imports to non-//build directories here.
6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in.
7 import("//build_overrides/build.gni") 7 import("//build_overrides/build.gni")
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 import("//build/config/dcheck_always_on.gni") 9 import("//build/config/dcheck_always_on.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 args += [ 631 args += [
632 "--test-runner-path", 632 "--test-runner-path",
633 android_test_runner_script, 633 android_test_runner_script,
634 ] 634 ]
635 } 635 }
636 636
637 args += test_runner_args 637 args += test_runner_args
638 } 638 }
639 } 639 }
640 640
641 template("stack_script") {
642 forward_variables_from(invoker, [ "testonly" ])
643
644 _stack_target_name = invoker.stack_target_name
645
646 action(target_name) {
647 forward_variables_from(invoker,
648 [
649 "data_deps",
650 "deps",
651 ])
652 if (!defined(deps)) {
653 deps = []
654 }
655 if (!defined(data_deps)) {
656 data_deps = []
657 }
658
659 data_deps +=
660 [ "//third_party/android_platform/development/scripts:stack_py" ]
661
662 script = "//build/android/gyp/create_stack_script.py"
663 depfile = "$target_gen_dir/$target_name.d"
664
665 _stack_script = "//third_party/android_platform/development/scripts/stack"
666
667 _generated_script = "$root_build_dir/bin/stack_${_stack_target_name}"
668
669 outputs = [
670 _generated_script,
671 ]
672 data = [
673 _generated_script,
674 ]
675
676 args = [
677 "--depfile",
678 rebase_path(depfile, root_build_dir),
679 "--output-directory",
680 rebase_path(root_build_dir, root_build_dir),
681 "--script-path",
682 rebase_path(_stack_script, root_build_dir),
683 "--script-output-path",
684 rebase_path(_generated_script, root_build_dir),
685 "--arch=$target_cpu",
686 ]
687 if (defined(invoker.packed_libraries)) {
688 args += [
689 "--packed-libs",
690 invoker.packed_libraries,
691 ]
692 }
693 }
694 }
695
641 if (enable_java_templates) { 696 if (enable_java_templates) {
642 import("//build/config/zip.gni") 697 import("//build/config/zip.gni")
643 import("//third_party/ijar/ijar.gni") 698 import("//third_party/ijar/ijar.gni")
644 import("//third_party/android_platform/config.gni") 699 import("//third_party/android_platform/config.gni")
645 700
646 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) 701 rebased_android_sdk = rebase_path(android_sdk, root_build_dir)
647 rebased_android_sdk_build_tools = 702 rebased_android_sdk_build_tools =
648 rebase_path(android_sdk_build_tools, root_build_dir) 703 rebase_path(android_sdk_build_tools, root_build_dir)
649 704
650 android_sdk_jar = "$android_sdk/android.jar" 705 android_sdk_jar = "$android_sdk/android.jar"
(...skipping 2141 matching lines...) Expand 10 before | Expand all | Expand 10 after
2792 rebase_path(root_build_dir, root_build_dir), 2847 rebase_path(root_build_dir, root_build_dir),
2793 "--packed-libraries-dir", 2848 "--packed-libraries-dir",
2794 rebase_path(_packed_libraries_dir, root_build_dir), 2849 rebase_path(_packed_libraries_dir, root_build_dir),
2795 "--libraries=${invoker.libraries_filearg}", 2850 "--libraries=${invoker.libraries_filearg}",
2796 "--filelistjson", 2851 "--filelistjson",
2797 rebase_path(invoker.file_list_json, root_build_dir), 2852 rebase_path(invoker.file_list_json, root_build_dir),
2798 ] 2853 ]
2799 } 2854 }
2800 } 2855 }
2801 } 2856 }
OLDNEW
« no previous file with comments | « build/android/gyp/create_stack_script.py ('k') | build/config/android/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698