Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for librarySource (0.28 sec)

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

                    int DLL_FUNC sum(int a, int b);
    
                    #ifdef __cplusplus
                    }
                    #endif
            """)
        }
    
    
        List<SourceFile> librarySources = [
            new SourceFile("cpp", "hello.cpp", """
                #include <iostream>
                #include "hello.h"
    
                void DLL_FUNC sayHello() {
                    #ifdef FRENCH
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/PlatformDetectingTestApp.groovy

    #ifdef _WIN32
    #define DLL_FUNC __declspec(dllexport)
    #else
    #define DLL_FUNC
    #endif
    
    void DLL_FUNC outputLibraryPlatform();
            """)
        }
    
    
        List<SourceFile> librarySources = [
            new SourceFile("cpp", "hello.cpp", """
    #include <iostream>
    using namespace std;
    #include "hello.h"
    
    void DLL_FUNC outputLibraryPlatform() {
        ${outputPlatform()}
    }
            """)
        ]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/c/CLanguageIntegrationTest.groovy

            file("src/main/c/main.c") << helloWorldApp.mainSource.content
            file("src/main/c2/hello.c") << helloWorldApp.librarySources[0].content
            file("src/main/sum-sources/sum.c") << helloWorldApp.librarySources[1].content
    
            and:
            buildFile << """
        model {
            components {
                main(NativeExecutableSpec) {
                    sources {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppCallingCHelloWorldApp.groovy

                #else
                #define DLL_FUNC
                #endif
    
                void DLL_FUNC sayHello();
                int DLL_FUNC sum(int a, int b);
            """)
        }
    
        List<SourceFile> librarySources = [
            new SourceFile("c", "hello.c", """
                #include <stdio.h>
                #include "hello.h"
    
                void DLL_FUNC sayHello() {
                    #ifdef FRENCH
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ExeWithLibraryUsingLibraryHelloWorldApp.groovy

                #define DLL_FUNC __declspec(dllexport)
                #else
                #define DLL_FUNC
                #endif
    
                void DLL_FUNC sayHello();
            """)
        }
    
        List<SourceFile> librarySources = [
            new SourceFile("cpp", "hello.cpp", """
                #include <iostream>
                #include "hello.h"
                #include "greetings.h"
    
                void DLL_FUNC sayHello() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppToolChainChangesIntegrationTest.groovy

            """
            app.mainSource.writeToDir(file("app/src/main"))
            app.libraryHeader.writeToDir(file("library/src/main"))
            app.commonHeader.writeToDir(file("library/src/main"))
            app.librarySources.each {
                it.writeToDir(file("library/src/main"))
            }
        }
    
        @ToBeFixedForConfigurationCache
        def "recompiles binary when toolchain changes from #toolChainBefore to #toolChainAfter"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ObjectiveCppHelloWorldApp.groovy

                #ifndef COMMON_H
                #define COMMON_H
                #include "hello.h"
                #include <iostream>
                #endif
            """)
        }
    
        List<SourceFile> librarySources = [
            new SourceFile("objcpp", "hello.mm", """
                #define __STDC_LIMIT_MACROS
                #include "common.h"
                #include <stdint.h>
                #import <Foundation/Foundation.h>
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/WindowsResourceHelloWorldApp.groovy

    #define DLL_FUNC __declspec(dllexport)
    #define MODULE_HANDLE GetModuleHandle("hello")
    #else
    #define DLL_FUNC
    #define MODULE_HANDLE null
    #endif
    
    void DLL_FUNC hello();
    """)
        }
    
        List<SourceFile> librarySources = [
            new SourceFile("cpp", "hello.cpp", """
    #include <iostream>
    #include <windows.h>
    #include <string>
    #include "hello.h"
    
    std::string LoadStringFromResource(UINT stringID)
    {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppHelloWorldApp.groovy

                #ifndef COMMON_H
                #define COMMON_H
                #include "hello.h"
                #include <iostream>
                #endif
            """)
        }
    
        List<SourceFile> librarySources = [
            new SourceFile("cpp", "hello.cpp", """
                #include "common.h"
    
                #ifdef FRENCH
                const char* greeting() {
                    return "${HELLO_WORLD_FRENCH}";
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CHelloWorldApp.groovy

                #ifndef COMMON_H
                #define COMMON_H
                #include "hello.h"
                #include <stdio.h>
                #endif
            """)
        }
    
        List<SourceFile> librarySources = [
            new SourceFile("c", "hello.c", """
                #include "common.h"
    
                #ifdef FRENCH
                char* greeting() {
                    return "${HELLO_WORLD_FRENCH}";
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
Back to top