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) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 48 | DEX2OAT_OPTIONS_KEY (std::vector<std::string>, OatFiles) |
| 49 | DEX2OAT_OPTIONS_KEY (std::vector<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) |
| 56 | DEX2OAT_OPTIONS_KEY (std::vector<std::string>, ImageFilenames) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 57 | DEX2OAT_OPTIONS_KEY (ImageHeader::StorageMode, ImageFormat) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 58 | DEX2OAT_OPTIONS_KEY (std::string, Passes) |
| 59 | DEX2OAT_OPTIONS_KEY (std::string, Base) // TODO: Hex string parsing. |
| 60 | DEX2OAT_OPTIONS_KEY (std::string, BootImage) |
| 61 | DEX2OAT_OPTIONS_KEY (std::string, AndroidRoot) |
| 62 | DEX2OAT_OPTIONS_KEY (InstructionSet, TargetInstructionSet) |
| 63 | DEX2OAT_OPTIONS_KEY (std::string, TargetInstructionSetVariant) |
| 64 | DEX2OAT_OPTIONS_KEY (std::string, TargetInstructionSetFeatures) |
| 65 | DEX2OAT_OPTIONS_KEY (Compiler::Kind, Backend) |
| 66 | DEX2OAT_OPTIONS_KEY (std::string, Profile) |
| 67 | DEX2OAT_OPTIONS_KEY (int, ProfileFd) |
| 68 | DEX2OAT_OPTIONS_KEY (Unit, Host) |
| 69 | DEX2OAT_OPTIONS_KEY (Unit, DumpTiming) |
| 70 | DEX2OAT_OPTIONS_KEY (Unit, DumpPasses) |
| 71 | DEX2OAT_OPTIONS_KEY (Unit, DumpStats) |
Andreas Gampe | 1554417 | 2018-06-25 15:09:06 -0700 | [diff] [blame] | 72 | DEX2OAT_OPTIONS_KEY (linker::CopyOption, CopyDexFiles) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 73 | DEX2OAT_OPTIONS_KEY (Unit, AvoidStoringInvocation) |
| 74 | DEX2OAT_OPTIONS_KEY (std::string, SwapFile) |
| 75 | DEX2OAT_OPTIONS_KEY (int, SwapFileFd) |
| 76 | DEX2OAT_OPTIONS_KEY (unsigned int, SwapDexSizeThreshold) |
| 77 | DEX2OAT_OPTIONS_KEY (unsigned int, SwapDexCountThreshold) |
| 78 | DEX2OAT_OPTIONS_KEY (unsigned int, VeryLargeAppThreshold) |
| 79 | DEX2OAT_OPTIONS_KEY (std::string, AppImageFile) |
| 80 | DEX2OAT_OPTIONS_KEY (int, AppImageFileFd) |
| 81 | DEX2OAT_OPTIONS_KEY (Unit, MultiImage) |
| 82 | DEX2OAT_OPTIONS_KEY (std::string, NoInlineFrom) |
| 83 | DEX2OAT_OPTIONS_KEY (Unit, ForceDeterminism) |
| 84 | DEX2OAT_OPTIONS_KEY (std::string, ClasspathDir) |
Alex Light | 62afcf5 | 2018-12-18 14:19:25 -0800 | [diff] [blame] | 85 | DEX2OAT_OPTIONS_KEY (std::string, InvocationFile) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 86 | DEX2OAT_OPTIONS_KEY (std::string, ClassLoaderContext) |
David Brazdil | 8982186 | 2019-03-19 13:57:43 +0000 | [diff] [blame] | 87 | DEX2OAT_OPTIONS_KEY (std::string, ClassLoaderContextFds) |
Mathieu Chartier | f5abfc4 | 2018-03-23 21:51:54 -0700 | [diff] [blame] | 88 | DEX2OAT_OPTIONS_KEY (std::string, StoredClassLoaderContext) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 89 | DEX2OAT_OPTIONS_KEY (std::string, DirtyImageObjects) |
| 90 | DEX2OAT_OPTIONS_KEY (std::vector<std::string>, RuntimeOptions) |
Calin Juravle | 0e09dfc | 2018-02-12 19:01:09 -0800 | [diff] [blame] | 91 | DEX2OAT_OPTIONS_KEY (std::string, CompilationReason) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 92 | |
| 93 | #undef DEX2OAT_OPTIONS_KEY |