Class SwiftCompile

    • Constructor Detail

      • SwiftCompile

        public SwiftCompile()
    • Method Detail

      • setToolChain

        public void setToolChain​(NativeToolChain toolChain)
        Sets the tool chain to use for compilation.
        Since:
        4.4
      • getTargetPlatform

        public NativePlatform getTargetPlatform()
        The platform being compiled for.
        Since:
        4.4
      • setTargetPlatform

        public void setTargetPlatform​(NativePlatform targetPlatform)
        Sets the platform being compiled for.
        Since:
        4.4
      • getMacros

        @Input
        public Map<String,​String> getMacros()
        Macros that should be defined for the compiler.
        Since:
        4.4
      • setMacros

        public void setMacros​(Map<String,​String> macros)
        Sets the macros that should be defined when compiling.
        Since:
        4.4
      • isDebuggable

        @Input
        public boolean isDebuggable()
        Should the compiler generate debuggable code?
        Since:
        4.4
      • setDebuggable

        public void setDebuggable​(boolean debug)
        Should the compiler generate debuggable code?
        Since:
        4.4
      • isOptimized

        @Input
        public boolean isOptimized()
        Should the compiler generate optimized code?
        Since:
        4.4
      • setOptimized

        public void setOptimized​(boolean optimize)
        Should the compiler generate optimized code?
        Since:
        4.4
      • getCompilerArgs

        @Input
        public ListProperty<String> getCompilerArgs()
        Additional arguments to provide to the compiler.
        Since:
        4.4
      • getCompilerVersion

        protected CompilerVersion getCompilerVersion()
        The compiler used, including the type and the version.
        Since:
        4.4