Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 87 for NativeExecutableSpec (0.4 sec)

  1. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/googletest/TestingNativeComponentReportIntegrationTest.groovy

            buildFile << """
    plugins {
        id 'cpp'
        id 'google-test-test-suite'
    }
    
    model {
        toolChains {
            ${toolChain.buildScriptConfig}
        }
        components {
            someExe(NativeExecutableSpec)
        }
        testSuites {
            someExeTest(GoogleTestTestSuiteSpec) {
                testing \$.components.someExe
            }
        }
    }
    """
            when:
            succeeds "components"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/objectivec/ObjectiveCUnsupportedIntegrationTest.groovy

        }
    
        def "fails with decent error message with visual studio toolchain"() {
            given:
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
            """
    
            and:
            helloWorldApp.writeSources(file("src/main"))
    
            when:
            fails "compileMainExecutableMainObjc"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/CommonToolchainCustomizationIntegTest.groovy

                    }
                    linker.withArguments { args ->
                        args.remove "CUSTOM"
                    }
                }
            }
        }
        components {
            main(NativeExecutableSpec) {
                binaries.all {
                    cppCompiler.args "CUSTOM"
                    linker.args "CUSTOM"
                }
            }
        }
    }
            """
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/NativeExecutableFileSpec.java

    import org.gradle.nativeplatform.toolchain.NativeToolChain;
    
    import java.io.File;
    
    /**
     * Specifies how to build and where to place a native executable file.
     *
     * <p>TODO:HH resolve naming conflict with existing NativeExecutableSpec</p>
     */
    @Incubating @UnmanagedStruct
    public class NativeExecutableFileSpec {
    
        private File file;
        private NativeToolChain toolChain;
    
        public File getFile() {
            return file;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/VisualCppToolChainDiscoveryIntegrationTest.groovy

        def setup() {
            buildFile << """
    apply plugin: 'c'
    
    model {
        toolChains {
            ${toolChain.buildScriptConfig}
        }
        components {
            main(NativeExecutableSpec)
        }
    }
    """
    
            helloWorldApp.executable.writeSources(file("src/main"))
            helloWorldApp.library.writeSources(file("src/main"))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/platform/InstallExecutableIntegrationTest.groovy

        def testApp = new PlatformDetectingTestApp()
        def os = OperatingSystem.current()
    
        def setup() {
            buildFile << """
    plugins {
        id 'cpp'
    }
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
    """
    
            testApp.writeSources(file("src/main"))
        }
    
        @ToBeFixedForConfigurationCache
        def "can create installation for a different os than the current one"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/NativeDependentComponentsIntegrationSpec.groovy

                            binaries.all {
                                lib library: 'greetings' , linkage: 'static'
                            }
                        }
                        main(NativeExecutableSpec) {
                            binaries.all {
                                lib library: 'hello'
                            }
                        }
                    }
                }
            '''.stripIndent()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/MultipleNativeToolChainIntegrationTest.groovy

        toolChains {
            ${x86ToolChain.buildScriptConfig}
            ${sparcToolChain.buildScriptConfig}
            ${sparcToolChain.id} {
                target("sparc")
            }
        }
        components {
            main(NativeExecutableSpec) {
                targetPlatform "i386"
                targetPlatform "sparc"
            }
        }
    }
    """
    
            then:
            succeeds 'mainI386Executable', 'mainSparcExecutable'
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/GccToolChainCrossCompilationIntegrationTest.groovy

        def setup() {
            buildFile << """
    apply plugin: 'c'
    
    model {
        toolChains {
            ${toolChain.buildScriptConfig}
        }
        components {
            main(NativeExecutableSpec) {
                binaries.all {
                    lib library: 'hello', linkage: 'static'
                }
            }
            hello(NativeLibrarySpec)
        }
    }
    """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/configure/NativeBinaryRulesTest.groovy

        def "test executable"() {
            def executableFile = new NativeExecutableFileSpec();
            def installation = new NativeInstallationSpec();
            def binary = initBinary(NativeExecutableBinarySpecInternal, NativeExecutableSpec)
            binary.executable >> executableFile
            binary.installation >> installation
    
            when:
            toolProvider.getExecutableName("base_name") >> "exe_name"
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top