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