Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 87 for NativeExecutableSpec (2.37 sec)

  1. platforms/documentation/docs/src/snippets/native-binaries/tool-chains/groovy/build.gradle

                        args.remove "CUSTOM"
                    }
                }
            }
        }
    }
    // end::withArguments[]
    
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
    
    // tag::buildable[]
    model {
        tasks {
            buildAllExecutables(Task) {
                dependsOn $.binaries.findAll { it.buildable }
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/objectivecpp/ObjectiveCppUnsupportedIntegrationTest.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 "compileMainExecutableMainObjcpp"
    
            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/GccToolChainCustomisationIntegrationTest.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
    - 8.5K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/CommonToolChainIntegrationTest.groovy

            def app = new CHelloWorldApp()
    
            given:
            buildFile << """
    apply plugin: 'c'
    
    model {
        components {
            main(NativeExecutableSpec) {
                binaries.all {
                    lib library: 'hello', linkage: 'api'
    
                    def librarySearchPath = 'build/libs/hello/static'
                    def libraryName = 'hello'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/idl/groovy/build.gradle

        headerDir = project.file("${buildDir}/src/generated/headers")
        sourceDir = project.file("${buildDir}/src/generated/c")
    }
    
    
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
                    idlOutput(CSourceSet) {
                        generatedBy tasks.idl
                    }
                    c.lib sources.idlOutput
                }
            }
        }
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/variants/groovy/build.gradle

    }
    // end::build-types[]
    
    // tag::target-platforms[]
    model {
        components {
            hello(NativeLibrarySpec) {
                targetPlatform "x86"
                targetPlatform "x64"
            }
            main(NativeExecutableSpec) {
                targetPlatform "x86"
                targetPlatform "x64"
                sources {
                    cpp.lib library: 'hello', linkage: 'static'
                }
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/native-binaries/visual-studio/groovy/build.gradle

                    content.asBuilder().insert(insertPos, sourceControlSection)
                }
            }
        }
    }
    // end::customize-solution-files[]
    
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
                    cpp.lib library: "hello"
                }
            }
            hello(NativeLibrarySpec)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/platform/BinaryNativePlatformIntegrationTest.groovy

        def testApp = new PlatformDetectingTestApp()
        def os = OperatingSystem.current()
    
        def setup() {
            buildFile << """
    plugins {
        id 'cpp'
    }
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
    """
    
            testApp.writeSources(file("src/main"))
        }
    
        // Tests will only work on x86 and x86-64 architectures
        def currentArch() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/NativeDependentComponentsReportIntegrationTest.groovy

                        shareware
                        shrinkware
                    }
    
                    components {
                        lib(NativeLibrarySpec)
    
                        main(NativeExecutableSpec) {
                            sources {
                                cpp.lib library: 'lib'
                            }
                        }
                    }
                }
            """.stripIndent()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 24K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/native/native_software.adoc

    .build.gradle
    ----
    include::{snippetsPath}/native-binaries/c/groovy/build.gradle[tag=executables]
    ----
    
    An executable component is represented using link:{javadocPath}/org/gradle/nativeplatform/NativeExecutableSpec.html[NativeExecutableSpec]. Each executable component can produce at least one executable binary (link:{javadocPath}/org/gradle/nativeplatform/NativeExecutableBinarySpec.html[NativeExecutableBinarySpec]).
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 24 23:14:04 UTC 2024
    - 54.6K bytes
    - Viewed (0)
Back to top