| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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/mac/rules.gni") | 5 import("//build/config/mac/rules.gni") |
| 6 | 6 |
| 7 assert(is_mac) | 7 assert(is_mac) |
| 8 | 8 |
| 9 translated_xibs = [ | 9 translated_xibs = [ |
| 10 "AppMenu.xib", | 10 "AppMenu.xib", |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 "DownloadItem.xib", | 30 "DownloadItem.xib", |
| 31 "DownloadShelf.xib", | 31 "DownloadShelf.xib", |
| 32 "ExtensionInstallPrompt.xib", | 32 "ExtensionInstallPrompt.xib", |
| 33 "ExtensionInstallPromptNoWarnings.xib", | 33 "ExtensionInstallPromptNoWarnings.xib", |
| 34 "ExtensionInstallPromptWebstoreData.xib", | 34 "ExtensionInstallPromptWebstoreData.xib", |
| 35 "ExtensionInstalledBubble.xib", | 35 "ExtensionInstalledBubble.xib", |
| 36 "FirstRunBubble.xib", | 36 "FirstRunBubble.xib", |
| 37 "FirstRunDialog.xib", | 37 "FirstRunDialog.xib", |
| 38 "HttpAuthLoginSheet.xib", | 38 "HttpAuthLoginSheet.xib", |
| 39 "HungRendererDialog.xib", | 39 "HungRendererDialog.xib", |
| 40 "ImportProgressDialog.xib", | |
| 41 "MainMenu.xib", | 40 "MainMenu.xib", |
| 42 "OneClickSigninBubble.xib", | 41 "OneClickSigninBubble.xib", |
| 43 "OneClickSigninDialog.xib", | 42 "OneClickSigninDialog.xib", |
| 44 "SaveAccessoryView.xib", | 43 "SaveAccessoryView.xib", |
| 45 "TaskManager.xib", | 44 "TaskManager.xib", |
| 46 "Toolbar.xib", | 45 "Toolbar.xib", |
| 47 ] | 46 ] |
| 48 | 47 |
| 49 untranslated_xibs = [ | 48 untranslated_xibs = [ |
| 50 "BookmarkBarFolderWindow.xib", | 49 "BookmarkBarFolderWindow.xib", |
| 51 "FindBar.xib", | 50 "FindBar.xib", |
| 52 "GlobalErrorBubble.xib", | 51 "GlobalErrorBubble.xib", |
| 53 "InfoBar.xib", | 52 "InfoBar.xib", |
| 54 "Panel.xib", | |
| 55 ] | 53 ] |
| 56 | 54 |
| 57 mac_xib_bundle_data("chrome_xibs") { | 55 mac_xib_bundle_data("chrome_xibs") { |
| 58 sources = translated_xibs + untranslated_xibs | 56 sources = translated_xibs + untranslated_xibs |
| 59 } | 57 } |
| 60 | 58 |
| 61 action("localizer_table") { | 59 action("localizer_table") { |
| 62 script = "generate_localizer.py" | 60 script = "generate_localizer.py" |
| 63 | 61 |
| 64 sources = translated_xibs | 62 sources = translated_xibs |
| 65 table_path = "$target_gen_dir/localizer_table.h" | 63 table_path = "$target_gen_dir/localizer_table.h" |
| 66 outputs = [ | 64 outputs = [ |
| 67 table_path, | 65 table_path, |
| 68 ] | 66 ] |
| 69 args = [ | 67 args = [ |
| 70 "--output_path", | 68 "--output_path", |
| 71 rebase_path(table_path, root_build_dir), | 69 rebase_path(table_path, root_build_dir), |
| 72 ] | 70 ] |
| 73 if (!use_system_xcode) { | 71 if (!use_system_xcode) { |
| 74 args += [ | 72 args += [ |
| 75 "--developer_dir", | 73 "--developer_dir", |
| 76 hermetic_xcode_path, | 74 hermetic_xcode_path, |
| 77 ] | 75 ] |
| 78 } | 76 } |
| 79 args += rebase_path(translated_xibs, root_build_dir) | 77 args += rebase_path(translated_xibs, root_build_dir) |
| 80 } | 78 } |
| OLD | NEW |