diff --git a/metadata/com.limbo.emu.main.yml b/metadata/com.limbo.emu.main.yml new file mode 100644 index 0000000000..00704e882f --- /dev/null +++ b/metadata/com.limbo.emu.main.yml @@ -0,0 +1,55 @@ +Categories: + - System +License: GPL-2.0-or-later +SourceCode: https://github.com/limboemu/limbo +IssueTracker: https://github.com/limboemu/limbo/issues + +AutoName: Limbo x86 PC Emulator +Summary: A QEMU-based emulator +Description: Limbo is a QEMU-based emulator for Android. + +RepoType: git +Repo: https://github.com/limboemu/limbo + +Builds: + - versionName: 3.0.1-x86-beta + versionCode: 30001 + commit: v3.0.1-Limbox86-multiarch + subdir: limbo-android-x86 + gradle: + - yes + srclibs: + - qemu@v2.9.1 + - glib@2.56.1 + - libffi@v3.2.1 + - pixman@pixman-0.34.0 + - SDL@release-2.0.8 + prebuild: + - export PATH=$PATH:$$NDK$$ + - export NDK_MODULE_PATH=$$NDK$$/sources/ + - sed -i -e '/NDK_ROOT/d' ../limbo-android-lib/src/main/jni/android-config.mak + - cp -r $$qemu$$ ../limbo-android-lib/src/main/jni/qemu/ + - cp -r $$glib$$ ../limbo-android-lib/src/main/jni/glib/ + - cp -r $$libffi$$ ../limbo-android-lib/src/main/jni/libffi/ + - cp -r $$pixman$$ ../limbo-android-lib/src/main/jni/pixman/ + - cp -r $$SDL$$ ../limbo-android-lib/src/main/jni/SDL2/ + - patch -d ../limbo-android-lib/src/main/jni/qemu/ -p1 < ../limbo-android-lib/src/main/jni/patches/qemu-2.9.1.patch + - patch -d ../limbo-android-lib/src/main/jni/glib/ -p1 < ../limbo-android-lib/src/main/jni/patches/glib-2.56.1.patch + - make -C ../limbo-android-lib/src/main/jni/ clean + scandelete: + - limbo-android-lib + build: + - export NDK_ROOT=$$NDK$$ + - export NDK_MODULE_PATH=$$NDK$$/sources/ + - make -C ../limbo-android-lib/src/main/jni/qemu/roms/ bios seavgabios + - make -C ../limbo-android-lib/src/main/jni/ all-release-x86 BUILD_HOST=armeabi-v7a + ndk: r17b + +MaintainerNotes: |- + We only build x86 emulation on ARM devices for now. + ARM emulation on x86 devices would require a separate build recipe (the app ID is different). + +AutoUpdateMode: None +UpdateCheckMode: Tags +CurrentVersion: 3.0.1-x86-beta +CurrentVersionCode: 30001 diff --git a/srclibs/glib.txt b/srclibs/glib.txt new file mode 100644 index 0000000000..bfbd77f827 --- /dev/null +++ b/srclibs/glib.txt @@ -0,0 +1,2 @@ +Repo:https://github.com/GNOME/glib.git +Repo Type:git diff --git a/srclibs/libffi.txt b/srclibs/libffi.txt new file mode 100644 index 0000000000..35ff25150f --- /dev/null +++ b/srclibs/libffi.txt @@ -0,0 +1,4 @@ +Repo:https://github.com/libffi/libffi.git +Repo Type:git + +Prepare: ./autogen.sh diff --git a/srclibs/pixman.txt b/srclibs/pixman.txt new file mode 100644 index 0000000000..f5fea2c93e --- /dev/null +++ b/srclibs/pixman.txt @@ -0,0 +1,4 @@ +Repo:https://gitlab.freedesktop.org/pixman/pixman +Repo Type:git + +Prepare: ./autogen.sh diff --git a/srclibs/qemu.txt b/srclibs/qemu.txt new file mode 100644 index 0000000000..10fbe19b88 --- /dev/null +++ b/srclibs/qemu.txt @@ -0,0 +1,4 @@ +Repo:git://git.qemu.org/qemu.git +Repo Type:git + +Prepare:git submodule update --init