blob: 8499d727881403cf5a81733c88982aea11dcc0bf [file] [log] [blame]
Rico Wind86bfc832018-09-18 07:48:21 +02001# Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file
2# for details. All rights reserved. Use of this source code is governed by a
3# BSD-style license that can be found in the LICENSE file.
4
5import os
6import utils
7
Christoffer Quist Adamsence640052020-04-30 11:47:41 +02008ANDROID_N_API = '24'
Rico Wind6238f222018-10-03 10:36:10 +02009BASE = os.path.join(utils.THIRD_PARTY, 'chrome')
Rico Wind86bfc832018-09-18 07:48:21 +020010
Christoffer Quist Adamsence640052020-04-30 11:47:41 +020011V200430_BASE = os.path.join(BASE, 'chrome_200430')
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020012V200520_MINIMAL_BASE = os.path.join(BASE, 'monochrome_public_minimal_apks',
13 'chrome_200520')
Jinseong Jeonb0849772019-07-17 23:47:03 -070014
Rico Wind86bfc832018-09-18 07:48:21 +020015VERSIONS = {
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020016 '200430': {
17 'deploy': {
18 'inputs': [os.path.join(V200430_BASE, 'program.jar')],
19 'pgconf': [os.path.join(V200430_BASE, 'proguard.config')],
20 'libraries': [os.path.join(V200430_BASE, 'library.jar')],
21 'min-api': ANDROID_N_API,
22 },
Christoffer Quist Adamsence640052020-04-30 11:47:41 +020023 },
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020024 '200520-monochrome_public_minimal_apks': {
25 'deploy': {
26 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'program.jar')],
27 'features': [{
28 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-1.jar')]
29 }, {
30 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-2.jar')]
31 }, {
32 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-3.jar')]
33 }, {
34 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-4.jar')]
35 }, {
36 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-5.jar')]
37 }, {
38 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-6.jar')]
39 }, {
40 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-7.jar')]
41 }, {
42 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-8.jar')]
43 }],
44 'pgconf': [
45 os.path.join(V200520_MINIMAL_BASE, 'proguard.config'),
46 utils.IGNORE_WARNINGS_RULES
47 ],
48 'libraries': [os.path.join(V200520_MINIMAL_BASE, 'library.jar')],
49 'min-api': ANDROID_N_API
50 },
Christoffer Quist Adamsen287c1862020-05-20 15:51:12 +020051 },
Rico Wind86bfc832018-09-18 07:48:21 +020052}
Christoffer Quist Adamsen81d41502021-06-25 09:33:43 +020053
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020054
Christoffer Quist Adamsen81d41502021-06-25 09:33:43 +020055def GetLatestVersion():
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020056 return '200520-monochrome_public_minimal_apks'
57
Christoffer Quist Adamsen81d41502021-06-25 09:33:43 +020058
59def GetName():
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020060 return 'chrome'
61
Christoffer Quist Adamsen81d41502021-06-25 09:33:43 +020062
63def GetMemoryData(version):
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020064 assert version == '200520-monochrome_public_minimal_apks'
65 return {
66 'find-xmx-min': 600,
67 'find-xmx-max': 700,
68 'find-xmx-range': 16,
69 'oom-threshold': 625,
70 }