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

org.gradle.language.cpp.internal.tooling.DefaultCompilationDetails Maven / Gradle / Ivy

There is a newer version: 8.11.1
Show newest version
/*
 * Copyright 2018 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.language.cpp.internal.tooling;

import org.gradle.plugins.ide.internal.tooling.model.LaunchableGradleTask;

import java.io.File;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;

public class DefaultCompilationDetails implements Serializable {
    private final LaunchableGradleTask compileTask;
    private final File compilerExe;
    private final File workingDir;
    private final List sources;
    private final List headerDirs;
    private final List systemHeaderDirs;
    private final List userHeaderDirs;
    private final List macroDefines;
    private final List additionalArgs;

    public DefaultCompilationDetails(LaunchableGradleTask compileTask, File compilerExe, File workingDir, List sources, List headerDirs, List systemHeaderDirs, List userHeaderDirs, List macroDefines, List additionalArgs) {
        this.compileTask = compileTask;
        this.compilerExe = compilerExe;
        this.workingDir = workingDir;
        this.sources = sources;
        this.headerDirs = headerDirs;
        this.systemHeaderDirs = systemHeaderDirs;
        this.userHeaderDirs = userHeaderDirs;
        this.macroDefines = macroDefines;
        this.additionalArgs = additionalArgs;
    }

    public LaunchableGradleTask getCompileTask() {
        return compileTask;
    }

    public File getCompilerExecutable() {
        return compilerExe;
    }

    public File getCompileWorkingDir() {
        return workingDir;
    }

    public List getSources() {
        return sources;
    }

    public List getHeaderDirs() {
        return headerDirs;
    }

    public List getFrameworkSearchPaths() {
        return Collections.emptyList();
    }

    public List getSystemHeaderSearchPaths() {
        return systemHeaderDirs;
    }

    public List getUserHeaderSearchPaths() {
        return userHeaderDirs;
    }

    public List getMacroDefines() {
        return macroDefines;
    }

    public List getMacroUndefines() {
        return Collections.emptyList();
    }

    public List getAdditionalArgs() {
        return additionalArgs;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy