1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/mac/rules.gni")
assert(is_mac)
translated_xibs = [
"AppMenu.xib",
"BookmarkAllTabs.xib",
"BookmarkBar.xib",
"BookmarkBubble.xib",
"BookmarkEditor.xib",
"BookmarkNameFolder.xib",
"CollectedCookies.xib",
"ContentBlockedCookies.xib",
"ContentBlockedDownloads.xib",
"ContentBlockedGeolocation.xib",
"ContentBlockedMIDISysEx.xib",
"ContentBlockedMedia.xib",
"ContentBlockedMixedScript.xib",
"ContentBlockedPlugins.xib",
"ContentBlockedPopups.xib",
"ContentBlockedSimple.xib",
"ContentProtocolHandlers.xib",
"ContentSubresourceFilter.xib",
"CookieDetailsView.xib",
"DownloadItem.xib",
"DownloadShelf.xib",
"ExtensionInstallPrompt.xib",
"ExtensionInstallPromptNoWarnings.xib",
"ExtensionInstallPromptWebstoreData.xib",
"ExtensionInstalledBubble.xib",
"FirstRunBubble.xib",
"FirstRunDialog.xib",
"HttpAuthLoginSheet.xib",
"HungRendererDialog.xib",
"MainMenu.xib",
"OneClickSigninBubble.xib",
"OneClickSigninDialog.xib",
"SaveAccessoryView.xib",
"TaskManager.xib",
"Toolbar.xib",
]
untranslated_xibs = [
"BookmarkBarFolderWindow.xib",
"FindBar.xib",
"GlobalErrorBubble.xib",
"InfoBar.xib",
]
mac_xib_bundle_data("chrome_xibs") {
sources = translated_xibs + untranslated_xibs
}
action("localizer_table") {
script = "generate_localizer.py"
sources = translated_xibs
table_path = "$target_gen_dir/localizer_table.h"
outputs = [
table_path,
]
args = [
"--output_path",
rebase_path(table_path, root_build_dir),
]
if (!use_system_xcode) {
args += [
"--developer_dir",
hermetic_xcode_path,
]
}
args += rebase_path(translated_xibs, root_build_dir)
}
|