Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License") |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef DEX2OAT_OPTIONS_KEY |
| 18 | #error "Please #define DEX2OAT_OPTIONS_KEY before #including this file" |
| 19 | #define DEX2OAT_OPTIONS_KEY(...) // Don't display errors in this file in IDEs. |
| 20 | #endif |
| 21 | |
| 22 | // This file defines the list of keys for Dex2oatOptions. |
| 23 | // These can be used with Dex2oatOptions.Get/Set/etc, for example: |
| 24 | // Dex2oatOptions opt; bool* dex2oat_enabled = opt.Get(Dex2oatOptions::Dex2Oat); |
| 25 | // |
| 26 | // Column Descriptions: |
| 27 | // <<Type>> <<Key Name>> <<Default Value>> |
| 28 | // |
| 29 | // Default values are only used by Map::GetOrDefault(K<T>). |
| 30 | // If a default value is omitted here, T{} is used as the default value, which is |
| 31 | // almost-always the value of the type as if it was memset to all 0. |
| 32 | // |
| 33 | // Please keep the columns aligned if possible when adding new rows. |
| 34 | // |
| 35 | |
| 36 | // Parse-able keys from the command line. |
Mathieu Chartier | eafe2a5 | 2017-10-19 15:29:42 -0700 | [diff] [blame] | 37 | DEX2OAT_OPTIONS_KEY (CompactDexLevel, CompactDexLevel) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 38 | DEX2OAT_OPTIONS_KEY (std::vector<std::string>, DexFiles) |
| 39 | DEX2OAT_OPTIONS_KEY (std::vector<std::string>, DexLocations) |
| 40 | DEX2OAT_OPTIONS_KEY (int, ZipFd) |
| 41 | DEX2OAT_OPTIONS_KEY (std::string, ZipLocation) |
| 42 | DEX2OAT_OPTIONS_KEY (int, InputVdexFd) |
| 43 | DEX2OAT_OPTIONS_KEY (std::string, InputVdex) |
| 44 | DEX2OAT_OPTIONS_KEY (int, OutputVdexFd) |
| 45 | DEX2OAT_OPTIONS_KEY (std::string, OutputVdex) |
Nicolas Geoffray | baeaa9b | 2018-01-26 14:31:17 +0000 | [diff] [blame] | 46 | DEX2OAT_OPTIONS_KEY (int, DmFd) |
| 47 | DEX2OAT_OPTIONS_KEY (std::string, DmFile) |
Vladimir Marko | d0036ac | 2019-11-21 11:47:12 +0000 | [diff] [blame] | 48 | DEX2OAT_OPTIONS_KEY (std::string, OatFile) |
| 49 | DEX2OAT_OPTIONS_KEY (std::string, OatSymbols) |
David Srbecky | de91fd4 | 2018-07-05 22:27:08 +0100 | [diff] [blame] | 50 | DEX2OAT_OPTIONS_KEY (Unit, Strip) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 51 | DEX2OAT_OPTIONS_KEY (int, OatFd) |
| 52 | DEX2OAT_OPTIONS_KEY (std::string, OatLocation) |
| 53 | DEX2OAT_OPTIONS_KEY (bool, Watchdog) |
| 54 | DEX2OAT_OPTIONS_KEY (int, WatchdogTimeout) |
| 55 | DEX2OAT_OPTIONS_KEY (unsigned int, Threads) |
Orion Hodson | ffc791c | 2019-11-14 19:19:28 +0000 | [diff] [blame] | 56 | DEX2OAT_OPTIONS_KEY (std::vector<std::int32_t>, CpuSet) |
Vladimir Marko | d0036ac | 2019-11-21 11:47:12 +0000 | [diff] [blame] | 57 | DEX2OAT_OPTIONS_KEY (std::string, ImageFilename) |
| 58 | DEX2OAT_OPTIONS_KEY (int, ImageFd) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 59 | DEX2OAT_OPTIONS_KEY (ImageHeader::StorageMode, ImageFormat) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 60 | DEX2OAT_OPTIONS_KEY (std::string, Passes) |
| 61 | DEX2OAT_OPTIONS_KEY (std::string, Base) // TODO: Hex string parsing. |
| 62 | DEX2OAT_OPTIONS_KEY (std::string, BootImage) |
| 63 | DEX2OAT_OPTIONS_KEY (std::string, AndroidRoot) |
| 64 | DEX2OAT_OPTIONS_KEY (InstructionSet, TargetInstructionSet) |
| 65 | DEX2OAT_OPTIONS_KEY (std::string, TargetInstructionSetVariant) |
| 66 | DEX2OAT_OPTIONS_KEY (std::string, TargetInstructionSetFeatures) |
| 67 | DEX2OAT_OPTIONS_KEY (Compiler::Kind, Backend) |
| 68 | DEX2OAT_OPTIONS_KEY (std::string, Profile) |
| 69 | DEX2OAT_OPTIONS_KEY (int, ProfileFd) |
| 70 | DEX2OAT_OPTIONS_KEY (Unit, Host) |
| 71 | DEX2OAT_OPTIONS_KEY (Unit, DumpTiming) |
| 72 | DEX2OAT_OPTIONS_KEY (Unit, DumpPasses) |
| 73 | DEX2OAT_OPTIONS_KEY (Unit, DumpStats) |
Andreas Gampe | 1554417 | 2018-06-25 15:09:06 -0700 | [diff] [blame] | 74 | DEX2OAT_OPTIONS_KEY (linker::CopyOption, CopyDexFiles) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 75 | DEX2OAT_OPTIONS_KEY (Unit, AvoidStoringInvocation) |
| 76 | DEX2OAT_OPTIONS_KEY (std::string, SwapFile) |
| 77 | DEX2OAT_OPTIONS_KEY (int, SwapFileFd) |
| 78 | DEX2OAT_OPTIONS_KEY (unsigned int, SwapDexSizeThreshold) |
| 79 | DEX2OAT_OPTIONS_KEY (unsigned int, SwapDexCountThreshold) |
| 80 | DEX2OAT_OPTIONS_KEY (unsigned int, VeryLargeAppThreshold) |
| 81 | DEX2OAT_OPTIONS_KEY (std::string, AppImageFile) |
| 82 | DEX2OAT_OPTIONS_KEY (int, AppImageFileFd) |
Vladimir Marko | d0036ac | 2019-11-21 11:47:12 +0000 | [diff] [blame] | 83 | DEX2OAT_OPTIONS_KEY (bool, MultiImage) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 84 | DEX2OAT_OPTIONS_KEY (std::string, NoInlineFrom) |
| 85 | DEX2OAT_OPTIONS_KEY (Unit, ForceDeterminism) |
| 86 | DEX2OAT_OPTIONS_KEY (std::string, ClasspathDir) |
Alex Light | 62afcf5 | 2018-12-18 14:19:25 -0800 | [diff] [blame] | 87 | DEX2OAT_OPTIONS_KEY (std::string, InvocationFile) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 88 | DEX2OAT_OPTIONS_KEY (std::string, ClassLoaderContext) |
David Brazdil | 8982186 | 2019-03-19 13:57:43 +0000 | [diff] [blame] | 89 | DEX2OAT_OPTIONS_KEY (std::string, ClassLoaderContextFds) |
Mathieu Chartier | f5abfc4 | 2018-03-23 21:51:54 -0700 | [diff] [blame] | 90 | DEX2OAT_OPTIONS_KEY (std::string, StoredClassLoaderContext) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 91 | DEX2OAT_OPTIONS_KEY (std::string, DirtyImageObjects) |
Vladimir Marko | d1f7351 | 2020-04-02 10:50:35 +0100 | [diff] [blame] | 92 | DEX2OAT_OPTIONS_KEY (std::string, UpdatableBcpPackagesFile) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 93 | DEX2OAT_OPTIONS_KEY (std::vector<std::string>, RuntimeOptions) |
Calin Juravle | 0e09dfc | 2018-02-12 19:01:09 -0800 | [diff] [blame] | 94 | DEX2OAT_OPTIONS_KEY (std::string, CompilationReason) |
David Sehr | fe57c2b | 2020-03-27 14:58:54 +0000 | [diff] [blame] | 95 | DEX2OAT_OPTIONS_KEY (Unit, CheckLinkageConditions) |
| 96 | DEX2OAT_OPTIONS_KEY (Unit, CrashOnLinkageViolation) |
Eric Holk | bc89ed4 | 2020-04-29 19:59:24 +0000 | [diff] [blame] | 97 | DEX2OAT_OPTIONS_KEY (Unit, CompileIndividually) |
Calin Juravle | 3378768 | 2019-07-26 14:27:18 -0700 | [diff] [blame] | 98 | DEX2OAT_OPTIONS_KEY (std::string, PublicSdk) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 99 | |
| 100 | #undef DEX2OAT_OPTIONS_KEY |