Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 42 for compileTask (0.2 sec)

  1. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLibraryIntegrationTest.groovy

            """
            buildFile << """
                apply plugin: 'cpp-library'
    
                library {
                    binaries.configureEach {
                        compileTask.get().compilerArgs.add("-Wall")
                        compileTask.get().compilerArgs.add("-Werror")
                    }
                }
             """
    
            expect:
            succeeds "assemble"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 19.8K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/BaseIncrementalCompilationAfterFailureIntegrationTest.groovy

        }
    
        def "can disable incremental compilation after failure and forces full recompilation"() {
            given:
            def compileTask = language == CompiledLanguage.GROOVY ? "GroovyCompile" : "JavaCompile"
            buildFile << """
            tasks.withType($compileTask) {
                options.incremental = true
                options.incrementalAfterFailure = false
            }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:30 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftLibraryIntegrationTest.groovy

            and:
            buildFile << """
                apply plugin: 'swift-library'
                library.binaries.getByName('mainDebug').configure {
                    compileTask.get().objectFileDir = layout.buildDirectory.dir("object-files")
                    compileTask.get().moduleFile = layout.buildDirectory.file("some-lib.swiftmodule")
                    linkTask.get().linkedFile = layout.buildDirectory.file("some-lib/main.bin")
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 15:17:55 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/language/swift/AbstractSwiftMixedLanguageIntegrationTest.groovy

                initScript << """
                    allprojects { p ->
                        p.plugins.withId("cpp-library") {
                            p.library.binaries.configureEach(CppStaticLibrary) {
                                compileTask.get().configure {
                                    compilerArgs.add("-fPIC")
                                }
                            }
                        }
                    }
                """
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppApplicationIntegrationTest.groovy

                    application.binaries.get { it.optimized }.configure {
                        compileTask.get().macros(WITH_FEATURE: "true")
                    }
                }
                project(':hello') {
                    apply plugin: 'cpp-library'
                    library.binaries.get { it.optimized }.configure {
                        compileTask.get().macros(WITH_FEATURE: "true")
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 19:11:01 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativePreCompiledHeaderIntegrationTest.groovy

            def pchCompileTask = getPCHCompileTaskName(lib, linkage)
            def compileTask = getLibraryCompileTaskName(lib, linkage, sourceSet)
            def generateTask = getGeneratePrefixHeaderTaskName(lib, sourceSet)
            executedAndNotSkipped ":${compileTask}"
            skipped ":${pchCompileTask}", ":${generateTask}"
            assert output.count(getUniquePragmaOutput(DEFAULT_PCH_MESSAGE)) == 0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  7. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/api/plugins/JavaPluginTest.groovy

            setupProjectWithToolchain(someJdk.javaVersion)
    
            when:
            project.sourceSets.create('custom')
    
            then:
            def compileTask = project.tasks.named("compileCustomJava", JavaCompile).get()
            def configuredToolchain = compileTask.javaCompiler.get().javaToolchain
            configuredToolchain.javaVersion.toString().contains(someJdk.javaVersion.getMajorVersion())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftApplicationCppInteroperabilityIntegrationTest.groovy

                    apply plugin: 'cpp-library'
                    library {
                        linkage = [Linkage.${linkage}]
                        binaries.configureEach {
                            compileTask.get().positionIndependentCode = true
                        }
                    }
                }
            """
            swiftGreeter.writeToProject(file("greeter"))
            app.writeToProject(file("app"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  9. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioIncrementalIntegrationTest.groovy

            executedAndNotSkipped getComponentTasks("app")
    
            when:
            buildFile << """
                application {
                    binaries.configureEach { binary ->
                        binary.compileTask.get().macros["FOO"] = null
                    }
                }
            """
            run "visualStudio"
    
            then:
            skipped ":appVisualStudioSolution"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLibraryPublishingIntegrationTest.groovy

                version = '1.2'
                publishing {
                    repositories { maven { url '${repoDir.toURI()}' } }
                }
    
                library.binaries.get { it.optimized }.configure {
                    compileTask.get().macros(WITH_FEATURE: "true")
                }
    
            """
            app.greeterLib.writeToProject(file(producer))
    
            executer.inDirectory(producer)
            run('publish')
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 12:57:50 UTC 2024
    - 39.8K bytes
    - Viewed (0)
Back to top