Package org.gradle.nativeplatform.internal

Examples of org.gradle.nativeplatform.internal.CompilerOutputFileNamingScheme


        private final File inputFile;
        private final File outputFile;

        public AssembleSpecToArgsList(File inputFile, File objectFileRootDir, String outputFileSuffix) {
            this.inputFile = inputFile;
            this.outputFile = new CompilerOutputFileNamingScheme()
                                    .withOutputBaseFolder(objectFileRootDir)
                                    .withObjectFileNameSuffix(outputFileSuffix)
                                    .map(inputFile);
        }
View Full Code Here


            return args;
        }

        private File getOutputFile(WindowsResourceCompileSpec spec) {

            File outputFile = new CompilerOutputFileNamingScheme()
                    .withObjectFileNameSuffix(".res")
                    .withOutputBaseFolder(spec.getObjectFileDir())
                    .map(inputFile);

            File outputDirectory = outputFile.getParentFile();
View Full Code Here

        public List<String> transform(AssembleSpec spec) {
            List<String> args = new ArrayList<String>();
            args.addAll(escapeUserArgs(spec.getAllArgs()));
            args.add("/nologo");
            args.add("/c");
            File outputFile = new CompilerOutputFileNamingScheme()
                    .withOutputBaseFolder(spec.getObjectFileDir())
                    .withObjectFileNameSuffix(".obj")
                    .map(inputFile);

            if (!outputFile.getParentFile().exists()) {
View Full Code Here

        CollectionUtils.addAll(args, outputFileArgTransformer.transform(outputFilePath));
        return args;
    }

    protected File getOutputFileDir(File sourceFile, File objectFileDir) {
        File outputFile = new CompilerOutputFileNamingScheme()
                                .withObjectFileNameSuffix(objectFileNameSuffix)
                                .withOutputBaseFolder(objectFileDir)
                                .map(sourceFile);
        File outputDirectory = outputFile.getParentFile();
        if (!outputDirectory.exists()) {
View Full Code Here

        }
        return didRemove;
    }

    private File getObjectFile(File objectFileRoot, File sourceFile) {
        return new CompilerOutputFileNamingScheme()
                        .withObjectFileNameSuffix(outputFileSuffix)
                        .withOutputBaseFolder(objectFileRoot)
                        .map(sourceFile);
    }
View Full Code Here

TOP

Related Classes of org.gradle.nativeplatform.internal.CompilerOutputFileNamingScheme

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.