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

org.gradle.nativeplatform.toolchain.internal.NativeCompileSpec Maven / Gradle / Ivy

There is a newer version: 8.11.1
Show newest version
/*
 * Copyright 2012 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.gradle.nativeplatform.toolchain.internal;

import org.gradle.nativeplatform.internal.BinaryToolSpec;

import java.io.File;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * A compile spec that will be used to generate object files for combining into a native binary.
 */
public interface NativeCompileSpec extends BinaryToolSpec {
    File getObjectFileDir();

    void setObjectFileDir(File objectFileDir);

    List getIncludeRoots();

    void include(Iterable includeRoots);

    void include(File... includeRoots);

    List getSystemIncludeRoots();

    void systemInclude(Iterable systemIncludeRoots);

    List getSourceFiles();

    void setSourceFiles(Collection sources);

    void source(Iterable sources);

    List getRemovedSourceFiles();

    void setRemovedSourceFiles(Collection sources);

    void removedSource(Iterable sources);

    Map getMacros();

    void setMacros(Map macros);

    void define(String name);

    void define(String name, String value);

    boolean isPositionIndependentCode();

    void setPositionIndependentCode(boolean flag);

    boolean isDebuggable();

    void setDebuggable(boolean flag);

    boolean isOptimized();

    void setOptimized(boolean flag);

    boolean isIncrementalCompile();

    void setIncrementalCompile(boolean flag);

    File getPrefixHeaderFile();

    void setPrefixHeaderFile(File prefixHeaderFile);

    File getPreCompiledHeaderObjectFile();

    void setPreCompiledHeaderObjectFile(File preCompiledHeaderObjectFile);

    String getPreCompiledHeader();

    void setPreCompiledHeader(String header);

    List getSourceFilesForPch();

    void setSourceFilesForPch(List sourceFilesForPch);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy