Package org.gradle.nativeplatform.toolchain.internal

Examples of org.gradle.nativeplatform.toolchain.internal.MutableCommandLineToolInvocation


        this.useCommandFile = useCommandFile;
        this.commandLineTool = commandLineTool;
    }

    public WorkResult execute(LinkerSpec spec) {
        MutableCommandLineToolInvocation invocation = baseInvocation.copy();
        if (useCommandFile) {
            invocation.addPostArgsAction(new GccOptionsFileArgTransformer(spec.getTempDir()));
        }
        invocation.setArgs(argsTransformer.transform(spec));
        commandLineTool.execute(invocation);
        return new SimpleWorkResult(true);
    }
View Full Code Here


    }

    public WorkResult execute(StaticLibraryArchiverSpec spec) {
        deletePreviousOutput(spec);

        MutableCommandLineToolInvocation invocation = baseInvocation.copy();
        invocation.setArgs(arguments.transform(spec));
        commandLineTool.execute(invocation);
        return new SimpleWorkResult(true);
    }
View Full Code Here

        this.baseInvocation = baseInvocation;
        this.outputFileSuffix = outputFileSuffix;
    }

    public WorkResult execute(AssembleSpec spec) {
        MutableCommandLineToolInvocation invocation = baseInvocation.copy();
        invocation.setWorkDirectory(spec.getObjectFileDir());
        for (File sourceFile : spec.getSourceFiles()) {
            ArgsTransformer<AssembleSpec> arguments = new AssembleSpecToArgsList(sourceFile, spec.getObjectFileDir(), outputFileSuffix);
            invocation.setArgs(arguments.transform(spec));
            commandLineTool.execute(invocation);
        }
        return new SimpleWorkResult(!spec.getSourceFiles().isEmpty());
    }
View Full Code Here

        this.commandLineTool = commandLineTool;
        this.baseInvocation = invocation;
    }

    public WorkResult execute(AssembleSpec spec) {
        MutableCommandLineToolInvocation invocation = baseInvocation.copy();
        invocation.setWorkDirectory(spec.getObjectFileDir());
        for (File sourceFile : spec.getSourceFiles()) {
            invocation.setArgs(new AssemblerArgsTransformer(sourceFile).transform(spec));
            commandLineTool.execute(invocation);
        }
        return new SimpleWorkResult(!spec.getSourceFiles().isEmpty());
    }
View Full Code Here

TOP

Related Classes of org.gradle.nativeplatform.toolchain.internal.MutableCommandLineToolInvocation

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.