-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildnim.cmd
22 lines (20 loc) · 1.1 KB
/
buildnim.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
:: the androidNDK define as used below turns on the ability so that echo text is
:: output to the Android Logcat logging facilities, which could be handy in assisting debugging...
:: remove all the results of older bulid's...
rd /q /s app\src\main\cpp\armeabi-v7a
rd /q /s app\src\main\cpp\arm64-v8a
rd /q /s app\src\main\cpp\x86
rd /q /s app\src\main\cpp\x86_64
:: compile for each of the ANDROID_ABI's...
nim c -c -d:noSignalHandler -d:danger -d:release -d:androidNDK ^
--cpu:arm --os:android --noMain:on --threads:on ^
--nimcache:app/src/main/cpp/armeabi-v7a app/src/main/nim/primes_jni
nim c -c -d:noSignalHandler -d:danger -d:release -d:androidNDK ^
--cpu:arm64 --os:android --noMain:on --threads:on ^
--nimcache:app/src/main/cpp/arm64-v8a app/src/main/nim/primes_jni
nim c -c -d:noSignalHandler -d:danger -d:release -d:androidNDK ^
--cpu:i386 --os:android --noMain:on --threads:on ^
--nimcache:app/src/main/cpp/x86 app/src/main/nim/primes_jni
nim c -c -d:noSignalHandler -d:danger -d:release -d:androidNDK ^
--cpu:amd64 --os:android --noMain:on --threads:on ^
--nimcache:app/src/main/cpp/x86_64 app/src/main/nim/primes_jni