All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlin.backend.konan.KonanConfigurationKeys.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0-RC2
Show newest version
/*
 * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
 * that can be found in the LICENSE file.
 */

package org.jetbrains.kotlin.backend.konan

import org.jetbrains.kotlin.config.CompilerConfigurationKey
import org.jetbrains.kotlin.config.IrVerificationMode
import org.jetbrains.kotlin.konan.target.CompilerOutputKind
import org.jetbrains.kotlin.konan.target.KonanTarget

class KonanConfigKeys {
    companion object {
        // Keep the list lexically sorted.
        val BUNDLE_ID: CompilerConfigurationKey
                = CompilerConfigurationKey.create("bundle ID to be set in Info.plist of a produced framework")
        val CHECK_DEPENDENCIES: CompilerConfigurationKey
                = CompilerConfigurationKey.create("check dependencies and download the missing ones")
        val DEBUG: CompilerConfigurationKey
                = CompilerConfigurationKey.create("add debug information")
        val FAKE_OVERRIDE_VALIDATOR: CompilerConfigurationKey
                = CompilerConfigurationKey.create("fake override validator")
        val EMIT_LAZY_OBJC_HEADER_FILE: CompilerConfigurationKey =
                CompilerConfigurationKey.create("output file to emit lazy Obj-C header")
        val ENABLE_ASSERTIONS: CompilerConfigurationKey
                = CompilerConfigurationKey.create("enable runtime assertions in generated code")
        val ENTRY: CompilerConfigurationKey
                = CompilerConfigurationKey.create("fully qualified main() name")
        val EXPORTED_LIBRARIES: CompilerConfigurationKey>
                = CompilerConfigurationKey.create>("libraries included into produced framework API")
        val FULL_EXPORTED_NAME_PREFIX: CompilerConfigurationKey
                = CompilerConfigurationKey.create("prefix used when exporting Kotlin names to other languages")
        val LIBRARY_TO_ADD_TO_CACHE: CompilerConfigurationKey
                = CompilerConfigurationKey.create("path to library that to be added to cache")
        val CACHE_DIRECTORIES: CompilerConfigurationKey>
                = CompilerConfigurationKey.create>("paths to directories containing caches")
        val AUTO_CACHEABLE_FROM: CompilerConfigurationKey>
                = CompilerConfigurationKey.create>("paths to the root directories from which dependencies are to be cached automatically")
        val AUTO_CACHE_DIR: CompilerConfigurationKey
                = CompilerConfigurationKey.create("path to the directory where to put caches for auto-cacheable dependencies")
        val INCREMENTAL_CACHE_DIR: CompilerConfigurationKey
                = CompilerConfigurationKey.create("path to the directory where to put incremental build caches")
        val CACHED_LIBRARIES: CompilerConfigurationKey>
                = CompilerConfigurationKey.create>("mapping from library paths to cache paths")
        val FILES_TO_CACHE: CompilerConfigurationKey>
                = CompilerConfigurationKey.create>("which files should be compiled to cache")
        val MAKE_PER_FILE_CACHE: CompilerConfigurationKey
                = CompilerConfigurationKey.create("make per-file cache")
        val FRAMEWORK_IMPORT_HEADERS: CompilerConfigurationKey>
                = CompilerConfigurationKey.create>("headers imported to framework header")
        val FRIEND_MODULES: CompilerConfigurationKey>
                = CompilerConfigurationKey.create>("friend module paths")
        val REFINES_MODULES: CompilerConfigurationKey>
                = CompilerConfigurationKey.create>("refines module paths")
        val GENERATE_TEST_RUNNER: CompilerConfigurationKey
                = CompilerConfigurationKey.create("generate test runner") 
        val INCLUDED_BINARY_FILES: CompilerConfigurationKey>
                = CompilerConfigurationKey.create("included binary file paths")
        val KONAN_HOME: CompilerConfigurationKey
                = CompilerConfigurationKey.create("overridden compiler distribution path")
        val LIBRARY_FILES: CompilerConfigurationKey> 
                = CompilerConfigurationKey.create("library file paths")
        val LIGHT_DEBUG: CompilerConfigurationKey
                = CompilerConfigurationKey.create("add light debug information")
        val GENERATE_DEBUG_TRAMPOLINE: CompilerConfigurationKey
                = CompilerConfigurationKey.create("generates debug trampolines to make debugger breakpoint resolution more accurate")
        val LINKER_ARGS: CompilerConfigurationKey>
                = CompilerConfigurationKey.create("additional linker arguments")
        val LIST_TARGETS: CompilerConfigurationKey
                = CompilerConfigurationKey.create("list available targets")
        val MANIFEST_FILE: CompilerConfigurationKey 
                = CompilerConfigurationKey.create("provide manifest addend file")
        val HEADER_KLIB: CompilerConfigurationKey
                = CompilerConfigurationKey.create("path to file where header klib should be produced")
        val MODULE_NAME: CompilerConfigurationKey
                = CompilerConfigurationKey.create("module name")
        val NATIVE_LIBRARY_FILES: CompilerConfigurationKey>
                = CompilerConfigurationKey.create("native library file paths")
        val NODEFAULTLIBS: CompilerConfigurationKey
                = CompilerConfigurationKey.create("don't link with the default libraries")
        val NOENDORSEDLIBS: CompilerConfigurationKey
                = CompilerConfigurationKey.create("don't link with the endorsed libraries")
        val NOMAIN: CompilerConfigurationKey 
                = CompilerConfigurationKey.create("assume 'main' entry point to be provided by external libraries")
        val NOSTDLIB: CompilerConfigurationKey 
                = CompilerConfigurationKey.create("don't link with stdlib")
        val NOPACK: CompilerConfigurationKey 
                = CompilerConfigurationKey.create("don't the library into a klib file")
        val OPTIMIZATION: CompilerConfigurationKey 
                = CompilerConfigurationKey.create("optimized compilation")
        val OUTPUT: CompilerConfigurationKey 
                = CompilerConfigurationKey.create("program or library name")
        val OVERRIDE_CLANG_OPTIONS: CompilerConfigurationKey>
                = CompilerConfigurationKey.create("arguments for clang")
        val ALLOCATION_MODE: CompilerConfigurationKey
                = CompilerConfigurationKey.create("allocation mode")
        val EXPORT_KDOC: CompilerConfigurationKey
                = CompilerConfigurationKey.create("export KDoc into klib and framework")
        val PRINT_BITCODE: CompilerConfigurationKey
                = CompilerConfigurationKey.create("print bitcode")
        val PRINT_IR: CompilerConfigurationKey
                = CompilerConfigurationKey.create("print ir")
        val PRINT_FILES: CompilerConfigurationKey
                = CompilerConfigurationKey.create("print files")
        val PRODUCE: CompilerConfigurationKey
                = CompilerConfigurationKey.create("compiler output kind")
        val PURGE_USER_LIBS: CompilerConfigurationKey
                = CompilerConfigurationKey.create("purge user-specified libs too")
        val REPOSITORIES: CompilerConfigurationKey>
                = CompilerConfigurationKey.create("library search path repositories")
        val RUNTIME_FILE: CompilerConfigurationKey 
                = CompilerConfigurationKey.create("override default runtime file path")
        val INCLUDED_LIBRARIES: CompilerConfigurationKey>
                = CompilerConfigurationKey("klibs processed in the same manner as source files")
        val SHORT_MODULE_NAME: CompilerConfigurationKey
                = CompilerConfigurationKey("short module name for IDE and export")
        val STATIC_FRAMEWORK: CompilerConfigurationKey
                = CompilerConfigurationKey.create("produce a static library for a framework")
        val TARGET: CompilerConfigurationKey
                = CompilerConfigurationKey.create("target we compile for")
        val TEMPORARY_FILES_DIR: CompilerConfigurationKey
                = CompilerConfigurationKey.create("directory for temporary files")
        val SAVE_LLVM_IR: CompilerConfigurationKey>
                = CompilerConfigurationKey.create("save LLVM IR")
        val VERIFY_BITCODE: CompilerConfigurationKey
                = CompilerConfigurationKey.create("verify bitcode")
        val VERIFY_COMPILER: CompilerConfigurationKey
                = CompilerConfigurationKey.create("verify compiler")
        val DEBUG_INFO_VERSION: CompilerConfigurationKey
                = CompilerConfigurationKey.create("debug info format version")
        val OBJC_GENERICS: CompilerConfigurationKey
                = CompilerConfigurationKey.create("write objc header with generics support")
        val DEBUG_PREFIX_MAP: CompilerConfigurationKey>
                = CompilerConfigurationKey.create("remap file source paths in debug info")
        val PRE_LINK_CACHES: CompilerConfigurationKey
                = CompilerConfigurationKey.create("perform compiler caches pre-link")
        val OVERRIDE_KONAN_PROPERTIES: CompilerConfigurationKey>
                = CompilerConfigurationKey.create("override konan.properties values")
        val PROPERTY_LAZY_INITIALIZATION: CompilerConfigurationKey
                = CompilerConfigurationKey.create("lazy top level properties initialization")
        val EXTERNAL_DEPENDENCIES: CompilerConfigurationKey =
                CompilerConfigurationKey.create("use external dependencies to enhance IR linker error messages")
        val LLVM_VARIANT: CompilerConfigurationKey = CompilerConfigurationKey.create("llvm variant")
        val RUNTIME_LOGS: CompilerConfigurationKey = CompilerConfigurationKey.create("enable runtime logging")
        val LAZY_IR_FOR_CACHES: CompilerConfigurationKey = CompilerConfigurationKey.create("use lazy IR for cached libraries")
        val TEST_DUMP_OUTPUT_PATH: CompilerConfigurationKey = CompilerConfigurationKey.create("path to a file to dump the list of all available tests")
        val OMIT_FRAMEWORK_BINARY: CompilerConfigurationKey = CompilerConfigurationKey.create("do not generate binary in framework")
        val COMPILE_FROM_BITCODE: CompilerConfigurationKey = CompilerConfigurationKey.create("path to bitcode file to compile")
        val SERIALIZED_DEPENDENCIES: CompilerConfigurationKey = CompilerConfigurationKey.create("path to serialized dependencies for native linking")
        val SAVE_DEPENDENCIES_PATH: CompilerConfigurationKey = CompilerConfigurationKey.create("path to save serialized dependencies to")
        val SAVE_LLVM_IR_DIRECTORY: CompilerConfigurationKey = CompilerConfigurationKey.create("directory to store LLVM IR from phases")
        val KONAN_DATA_DIR: CompilerConfigurationKey = CompilerConfigurationKey.create("directory for storing konan dependencies, cache and prebuilds")
        val MANIFEST_NATIVE_TARGETS: CompilerConfigurationKey?> = CompilerConfigurationKey.create("value of native_targets property to write in manifest")
        val LLVM_MODULE_PASSES: CompilerConfigurationKey = CompilerConfigurationKey.create("llvm passes to run instead of module optimization pipeline")
        val LLVM_LTO_PASSES: CompilerConfigurationKey = CompilerConfigurationKey.create("llvm passes to run instead of LTO optimization pipeline")
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy