Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 178 for targetPlatform (0.3 sec)

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

        String getExtraConfiguration(String binaryName = null) {
            return """
                model {
                    binaries {
                        ${binaryName ? binaryName : "all"} {
                            if (targetPlatform.operatingSystem.macOsX) {
                                linker.args "-framework", "Foundation"
                            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/platform/InstallExecutableIntegrationTest.groovy

                    if (${!OperatingSystem.current().windows}) {
                        cCompiler.withArguments { it << '-fPIC' }
                    }
                }
            }
        }
        components.main {
            targetPlatform "$installOS"
        }
    }
            """
            and:
            succeeds "install"
    
            then:
            installation("build/install/main", OperatingSystem.forName(installOS)).assertInstalled()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/eclipse/EclipseProjectIntegrationTest.groovy

            project.assertHasLinkedResource('linkToUriFoo', 'aFooUri', 'http://test/uri/foo')
    
            file('.project').text.contains('<motto>Stay happy!</motto>')
    
            def jdt = parseJdtFile()
            assert jdt.contains('targetPlatform=1.3')
            assert jdt.contains('source=1.4')
        }
    
        @ToBeFixedForConfigurationCache
        void "allows custom matcher resource filter"() {
            given:
            buildScript """
    apply plugin: 'java'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 01 11:07:39 UTC 2023
    - 18K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/GccToolChainCrossCompilationIntegrationTest.groovy

                        cCompiler.withArguments { it << '-fPIC' }
                    }
                }
            }
        }
        components {
            all {
                targetPlatform "custom"
            }
        }
    }
    """
    
            when:
            run 'mainExe'
    
            then:
            file(OperatingSystem.WINDOWS.getStaticLibraryName("build/libs/hello/static/hello")).file
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/test/groovy/org/gradle/language/c/tasks/CCompileTest.groovy

        def "executes using the C Compiler"() {
            def sourceFile = temporaryFolder.createFile("sourceFile")
            def result = Mock(WorkResult)
    
            when:
            cCompile.toolChain = toolChain
            cCompile.targetPlatform = platform
            cCompile.compilerArgs = ["arg"]
            cCompile.macros = [def: "value"]
            cCompile.objectFileDir = temporaryFolder.file("outputFile")
            cCompile.source sourceFile
    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/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/Jdt.java

                properties.put("org.eclipse.jdt.core.compiler.problem.enumIdentifier", "error");
            }
    
            properties.put("org.eclipse.jdt.core.compiler.codegen.targetPlatform", targetVersion);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/test/groovy/org/gradle/language/objectivec/tasks/ObjectiveCPreCompiledHeaderCompileTest.groovy

            def sourceFile = temporaryFolder.createFile("sourceFile")
            def result = Mock(WorkResult)
            when:
            objCPCHCompile.toolChain = toolChain
            objCPCHCompile.targetPlatform = platform
            objCPCHCompile.compilerArgs = ["arg"]
            objCPCHCompile.macros = [def: "value"]
            objCPCHCompile.objectFileDir = temporaryFolder.file("outputFile")
            objCPCHCompile.source sourceFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/test/groovy/org/gradle/language/objectivec/tasks/ObjectiveCCompileTest.groovy

            def sourceFile = temporaryFolder.createFile("sourceFile")
            def result = Mock(WorkResult)
            when:
            objCCompile.toolChain = toolChain
            objCCompile.targetPlatform = platform
            objCCompile.compilerArgs = ["arg"]
            objCCompile.macros = [def: "value"]
            objCCompile.objectFileDir = temporaryFolder.file("outputFile")
            objCCompile.source sourceFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/MixedLanguageHelloWorldApp.groovy

                    platforms {
                        x86 {
                            architecture "i386"
                        }
                    }
                    components {
                        all { it.targetPlatform "x86" }
                    }
                }
    """
        }
    
        SourceFile getMainSource() {
            return new SourceFile("cpp", "main.cpp", """
                #include <iostream>
                extern "C" {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/test/groovy/org/gradle/language/assembler/tasks/AssemblerTest.groovy

        def "executes using the Assembler"() {
            def inputDir = temporaryFolder.createFile("sourceFile")
            def result = Mock(WorkResult)
            when:
            assembleTask.toolChain = toolChain
            assembleTask.targetPlatform = platform
            assembleTask.assemblerArgs = ["arg"]
            assembleTask.objectFileDir = temporaryFolder.file("outputFile")
            assembleTask.source inputDir
            execute(assembleTask)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top