summaryrefslogtreecommitdiffstats
path: root/chrome/chrome_android_paks.gypi
blob: aa3257405db5833640f400642b9cf929912e2881 (plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Copyright (c) 2012 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.
{
  'includes': ['../build/android/v8_external_startup_data_arch_suffix.gypi'],
  'variables': {
    'chrome_android_pak_output_folder': '<@(PRODUCT_DIR)/assets/<(package_name)',
    'chrome_android_pak_input_resources': [
      '<(PRODUCT_DIR)/resources.pak',
      '<(PRODUCT_DIR)/chrome_100_percent.pak',
    ],
    'chrome_android_pak_locale_resources': [
      '<(PRODUCT_DIR)/locales/am.pak',
      '<(PRODUCT_DIR)/locales/ar.pak',
      '<(PRODUCT_DIR)/locales/bg.pak',
      '<(PRODUCT_DIR)/locales/ca.pak',
      '<(PRODUCT_DIR)/locales/cs.pak',
      '<(PRODUCT_DIR)/locales/da.pak',
      '<(PRODUCT_DIR)/locales/de.pak',
      '<(PRODUCT_DIR)/locales/el.pak',
      '<(PRODUCT_DIR)/locales/en-GB.pak',
      '<(PRODUCT_DIR)/locales/en-US.pak',
      '<(PRODUCT_DIR)/locales/es.pak',
      '<(PRODUCT_DIR)/locales/es-419.pak',
      '<(PRODUCT_DIR)/locales/fa.pak',
      '<(PRODUCT_DIR)/locales/fi.pak',
      '<(PRODUCT_DIR)/locales/fil.pak',
      '<(PRODUCT_DIR)/locales/fr.pak',
      '<(PRODUCT_DIR)/locales/he.pak',
      '<(PRODUCT_DIR)/locales/hi.pak',
      '<(PRODUCT_DIR)/locales/hr.pak',
      '<(PRODUCT_DIR)/locales/hu.pak',
      '<(PRODUCT_DIR)/locales/id.pak',
      '<(PRODUCT_DIR)/locales/it.pak',
      '<(PRODUCT_DIR)/locales/ja.pak',
      '<(PRODUCT_DIR)/locales/ko.pak',
      '<(PRODUCT_DIR)/locales/lt.pak',
      '<(PRODUCT_DIR)/locales/lv.pak',
      '<(PRODUCT_DIR)/locales/nb.pak',
      '<(PRODUCT_DIR)/locales/nl.pak',
      '<(PRODUCT_DIR)/locales/pl.pak',
      '<(PRODUCT_DIR)/locales/pt-BR.pak',
      '<(PRODUCT_DIR)/locales/pt-PT.pak',
      '<(PRODUCT_DIR)/locales/ro.pak',
      '<(PRODUCT_DIR)/locales/ru.pak',
      '<(PRODUCT_DIR)/locales/sk.pak',
      '<(PRODUCT_DIR)/locales/sl.pak',
      '<(PRODUCT_DIR)/locales/sr.pak',
      '<(PRODUCT_DIR)/locales/sv.pak',
      '<(PRODUCT_DIR)/locales/sw.pak',
      '<(PRODUCT_DIR)/locales/th.pak',
      '<(PRODUCT_DIR)/locales/tr.pak',
      '<(PRODUCT_DIR)/locales/uk.pak',
      '<(PRODUCT_DIR)/locales/vi.pak',
      '<(PRODUCT_DIR)/locales/zh-CN.pak',
      '<(PRODUCT_DIR)/locales/zh-TW.pak',
    ],
    'chrome_android_pak_output_resources': [
      '<(chrome_android_pak_output_folder)/resources.pak',
      '<(chrome_android_pak_output_folder)/chrome_100_percent.pak',
    ],
    'conditions': [
      ['icu_use_data_file_flag==1', {
        'chrome_android_pak_input_resources': [
          '<(PRODUCT_DIR)/icudtl.dat',
        ],
        'chrome_android_pak_output_resources': [
          '<(chrome_android_pak_output_folder)/icudtl.dat',
        ],
      }],
      ['v8_use_external_startup_data==1', {
        'chrome_android_pak_output_resources': [
          '<(chrome_android_pak_output_folder)/natives_blob_<(arch_suffix).bin',
          '<(chrome_android_pak_output_folder)/snapshot_blob_<(arch_suffix).bin',
        ],
      }],
    ],
  },
  'targets': [
    {
      'target_name': 'chrome_android_paks_copy',
      'type': 'none',
      'dependencies': [
        '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
        '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
      ],
      'variables': {
        'dest_path': '<(chrome_android_pak_output_folder)',
        'src_files': [
          '<@(chrome_android_pak_input_resources)',
        ],
        'clear': 1,
        'conditions': [
          ['v8_use_external_startup_data==1', {
             'renaming_sources': [
               '<(PRODUCT_DIR)/snapshot_blob.bin',
               '<(PRODUCT_DIR)/natives_blob.bin',
             ],
             'renaming_destinations': [
               'snapshot_blob_<(arch_suffix).bin',
               'natives_blob_<(arch_suffix).bin',
             ],
          }],
        ],
      },
      'includes': ['../build/android/copy_ex.gypi'],
    },
  ],
}