Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 87 for NativeExecutableSpec (0.49 sec)

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

                // we need to reapply the 32-bit platform config for cygwin64 and mingw64
                ${toolChain.platformSpecificToolChainConfiguration()}
            }
        }
        components {
            main(NativeExecutableSpec)
        }
    }
            """
    
            and:
            helloWorldApp.writeSources(file("src/main"))
    
            when:
            run "mainExecutable"
    
            then:
    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/rc/WindowsResourcesUnsupportedIntegrationTest.groovy

        def "resource files are ignored on unsupported platforms"() {
            given:
            buildFile << """
    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
    """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/native-binaries/target-platforms/groovy/build.gradle

            }
        }
        platforms {
            arm {
                architecture "arm"
            }
            sparc {
                architecture "sparc"
            }
        }
        components {
            main(NativeExecutableSpec) {
                targetPlatform "arm"
                targetPlatform "sparc"
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 688 bytes
    - Viewed (0)
  4. platforms/native/language-native/src/integTest/groovy/org/gradle/language/c/MixedLanguageIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache
        def "can have all source files co-located in a common directory"() {
            given:
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
                    cpp {
                        source {
                            srcDirs "src/main/flat"
                            include "**/*.cpp"
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/rc/WindowsResourcesIntegrationTest.groovy

        def "compile and link executable with #sdk.name (#sdk.version.toString()) [#tc.displayName]"() {
            given:
            buildFile << """
                model {
                    components {
                        main(NativeExecutableSpec)
                    }
    
                    toolChains {
                        ${toolChain.id} {
                            windowsSdkDir "${TextUtil.normaliseFileSeparators(sdk.getBaseDir().absolutePath)}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/objective-cpp/groovy/build.gradle

    // tag::apply-plugin[]
    plugins {
        id 'objective-cpp'
    }
    // end::apply-plugin[]
    
    // tag::executables[]
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
    // end::executables[]
    
    // tag::all-binaries[]
    model {
        binaries {
            all {
                //on macOS we need different linker settings than on Linux or Windows
                if (targetPlatform.operatingSystem.macOsX) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 743 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/native-binaries/cpp/groovy/build.gradle

    // end::apply-plugin[]
    
    // tag::libraries[]
    model {
        components {
            hello(NativeLibrarySpec)
        }
    }
    // end::libraries[]
    
    // tag::executables[]
    model {
        components {
            main(NativeExecutableSpec) {
    // tag::source-library[]
                sources {
                    cpp {
                        lib library: "hello"
                    }
                }
    // end::source-library[]
            }
        }
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/assembler/AssemblyLanguageIntegrationTest.groovy

            return new AssemblerWithCHelloWorldApp(toolChain)
        }
    
        def "build fails when assemble fails"() {
            given:
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
            """
    
            and:
            file("src/main/asm/broken.s") << """
    .section    __TEXT,__text,regular,pure_instructions
    .globl  _sum
    .align  4, 0x90
    _sum:
    pushl
    """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/flavors/groovy/build.gradle

        }
    }
    // end::flavors[]
    
    model {
        binaries {
            withType(SharedLibraryBinarySpec) {
                cppCompiler.define "DLL_EXPORT"
            }
        }
        components {
            main(NativeExecutableSpec) {
                binaries.all {
                    lib library: 'hello'
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 624 bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/DefaultNativeExecutableBinarySpecTest.groovy

    import org.gradle.api.internal.CollectionCallbackActionDecorator
    import org.gradle.nativeplatform.BuildType
    import org.gradle.nativeplatform.NativeExecutableBinarySpec
    import org.gradle.nativeplatform.NativeExecutableSpec
    import org.gradle.nativeplatform.internal.resolve.NativeDependencyResolver
    import org.gradle.nativeplatform.platform.NativePlatform
    import org.gradle.nativeplatform.tasks.InstallExecutable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top