Search in sources :

Example 1 with FdoSupportFunction

use of com.google.devtools.build.lib.rules.cpp.FdoSupportFunction in project bazel by bazelbuild.

the class BazelAnalysisMock method getSkyFunctions.

@Override
public ImmutableMap<SkyFunctionName, SkyFunction> getSkyFunctions() {
    ImmutableMap.Builder<SkyFunctionName, SkyFunction> skyFunctions = ImmutableMap.builder();
    skyFunctions.putAll(super.getSkyFunctions());
    skyFunctions.put(FdoSupportValue.SKYFUNCTION, new FdoSupportFunction());
    return skyFunctions.build();
}
Also used : SkyFunctionName(com.google.devtools.build.skyframe.SkyFunctionName) SkyFunction(com.google.devtools.build.skyframe.SkyFunction) FdoSupportFunction(com.google.devtools.build.lib.rules.cpp.FdoSupportFunction) ImmutableMap(com.google.common.collect.ImmutableMap)

Example 2 with FdoSupportFunction

use of com.google.devtools.build.lib.rules.cpp.FdoSupportFunction in project bazel by bazelbuild.

the class BazelRulesModule method workspaceInit.

@Override
public void workspaceInit(BlazeDirectories directories, WorkspaceBuilder builder) {
    builder.addSkyFunction(FdoSupportValue.SKYFUNCTION, new FdoSupportFunction());
    builder.addPrecomputedValue(PrecomputedValue.injected(GenQuery.QUERY_OUTPUT_FORMATTERS, new Supplier<ImmutableList<OutputFormatter>>() {

        @Override
        public ImmutableList<OutputFormatter> get() {
            return env.getRuntime().getQueryOutputFormatters();
        }
    }));
}
Also used : FdoSupportFunction(com.google.devtools.build.lib.rules.cpp.FdoSupportFunction) Supplier(com.google.common.base.Supplier) OutputFormatter(com.google.devtools.build.lib.query2.output.OutputFormatter)

Aggregations

FdoSupportFunction (com.google.devtools.build.lib.rules.cpp.FdoSupportFunction)2 Supplier (com.google.common.base.Supplier)1 ImmutableMap (com.google.common.collect.ImmutableMap)1 OutputFormatter (com.google.devtools.build.lib.query2.output.OutputFormatter)1 SkyFunction (com.google.devtools.build.skyframe.SkyFunction)1 SkyFunctionName (com.google.devtools.build.skyframe.SkyFunctionName)1