예제 #1
0
    public static void ConfigureNativeProgramFor(AsmDefBasedDotsRuntimeCSharpProgram program)
    {
        if (!SupportsBindgem(program.FileName))
        {
            return;
        }
        var nativeProgram = program.GetOrMakeNativeProgram();

        nativeProgram.Sources.Add(config => new[] { BindGemOutputFor(program, config)?.Cpp }.ExcludeNulls());
        nativeProgram.PublicIncludeDirectories.Add(config => new[] { BindGemOutputFor(program, config)?.Header.Parent }.ExcludeNulls());
        nativeProgram.ExtraDependenciesForAllObjectFiles.Add(config => BindGemOutputFor(program.ReferencedPrograms.Concat(new[] { program }).Where(p => p.IsSupportedOn(config.Platform)), config).SelectMany(bo => bo.Files));
    }
예제 #2
0
 public override void CustomizeSelf(AsmDefBasedDotsRuntimeCSharpProgram program)
 {
     program.NativeProgram.Libraries.Add(new SystemLibrary("log"));
     program.NativeProgram.Libraries.Add(new SystemLibrary("android"));
     program.NativeProgram.Libraries.Add(new SystemLibrary("GLESv3"));
 }