Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for NativeExecutableSpec (0.87 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/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)
  5. 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)
  6. 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)
  7. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/internal/DefaultNativeExecutableBinarySpec.java

        private final NativeExecutableFileSpec executable = new NativeExecutableFileSpec();
    
        @Override
        public NativeExecutableSpec getComponent() {
            return getComponentAs(NativeExecutableSpec.class);
        }
    
        @Override
        public NativeExecutableSpec getApplication() {
            return getComponentAs(NativeExecutableSpec.class);
        }
    
        @Override
        public NativeExecutableFileSpec getExecutable() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/BinaryBuildTypesIntegrationTest.groovy

                ext.debug = true
            }
            integration {
                ext.debug = true
            }
            release {
                ext.debug = false
            }
        }
        components {
            main(NativeExecutableSpec) {
                binaries.all { binary ->
                    if (toolChain in Gcc && buildType.debug) {
                        cppCompiler.args "-g"
                    }
                    if (toolChain in VisualCpp) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/SourceSetDependenciesIntegrationTest.groovy

            app.executable.writeSources(file("src/main"))
            app.library.writeSources(file("src/library"))
    
            buildFile << """
    apply plugin: 'c'
    
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
                    library(CSourceSet) {
                        source.srcDir "src/library/c"
                        exportedHeaders.srcDir "src/library/headers"
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/integTest/groovy/org/gradle/language/c/CLanguageIntegrationTest.groovy

            given:
            app.writeSources(file('src/main'))
    
            and:
            buildFile << """
                model {
                    components {
                        main(NativeExecutableSpec)
                    }
                }
             """
    
            expect:
            succeeds "mainExecutable"
            executable("build/exe/main/main").exec().out == app.expectedOutput(toolChain)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top