Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for targetFlavors (0.19 sec)

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

            all {
                if (flavor == flavors.french) {
                    cppCompiler.define "FRENCH"
                }
            }
        }
        components {
            main { targetFlavors "french" }
            hello { targetFlavors "french" }
            greetings { targetFlavors "french" }
        }
    }
    """
            when:
            succeeds "installMainExecutable"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/DefaultNativeComponentTest.groovy

        }
    
        def "flavors can be chosen and will replace default flavor"() {
            when:
            component.targetFlavors "flavor1", "flavor2"
    
            and:
            component.targetFlavors("flavor3")
    
            then:
            component.chooseFlavors([flavor("flavor1"), flavor("flavor2"), flavor("flavor3"), flavor("flavor4")] as Set)*.name == ["flavor1", "flavor2", "flavor3"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/internal/configure/NativeComponentRules.java

            FileCollectionFactory fileCollectionFactory
        ) {
            Set<Flavor> targetFlavors = projectNativeComponent.chooseFlavors(allFlavors);
            for (Flavor flavor : targetFlavors) {
                BinaryNamingScheme namingSchemeWithFlavor = namingScheme.withVariantDimension(flavor, targetFlavors);
                NativeBinaries.createNativeBinaries(
                    projectNativeComponent,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/TargetedNativeComponent.java

    public interface TargetedNativeComponent extends PlatformAwareComponentSpec, NativeComponentSpec {
    
        /**
         * Specifies the names of one or more {@link Flavor}s that this component should be built for.
         */
        void targetFlavors(String... flavorSelectors);
    
        /**
         * Specifies the names of one or more {@link BuildType}s that this component should be built for.
         */
        void targetBuildTypes(String... buildTypeSelectors);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/dsl/org.gradle.nativeplatform.TargetedNativeComponent.xml

            <title>Methods</title>
            <table>
                <thead>
                    <tr>
                        <td>Name</td>
                    </tr>
                </thead>
                <tr>
                    <td>targetFlavors</td>
                </tr>
                <tr>
                    <td>targetBuildTypes</td>
                </tr>
            </table>
        </section>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/internal/AbstractTargetedNativeComponentSpec.java

        }
    
        @Override
        public void targetPlatform(String targetPlatform) {
            this.targetPlatforms.add(DefaultPlatformRequirement.create(targetPlatform));
        }
    
        @Override
        public void targetFlavors(String... flavorSelectors) {
            Collections.addAll(flavors, flavorSelectors);
        }
    
        @Override
        public void targetBuildTypes(String... buildTypeSelectors) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/native/native_software.adoc

    Gradle will attempt to create a native binary variant for each and every combination of `buildType` and `flavor` defined for the project. It is possible to override this on a per-component basis, by specifying the set of `targetBuildTypes` and/or `targetFlavors`. By default, Gradle will build for the default platform, see <<#native_binaries:platform,above>>, unless specified explicitly on a per-component basis by specifying a set of `targetPlatforms`.
    
    === Example: Targeting a component at particular...
    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