Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for writeToDir (0.15 sec)

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

            given:
            new SourceFile(app.sourceType, "hello.h", app.libraryHeader.content).writeToDir(file("src/hello"))
            app.librarySources.each { it.writeToDir(file("src/hello")) }
            new SourceFile(app.sourceType, "common.h", app.commonHeader.content).writeToDir(file("src/hello"))
    
            when:
            buildFile << preCompiledHeaderComponent()
            buildFile << """
                model {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/GeneratedSourcesIntegrationTest.groovy

            // Write sources to src/main, headers to src/input
            def app = new CHelloWorldApp()
            app.executable.writeSources(file("src/main"))
            app.library.sourceFiles*.writeToDir(file("src/main"))
            app.library.headerFiles*.writeToDir(file("src/input"))
            degenerateInputSources()
    
            when:
            buildFile << """
        apply plugin: 'c'
    
    model {
        components { comp ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/PrebuiltLibrariesIntegrationTest.groovy

        def "locates prebuilt library in another project"() {
            given:
            app.executable.writeSources(file("projectA/src/main"))
            app.librarySources*.writeToDir(file("projectA/src/main"))
            app.libraryHeader.writeToDir(file("projectB/libs/src/hello"))
    
            and:
            settingsFile.text = "include ':projectA', ':projectB'"
            buildFile << """
    project(':projectA') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIncrementalBuildIntegrationTest.groovy

            """
            settingsFile << "rootProject.name = 'test'"
            sourceFile = app.mainSource.writeToDir(file("src/main"))
            headerFile = app.libraryHeader.writeToDir(file("src/hello"))
            commonHeaderFile = app.commonHeader.writeToDir(file("src/hello"))
            app.librarySources.each {
                librarySourceFiles << it.writeToDir(file("src/hello"))
            }
        }
    
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIncrementalCompileIntegrationTest.groovy

            }
        }
            """
    
            and:
            sourceFile = app.mainSource.writeToDir(file("src/main"))
            sharedHeaderFile = app.libraryHeader.writeToDir(file("src/main"))
            commonHeaderFile = app.commonHeader.writeToDir(file("src/main"))
            app.librarySources.each {
                otherSourceFiles << it.writeToDir(file("src/main"))
            }
            otherHeaderFile = file("src/main/headers/other.h") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  6. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/googletest/GoogleTestIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "variant-dependent sources are included in test binary"() {
            given:
            app.library.headerFiles*.writeToDir(file("src/hello"))
            app.googleTestTests.writeSources(file("src/helloTest"))
            app.library.sourceFiles*.writeToDir(file("src/variant"))
    
            when:
            buildFile << """
    model {
        components {
            hello(NativeLibrarySpec) { l ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  7. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioSoftwareModelSingleProjectIntegrationTest.groovy

            given:
            def app = new CppHelloWorldApp()
            app.executable.writeSources(file("src/main"))
    
            app.library.headerFiles*.writeToDir(file("src/helloApi"))
            app.library.sourceFiles*.writeToDir(file("src/hello"))
    
            and:
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 35.7K bytes
    - Viewed (0)
  8. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cunit/CUnitIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "variant-dependent sources are included in test binary"() {
            given:
            app.library.headerFiles*.writeToDir(file("src/hello"))
            app.cunitTests.writeSources(file("src/helloTest"))
            app.library.sourceFiles*.writeToDir(file("src/variant"))
    
            when:
            buildFile << """
    model {
        components {
            hello(NativeLibrarySpec) { l ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 17K bytes
    - Viewed (0)
Back to top