Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 87 for NativeExecutableSpec (0.3 sec)

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

            }
    
            buildFile << """
    model {
        platforms {
            x86 {
                architecture "i386"
            }
        }
        components {
            main(NativeExecutableSpec) {
                targetPlatform "x86"
                binaries.all {
                    linker.args "-v"
                }
            }
        }
    }
                """
            then:
            succeeds "mainExecutable"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLanguageIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "build fails when compilation fails"() {
            given:
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
             """
    
            and:
            file("src/main/cpp/broken.cpp") << """
            #include <iostream>
    
            'broken
    """
    
            expect:
            fails "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)
  3. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/SourceSetCompileDependenciesIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache
        def "dependencies of 2 language source sets are not shared when compiling"() {
            given:
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
                    cpp {
                        lib library: 'lib1', linkage: 'api'
                    }
                    otherCpp(CppSourceSet) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/internal/DefaultNativeExecutableSpec.java

     * limitations under the License.
     */
    package org.gradle.nativeplatform.internal;
    
    import org.gradle.nativeplatform.NativeExecutableSpec;
    
    public class DefaultNativeExecutableSpec extends AbstractTargetedNativeComponentSpec implements NativeExecutableSpec {
        @Override
        protected String getTypeName() {
            return "native executable";
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 931 bytes
    - Viewed (0)
  5. platforms/native/language-native/src/test/groovy/org/gradle/language/assembler/plugins/AssemblerPluginTest.groovy

    import org.gradle.language.assembler.tasks.Assemble
    import org.gradle.model.ModelMap
    import org.gradle.nativeplatform.NativeBinary
    import org.gradle.nativeplatform.NativeExecutableBinarySpec
    import org.gradle.nativeplatform.NativeExecutableSpec
    import org.gradle.nativeplatform.NativeLibrarySpec
    import org.gradle.nativeplatform.SharedLibraryBinarySpec
    import org.gradle.nativeplatform.StaticLibraryBinarySpec
    import org.gradle.platform.base.PlatformBaseSpecification
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/multi-project/groovy/exe/build.gradle

    plugins {
        id 'cpp'
    }
    
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
                    cpp {
                        lib project: ':lib', library: 'main'
                    }
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 239 bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/NativeExecutableBinarySpec.java

             * The install task.
             */
            Task getInstall();
        }
    
        /**
         * {@inheritDoc}
         */
        @Override
        NativeExecutableSpec getApplication();
    
        /**
         * {@inheritDoc}
         */
        @Override
        NativeExecutableSpec getComponent();
    
        /**
         * Native Installation location for a native executable.
         */
        NativeInstallationSpec getInstallation();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cunit/CUnitComponentReportIntegrationTest.groovy

            buildFile << """
    plugins {
        id 'c'
        id 'cunit-test-suite'
    }
    
    model {
        toolChains {
            ${toolChain.buildScriptConfig}
        }
        components {
            someExe(NativeExecutableSpec)
        }
        testSuites {
            someExeTest(CUnitTestSuiteSpec)
        }
    }
    """
            when:
            fails "components"
    
            then:
    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/LibraryBinariesIntegrationTest.groovy

            given:
            buildFile << """
    apply plugin: "cpp"
    model {
        components {
            helloStatic(NativeLibrarySpec)
            helloShared(NativeLibrarySpec)
            main(NativeExecutableSpec) {
                sources {
                    cpp.lib library: 'helloStatic', linkage: 'static'
                    cpp.lib library: 'helloShared', linkage: 'shared'
                }
            }
        }
    }
    """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  10. 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)
Back to top