Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CppMainWithOptionalFeature (0.16 sec)

  1. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppMainWithOptionalFeature.groovy

     * limitations under the License.
     */
    
    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class CppMainWithOptionalFeature extends SourceFileElement implements AppElement {
        final GreeterElement greeter
    
        CppMainWithOptionalFeature(GreeterElement greeter) {
            this.greeter = greeter
        }
    
        final SourceFile sourceFile = new SourceFile("cpp", "main.cpp", """
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-11-16 20:20
    - 1.5K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppAppWithLibraryAndOptionalFeature.groovy

        private final greeter = new CppGreeterWithOptionalFeature()
        final main = new CppMainWithOptionalFeature(greeter)
        final greeterLib = greeter.asLib()
    
        AppElement withFeatureDisabled() {
            return main
        }
    
        AppElement withFeatureEnabled() {
            return new CppMainWithOptionalFeature(greeter.withFeatureEnabled()).withFeatureEnabled()
        }
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-11-16 20:20
    - 1.2K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppAppWithOptionalFeature.groovy

    /**
     * A single project C++ app, with several source files, and an optional compile time feature.
     */
    class CppAppWithOptionalFeature extends CppSourceElement {
        final greeter = new CppGreeter()
        final main = new CppMainWithOptionalFeature(greeter)
    
        @Override
        SourceElement getSources() {
            return ofElements(main, greeter.sources)
        }
    
        @Override
        SourceElement getHeaders() {
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-11-16 20:20
    - 1.2K bytes
    - Viewed (0)
Back to top