Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for NativeExecutableSpec (0.41 sec)

  1. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/NativeExecutableSpec.java

    import org.gradle.api.Incubating;
    import org.gradle.platform.base.ApplicationSpec;
    
    /**
     * Definition of a native executable component that is to be built by Gradle.
     */
    @Incubating
    public interface NativeExecutableSpec extends ApplicationSpec, NativeComponentSpec, TargetedNativeComponent {
        
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 951 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/dsl/org.gradle.nativeplatform.NativeExecutableSpec.xml

    Laura Kassovic <******@****.***> 1701107622 -0800
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache
        def "compile and link executable"() {
            given:
            buildFile << """
                model {
                    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
    - 8.9K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/NativeComponentExtension.java

    public interface NativeComponentExtension {
        /**
         * The {@link NativeExecutableSpec} components produced by the build.
         */
        NamedDomainObjectContainer<NativeExecutableSpec> getExecutables();
    
        /**
         * Configure the {@link NativeExecutableSpec} components produced by the build.
         */
        void executables(Action<? super NamedDomainObjectContainer<? super NativeExecutableSpec>> action);
    
        /**
    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/main/java/org/gradle/nativeplatform/internal/configure/DefaultNativeComponentExtension.java

    import org.gradle.api.NamedDomainObjectContainer;
    import org.gradle.nativeplatform.NativeExecutableSpec;
    import org.gradle.nativeplatform.NativeLibrarySpec;
    import org.gradle.nativeplatform.NativeComponentExtension;
    
    public class DefaultNativeComponentExtension implements NativeComponentExtension {
        private final NamedDomainObjectContainer<NativeExecutableSpec> executables;
        private final NamedDomainObjectContainer<NativeLibrarySpec> libraries;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/GeneratedSourcesIntegrationTest.groovy

            app.writeSources(file("src/input"))
            degenerateInputSources()
    
            when:
            buildFile << """
    apply plugin: 'c'
    
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
                    c.generatedBy tasks.generateCSources
                }
            }
        }
    }
    """
    
            then:
            executableBuilt(app)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/BinaryConfigurationIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "can configure the binaries of a C++ application"() {
            given:
            buildFile << """
    apply plugin: "cpp"
    
    model {
        components {
            main(NativeExecutableSpec) {
                binaries.all {
                    cppCompiler.define 'ENABLE_GREETING'
                }
            }
        }
    }
    """
    
            and:
            file("src/main/cpp/helloworld.cpp") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/NativeBinariesIntegrationTest.groovy

        }
    
        def "skips building executable binary with no source"() {
            given:
            buildFile << """
    apply plugin: "cpp"
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
    """
    
            when:
            succeeds "mainExecutable"
    
            then:
            executable("build/binaries/mainExecutable/main").assertDoesNotExist()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/LibraryApiDependenciesIntegrationTest.groovy

    model {
        components { comp ->
            helloApi(NativeLibrarySpec)
            hello(NativeLibrarySpec) {
                sources {
                    cpp.lib ${notation}
                }
            }
            main(NativeExecutableSpec) {
                sources {
                    cpp.lib ${notation}
                    cpp.lib library: 'hello'
                }
            }
        }
    }
    """
    
            when:
            succeeds "installMainExecutable"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioSoftwareModelSingleProjectIntegrationTest.groovy

        def "creating visual studio multiple time gives the same result"() {
            given:
            app.writeSources(file("src/main"))
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
    """
            when:
            run "visualStudio"
            def filtersFileContent = filtersFile("mainExe.vcxproj.filters").file.text
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 35.7K bytes
    - Viewed (0)
Back to top