-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 816 Bytes
/
Makefile
File metadata and controls
26 lines (21 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ODIN_ANDROID_NDK=${ANDROID_NDK_HOME}
ANDROID_OUT_DIR=out/AndroidProject/app/src/main/jniLibs/arm64-v8a
ANDROID_FILES := \
android_files/AndroidManifest.xml \
android_files/build.gradle \
android_files/settings.gradle
all: android
# odin build src -out:main
android: ${ANDROID_FILES}
mkdir -p ${ANDROID_OUT_DIR}
cp android_files/AndroidManifest.xml out/AndroidProject/app/src/main/
cp android_files/build.gradle out/AndroidProject/app/
cp android_files/settings.gradle out/AndroidProject
ODIN_ANDROID_NDK=${ANDROID_NDK_HOME} \
odin build src -out:${ANDROID_OUT_DIR}/libandroid_odin.so \
-debug \
-collection:my_vendor=./my_vendor/ \
-target:linux_arm64 -subtarget:android -build-mode:shared
pc:
@mkdir -p out
odin build src -out:out/pc_odin -collection:my_vendor=./my_vendor/ -debug