Package org.gradle.nativeplatform.toolchain.internal.gcc.version

Examples of org.gradle.nativeplatform.toolchain.internal.gcc.version.GccVersionDeterminer


        return new UnavailableToolChain("gcc cygwin");
    }

    static private ToolChainCandidate findGcc(NativePlatformInternal targetPlatform) {
        GccVersionDeterminer versionDeterminer = GccVersionDeterminer.forGcc(new ExecActionFactory() {
            public ExecAction newExecAction() {
                return new DefaultExecAction(TestFiles.resolver());
            }
        });

        List<File> gppCandidates = targetPlatform.getOperatingSystem().getInternalOs().findAllInPath("g++");
        for (int i = 0; i < gppCandidates.size(); i++) {
            File candidate = gppCandidates.get(i);
            GccVersionResult version = versionDeterminer.getGccMetaData(candidate, Collections.<String>emptyList());
            if (version.isAvailable()) {
                InstalledGcc gcc = new InstalledGcc("gcc");
                if (i > 0) {
                    // Not the first g++ in the path, needs the path variable updated
                    gcc.inPath(candidate.getParentFile());
View Full Code Here

TOP

Related Classes of org.gradle.nativeplatform.toolchain.internal.gcc.version.GccVersionDeterminer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.