README 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. MEGAZEUX ON ANDROID
  2. Android uses the Linux kernel and the build is similar to the UNIX one.
  3. MegaZeux requires a new arch/ as the Android cross-compiler is weird and
  4. uses hand-rolled linker flags to generate programs. This may go away over
  5. time.
  6. At the moment this Android port does nothing. It needs the following work:
  7. - Possibly fix up software renderer to use Skia (needed for old phones)
  8. - Implement audio support (audioflinger)
  9. Most of the config.sh options work as-is, see docs/platform-matrix.html for
  10. detailed information.
  11. CHANGES TO ANDROID SOURCE TREE
  12. At the moment the only change required to the source tree is to add a symlink
  13. to work around a case issue when building on Linux:
  14. cd $ANDROID_ROOT/external/tremor
  15. ln -s Tremor tremor
  16. You don't have to do this if you disable audio support (which makes a lot of
  17. sense right now, actually).
  18. BUILD DEPENDENCIES
  19. Android makes this easy, because they bootstrap everything themselves. They
  20. even provide the cross compiler. All you need to do is specify your android
  21. build tree with "--prefix" and the build system does the rest.
  22. CONFIGURATION
  23. The config.sh line I've been using is:
  24. ./config.sh --platform android --prefix $HOME/android --disable-editor \
  25. --disable-modular --disable-utils --disable-audio
  26. However, I've made sure the utils build too, so the --disable-utils is
  27. optional.
  28. INSTALLATION
  29. The "make build" and "make archive" targets work for Android, but they
  30. generate ZIP files rather than .apk's, so you can only run MZX from SD.