Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 225 for linkage (0.13 sec)

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

        @Override
        Map<String, String> getVariantFileInformation(String linkage, String module, String variantModuleNameWithVersion) {
            return [name: staticLibraryName(module), url: withStaticLibrarySuffix(variantModuleNameWithVersion), extension: staticLibraryExtension]
        }
    
        @Override
        boolean publishesArtifactForLinkage(String linkage) {
            return linkage == 'Link'
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftBothLibraryLinkageIntegrationTest.groovy

            return new SwiftLib()
        }
    
        @Override
        protected void makeSingleProject() {
            buildFile << """
                apply plugin: 'swift-library'
                library.linkage = [Linkage.SHARED, Linkage.STATIC]
            """
        }
    
        @Override
        String getDevelopmentBinaryCompileTask() {
            return ":compileDebugSharedSwift"
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/DefaultNativeLibrarySpecTest.groovy

            requirement.linkage == 'shared'
        }
    
        def "can use static variant as requirement"() {
            when:
            def requirement = library.static
    
            then:
            requirement.projectPath == 'project-path'
            requirement.libraryName == 'someLib'
            requirement.linkage == 'static'
        }
    
        def "can use api linkage as requirement"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/SourceSetCompileDependenciesIntegrationTest.groovy

    model {
        components {
            main(NativeExecutableSpec) {
                sources {
                    cpp {
                        lib library: 'lib1', linkage: 'api'
                    }
                    otherCpp(CppSourceSet) {
                        lib library: 'lib2', linkage: 'api'
                    }
                }
            }
        }
    }
    """
    
            when:
            succeeds "mainExecutable"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/main/java/org/gradle/language/cpp/internal/DefaultCppLibrary.java

            publicHeaders = objectFactory.fileCollection();
            publicHeadersWithConvention = createDirView(publicHeaders, "src/" + name + "/public");
    
            linkage = objectFactory.setProperty(Linkage.class);
            linkage.set(Collections.singleton(Linkage.SHARED));
    
            dependencies = objectFactory.newInstance(DefaultLibraryDependencies.class, getNames().withSuffix("implementation"), getNames().withSuffix("api"));
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 04:34:06 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  6. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/xctest/SwiftXCTestCppInteroperabilityIntegrationTest.groovy

                    library.linkage = [Linkage.${linkage}]
                }
            """
            lib.writeToProject(testDirectory)
            cppGreeter.asLib().writeToProject(file("cppGreeter"))
    
            when:
            succeeds("test")
    
            then:
            result.assertTasksExecuted(":cppGreeter:compileDebugCpp", ":cppGreeter:${createOrLink(linkage)}Debug",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppSharedLibraryLinkageIntegrationTest.groovy

            return new CppLib()
        }
    
        @ToBeFixedForConfigurationCache
        def "can create shared library binary when only shared linkage is specified"() {
            def library = new CppLib()
            buildFile << """
                apply plugin: 'cpp-library'
    
                library {
                    linkage = [Linkage.SHARED]
                }
            """
            settingsFile << """
                rootProject.name = 'foo'
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppBothLibraryLinkageIntegrationTest.groovy

        }
    
        @Override
        protected void makeSingleProject() {
            buildFile << """
                apply plugin: 'cpp-library'
                library.linkage = [Linkage.SHARED, Linkage.STATIC]
            """
        }
    
        @Override
        protected String getDevelopmentBinaryCompileTask() {
            return ":compileDebugSharedCpp"
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/resolve/NativeDependencyNotationParserTest.groovy

            when:
            def input = [project: 'other', library: 'libName', linkage: 'static']
            def dependency = parser.parseNotation(input)
    
            then:
            dependency.projectPath == "other"
            dependency.libraryName == "libName"
            dependency.linkage == "static"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/LibraryApiDependenciesIntegrationTest.groovy

            main(NativeExecutableSpec) {
                sources {
                    cpp.lib library: 'hello', linkage: 'api'
                    cpp.lib library: 'hello2'
                }
            }
            hello(NativeLibrarySpec)
            hello2(NativeLibrarySpec) {
                sources {
                    cpp.lib library: 'hello', linkage: 'api'
                }
            }
        }
    }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top