fix: use correct ndk env variable
This commit is contained in:
parent
8a23012e40
commit
2b114a0e4f
19
README.md
19
README.md
@ -81,22 +81,3 @@ In this case, you need to add the dependencies as **DLL assemblies** in the `ext
|
||||
```
|
||||
|
||||
Then during the build, the script will automatically add the external dependencies to the generated project.
|
||||
|
||||
### iOS
|
||||
|
||||
For iOS you also need to add path to each dll in `template.beyondnetgen.ios.config.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"AssemblyPath": "INPUT_PROJECT_NAME/bin/Release/INPUT_NET_SPEC/INPUT_PROJECT_NAME.dll",
|
||||
"CSharpUnmanagedOutputPath": "GENERATED_PROJECT_NAME/Generated.cs",
|
||||
"COutputPath": "GENERATED_PROJECT_NAME/Generated.h",
|
||||
// Add this
|
||||
"AssemblySearchPaths": [
|
||||
"external/Autofac.dll"
|
||||
],
|
||||
"Build": {
|
||||
"Target": "apple-universal"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -46,8 +46,8 @@
|
||||
<NdkHost Condition="$(IsWindowsHost) == 'true'">windows-x86_64</NdkHost>
|
||||
<NdkHost Condition="$(IsLinuxHost) == 'true'">linux-x86_64</NdkHost>
|
||||
<NdkHost Condition="$(IsOSXHost) == 'true'">darwin-x86_64</NdkHost>
|
||||
<ObjCopyName Condition="'$(ObjCopyName)' == ''">$(ANDROID_NDK_ROOT)/toolchains/llvm/prebuilt/$(NdkHost)/bin/llvm-objcopy</ObjCopyName>
|
||||
<SysRoot Condition="'$(SysRoot)' == ''">$(ANDROID_NDK_ROOT)/toolchains/llvm/prebuilt/$(NdkHost)/sysroot</SysRoot>
|
||||
<ObjCopyName Condition="'$(ObjCopyName)' == ''">$(ANDROID_NDK_HOME)/toolchains/llvm/prebuilt/$(NdkHost)/bin/llvm-objcopy</ObjCopyName>
|
||||
<SysRoot Condition="'$(SysRoot)' == ''">$(ANDROID_NDK_HOME)/toolchains/llvm/prebuilt/$(NdkHost)/sysroot</SysRoot>
|
||||
<!--Hack for removing init and fini sections into the exports file-->
|
||||
<ExportsPatch>'s/global: _init; _fini;/global: /g;'</ExportsPatch>
|
||||
</PropertyGroup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user