Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 63 for writeResources (0.22 sec)

  1. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/VisualCppToolChainDiscoveryIntegrationTest.groovy

    model {
        toolChains {
            ${toolChain.buildScriptConfig}
        }
        components {
            main(NativeExecutableSpec)
        }
    }
    """
    
            helloWorldApp.executable.writeSources(file("src/main"))
            helloWorldApp.library.writeSources(file("src/main"))
        }
    
        def "tool chain is not available when visual studio install is not available"() {
            when:
            buildFile << """
    model {
        toolChains {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/platform/BinaryNativePlatformIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "library with matching platform is enforced by dependency resolution"() {
            given:
            testApp.executable.writeSources(file("src/exe"))
            testApp.library.writeSources(file("src/hello"))
            when:
            buildFile << """
    model {
        platforms {
            sparc {
                architecture "sparc"
            }
            x86 {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLanguageParallelIntegrationTest.groovy

            ]
    
            apps.each { name, app ->
                buildFile << app.pluginScript
                buildFile << app.extraConfiguration
    
                app.executable.writeSources(file("src/${name}Main"))
                app.library.writeSources(file("src/${name}Hello"))
                app.greetingsHeader.writeToDir(file("src/${name}Hello"))
                app.greetingsSources*.writeToDir(file("src/${name}Greetings"))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/integTest/groovy/org/gradle/language/c/CLanguageIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "sources are compiled with C compiler"() {
            def app = new CCompilerDetectingTestApp()
    
            given:
            app.writeSources(file('src/main'))
    
            and:
            buildFile << """
                model {
                    components {
                        main(NativeExecutableSpec)
                    }
                }
             """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/rc/WindowsResourcesUnsupportedIntegrationTest.groovy

    plugins {
        id 'cpp'
        id 'windows-resources'
    }
    
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
             """
    
            and:
            helloWorldApp.writeSources(file("src/main"))
            file("src/main/rc/broken.rc") << """
            #include <stdio.h>
    
            NOT A VALID RESOURCE
    """
    
            when:
            run "mainExecutable"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/integTest/groovy/org/gradle/language/DuplicateBaseNamesIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "can have sourcefiles with same base name but different directories"() {
            given:
            def testApp = initTestApp(testAppType)
    
            when:
            testApp.writeSources(file("src/main"))
            buildFile.text = ""
            testApp.plugins.each { plugin ->
                buildFile << "apply plugin: '$plugin'\n"
            }
    
            buildFile << """
    model {
        platforms {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  7. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cunit/CUnitDependentComponentsIntegrationSpec.groovy

                        }
                    }
                }
            """.stripIndent()
        }
    
        private useConventionalSourceLocations() {
            app.library.writeSources(file("src/hello"))
            app.cunitTests.writeSources(file("src/helloTest"))
        }
    
        private def getCunitLibName() {
            return OperatingSystem.current().getStaticLibraryName("cunit")
        }
    
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  8. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/googletest/GoogleTestDependentComponentsIntegrationSpec.groovy

        private def getGoogleTestLib() {
            return OperatingSystem.current().getStaticLibraryName("gtest")
        }
    
        private useConventionalSourceLocations() {
            app.library.writeSources(file("src/hello"))
            app.googleTestTests.writeSources(file("src/helloTest"))
        }
    
        @ToBeFixedForConfigurationCache
        def "buildDependentsHello assemble and check all hello binaries"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/integTest/groovy/org/gradle/language/assembler/AssemblyLanguageIncrementalBuildIntegrationTest.groovy

                            }
                        }
                    }
                }
            """
            settingsFile << "rootProject.name = 'test'"
    
            app.executable.writeSources(file("src/main"))
            app.library.writeSources(file("src/hello"))
            asmSourceFile = file("src/hello/asm/sum.s")
    
            run "installMainExecutable"
    
            install = installation("build/install/main")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLanguageIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache
        def "sources are compiled with C++ compiler"() {
            def app = new CppCompilerDetectingTestApp()
    
            given:
            app.writeSources(file('src/main'))
    
            and:
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
             """
    
            expect:
            succeeds "mainExecutable"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
Back to top