Skip to content

Commit

Permalink
Added correct dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanL8 committed Mar 19, 2024
1 parent 1c10078 commit 1f77660
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Generator/Passes/GenerateSymbolsPass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ private void GenerateSymbols()
var toolchainsPath = Path.Combine(ndkPath, "toolchains", "llvm", "prebuilt", "windows-x86_64");
var sysrootPath = Path.Combine(toolchainsPath, "sysroot");
var compilerPath = Path.Combine(toolchainsPath, "bin", "clang++");
InvokeCompiler(TargetPlatform.Android, compilerPath, GetAndroidArguments(module, sysrootPath, path), Path.GetDirectoryName(path), module);
var arguments = GetAndroidArguments(module, sysrootPath, path);
InvokeCompiler(TargetPlatform.Android, compilerPath, arguments, Path.GetDirectoryName(path), module);
continue;
}

Expand Down Expand Up @@ -94,13 +95,11 @@ private string GetAndroidArguments(Module module, string sysrootPath, string fil
return $"--target=aarch64-none-linux-android22 " +
$"--sysroot=\"{sysrootPath}\" " +
moduleProps.ToString() +
//$"-I\"{Path.Combine(sysrootPath, "usr", "include", "c++", "v1")}\" " +
//$"-I\"{Path.Combine(sysrootPath, "usr", "local", "include")}\" " +
//$"-I\"{Path.Combine(sysrootPath, "..", "lib64", "clang", "12.0.8", "include")}\" " +
//$"-I\"{Path.Combine(sysrootPath, "usr", "include", "aarch64-linux-android")}\" " +
//$"-I\"{Path.Combine(sysrootPath, "usr", "include")}\" " +
$"-L\"{sysrootPath}/usr/lib\" " +
"-fuse-ld=lld " + // Use LLD linker
$"-L\"C:\\dev\\KytheraUnityExample\\Packages\\ai.kythera.unity\\Runtime\\KytheraBindings\\Plugins\\android\\x64\" " +
"-fuse-ld=lld " + // Use LLD linker
"-lKythera_Core " +
"-lKythera_Navigation " +
"-shared " +
"-fPIC " +
"-no-canonical-prefixes " +
Expand Down

0 comments on commit 1f77660

Please sign in to comment.