Search in sources :

Example 1 with AndroidNdkRepositoryFunction

use of com.google.devtools.build.lib.bazel.rules.android.AndroidNdkRepositoryFunction in project bazel by bazelbuild.

the class AnalysisMock method getSkyFunctions.

public ImmutableMap<SkyFunctionName, SkyFunction> getSkyFunctions() {
    // Some tests require the local_repository rule so we need the appropriate SkyFunctions.
    RepositoryFunction localRepositoryFunction = new LocalRepositoryFunction();
    ImmutableMap<String, RepositoryFunction> repositoryHandlers = ImmutableMap.of(LocalRepositoryRule.NAME, localRepositoryFunction, AndroidSdkRepositoryRule.NAME, new AndroidSdkRepositoryFunction(), AndroidNdkRepositoryRule.NAME, new AndroidNdkRepositoryFunction());
    return ImmutableMap.of(SkyFunctions.REPOSITORY_DIRECTORY, new RepositoryDelegatorFunction(repositoryHandlers, null, new AtomicBoolean(true)), SkyFunctions.REPOSITORY, new RepositoryLoaderFunction());
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) LocalRepositoryFunction(com.google.devtools.build.lib.rules.repository.LocalRepositoryFunction) AndroidNdkRepositoryFunction(com.google.devtools.build.lib.bazel.rules.android.AndroidNdkRepositoryFunction) AndroidSdkRepositoryFunction(com.google.devtools.build.lib.bazel.rules.android.AndroidSdkRepositoryFunction) RepositoryFunction(com.google.devtools.build.lib.rules.repository.RepositoryFunction) AndroidNdkRepositoryFunction(com.google.devtools.build.lib.bazel.rules.android.AndroidNdkRepositoryFunction) AndroidSdkRepositoryFunction(com.google.devtools.build.lib.bazel.rules.android.AndroidSdkRepositoryFunction) RepositoryDelegatorFunction(com.google.devtools.build.lib.rules.repository.RepositoryDelegatorFunction) RepositoryLoaderFunction(com.google.devtools.build.lib.rules.repository.RepositoryLoaderFunction) LocalRepositoryFunction(com.google.devtools.build.lib.rules.repository.LocalRepositoryFunction)

Aggregations

AndroidNdkRepositoryFunction (com.google.devtools.build.lib.bazel.rules.android.AndroidNdkRepositoryFunction)1 AndroidSdkRepositoryFunction (com.google.devtools.build.lib.bazel.rules.android.AndroidSdkRepositoryFunction)1 LocalRepositoryFunction (com.google.devtools.build.lib.rules.repository.LocalRepositoryFunction)1 RepositoryDelegatorFunction (com.google.devtools.build.lib.rules.repository.RepositoryDelegatorFunction)1 RepositoryFunction (com.google.devtools.build.lib.rules.repository.RepositoryFunction)1 RepositoryLoaderFunction (com.google.devtools.build.lib.rules.repository.RepositoryLoaderFunction)1 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1