OLD | NEW |
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 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/locales.gni") | 8 import("//build/config/locales.gni") |
9 import("//build/config/sanitizers/sanitizers.gni") | 9 import("//build/config/sanitizers/sanitizers.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 | 1019 |
1020 args = [ | 1020 args = [ |
1021 rebase_path(infile, root_build_dir), | 1021 rebase_path(infile, root_build_dir), |
1022 rebase_path(outfile, root_build_dir), | 1022 rebase_path(outfile, root_build_dir), |
1023 "-e s/@@NAME@@/$name/", | 1023 "-e s/@@NAME@@/$name/", |
1024 "-e s/@@FILENAME@@/$filename/", | 1024 "-e s/@@FILENAME@@/$filename/", |
1025 "-e s/@@CONFDIR@@/$confdir/", | 1025 "-e s/@@CONFDIR@@/$confdir/", |
1026 ] | 1026 ] |
1027 } | 1027 } |
1028 | 1028 |
1029 action("linux_symbols") { | 1029 if (is_official_build) { |
1030 script = "//build/linux/dump_app_syms.py" | 1030 action("linux_symbols") { |
| 1031 script = "//build/linux/dump_app_syms.py" |
1031 | 1032 |
1032 dump_syms_label = "//breakpad:dump_syms($host_toolchain)" | 1033 dump_syms_label = "//breakpad:dump_syms($host_toolchain)" |
1033 dump_syms_binary = | 1034 dump_syms_binary = |
1034 get_label_info(dump_syms_label, "root_out_dir") + "/" + "dump_syms" | 1035 get_label_info(dump_syms_label, "root_out_dir") + "/" + "dump_syms" |
1035 | 1036 |
1036 chrome_binary = "$root_out_dir/chrome" | 1037 chrome_binary = "$root_out_dir/chrome" |
1037 if (current_cpu == "x86") { | 1038 if (current_cpu == "x86") { |
1038 # Use "ia32" instead of "x86" for GYP compat. | 1039 # Use "ia32" instead of "x86" for GYP compat. |
1039 symbol_file = "$root_out_dir/chrome.breakpad.ia32" | 1040 symbol_file = "$root_out_dir/chrome.breakpad.ia32" |
1040 } else { | 1041 } else { |
1041 symbol_file = "$root_out_dir/chrome.breakpad.$current_cpu" | 1042 symbol_file = "$root_out_dir/chrome.breakpad.$current_cpu" |
| 1043 } |
| 1044 |
| 1045 inputs = [ |
| 1046 chrome_binary, |
| 1047 dump_syms_binary, |
| 1048 ] |
| 1049 outputs = [ |
| 1050 symbol_file, |
| 1051 ] |
| 1052 |
| 1053 args = [ |
| 1054 "./" + rebase_path(dump_syms_binary, root_build_dir), |
| 1055 "0", # TODO(GYP) This is linux_strip_binary if it is needed. |
| 1056 rebase_path(chrome_binary, root_build_dir), |
| 1057 rebase_path(symbol_file, root_build_dir), |
| 1058 ] |
| 1059 |
| 1060 deps = [ |
| 1061 ":chrome", |
| 1062 dump_syms_label, |
| 1063 ] |
1042 } | 1064 } |
1043 | |
1044 inputs = [ | |
1045 chrome_binary, | |
1046 dump_syms_binary, | |
1047 ] | |
1048 outputs = [ | |
1049 symbol_file, | |
1050 ] | |
1051 | |
1052 args = [ | |
1053 "./" + rebase_path(dump_syms_binary, root_build_dir), | |
1054 "0", # TODO(GYP) This is linux_strip_binary if it is needed. | |
1055 rebase_path(chrome_binary, root_build_dir), | |
1056 rebase_path(symbol_file, root_build_dir), | |
1057 ] | |
1058 | |
1059 deps = [ | |
1060 ":chrome", | |
1061 dump_syms_label, | |
1062 ] | |
1063 } | 1065 } |
1064 | 1066 |
1065 # Copies some scripts and resources that are used for desktop integration. | 1067 # Copies some scripts and resources that are used for desktop integration. |
1066 copy("xdg_mime") { | 1068 copy("xdg_mime") { |
1067 sources = [ | 1069 sources = [ |
1068 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1070 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
1069 "//chrome/tools/build/linux/chrome-wrapper", | 1071 "//chrome/tools/build/linux/chrome-wrapper", |
1070 "//third_party/xdg-utils/scripts/xdg-mime", | 1072 "//third_party/xdg-utils/scripts/xdg-mime", |
1071 "//third_party/xdg-utils/scripts/xdg-settings", | 1073 "//third_party/xdg-utils/scripts/xdg-settings", |
1072 ] | 1074 ] |
1073 outputs = [ | 1075 outputs = [ |
1074 "$root_out_dir/{{source_file_part}}", | 1076 "$root_out_dir/{{source_file_part}}", |
1075 ] | 1077 ] |
1076 } | 1078 } |
1077 } | 1079 } |
OLD | NEW |