Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 89 for Cpp (0.03 sec)

  1. platforms/documentation/docs/src/docs/userguide/native/building_cpp_projects.adoc

    [[sec:cpp_introduction]]
    == Introduction
    
    The simplest build script for a {cpp} project applies the {cpp} application plugin or the {cpp} library plugin and optionally sets the project version:
    
    .Applying the {cpp} Plugin
    ====
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 17.3K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/PrebuiltLibrariesIntegrationTest.groovy

            }
        }
        components {
            main(NativeExecutableSpec) {
                sources {
                    cpp.lib library: 'hello'
                }
            }
            mainStatic(NativeExecutableSpec) {
                sources {
                    cpp {
                        source.srcDir "src/main/cpp"
                        lib library: 'hello', linkage: 'static'
                    }
                }
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  3. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/xcode/XcodeSingleCppProjectIntegrationTest.groovy

            given:
            buildFile << """
                apply plugin: 'cpp-library'
            """
    
            def lib = new CppLib()
            lib.writeToProject(testDirectory)
            file('src/main/public/ignore.cpp') << 'broken!'
            file('src/main/headers/ignore.cpp') << 'broken!'
            file('src/main/cpp/ignore.h') << 'broken!'
            file('src/main/cpp/ignore.swift') << 'broken!'
    
            when:
            succeeds("xcode")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 27.7K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/LibraryDependenciesIntegrationTest.groovy

            and:
            buildFile << """
    apply plugin: "cpp"
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
                    cpp.lib library: "hello"
                    cpp.lib library: "greetings", linkage: "static"
                }
            }
            hello(NativeLibrarySpec) {
                sources {
                    cpp.lib library: "greetings", linkage: "static"
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/swiftpm/SwiftPackageManagerIncrementalExportIntegrationTest.groovy

                    apply plugin: 'cpp-library'
                }
                project(':app') {
                    apply plugin: 'cpp-application'
                }
            """
    
            file("app/src/main/cpp/main.cpp") << "// main"
            file("lib/src/main/cpp/lib.cpp") << "// lib"
    
            run("generateSwiftPmManifest")
    
            assert file("Package.swift").text.contains('"src/main/cpp/main.cpp"')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/NativeBinariesIntegrationTest.groovy

            given:
            buildFile << """
    apply plugin: "cpp"
    model {
        components {
            main(NativeLibrarySpec)
        }
    }
    """
    
            and:
            file("src/main/cpp/hello1.cpp") << """
                void hello() {
                }
    """
    
            and:
            file("src/main/cpp/hello2.cpp") << """
                void hello() {
                }
    """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  7. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioSoftwareModelMultiProjectIntegrationTest.groovy

            """
            buildFile << """
                project(":exe") {
                    apply plugin: "cpp"
                    model {
                        components {
                            main(NativeExecutableSpec) {
                                sources {
                                    cpp.lib project: ':lib', library: 'hello'
                                }
                            }
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 26K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLibraryPublishingIntegrationTest.groovy

            main.parsedPom.scopes.isEmpty()
    
            def mainMetadata = main.parsedModuleMetadata
            mainMetadata.variants.size() == 5
            def api = mainMetadata.variant("api")
            api.dependencies.empty
            api.files.size() == 1
            api.files[0].name == 'cpp-api-headers.zip'
            api.files[0].url == 'test-1.2-cpp-api-headers.zip'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 12:57:50 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  9. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/googletest/GoogleTestIntegrationTest.groovy

            final projectFile = new ProjectFile(file("helloTestExe.vcxproj"))
            projectFile.sourceFiles as Set == [
                    "build.gradle",
                    "src/helloTest/cpp/test.cpp",
                    "src/hello/cpp/hello.cpp",
                    "src/hello/cpp/sum.cpp"
            ] as Set
            projectFile.headerFiles == [
                    "src/hello/headers/common.h",
                    "src/hello/headers/hello.h"
            ]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/BinaryConfigurationIntegrationTest.groovy

            given:
            buildFile << """
    apply plugin: "cpp"
    
    model {
        components {
            main(NativeExecutableSpec) {
                binaries.all {
                    cppCompiler.define 'ENABLE_GREETING'
                }
            }
        }
    }
    """
    
            and:
            file("src/main/cpp/helloworld.cpp") << """
                #include <iostream>
    
                int main () {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.1K bytes
    - Viewed (0)
Back to top