Skip to content
Snippets Groups Projects
Select Git revision
  • next default protected
  • fix-1277
  • fix-1258
  • delfile2
  • cleanupmusic
  • gametype-refactor-1
  • custom-map-names
  • extra-textures
  • clipmidtex
  • optimize-storewallrange
  • increase-maxconditionsets
  • acs
  • softcode-info
  • lua-gfx-2
  • better-player-states
  • lua-debug-library
  • any-resolution
  • gametype-refactor-player-spawns
  • custom-teams
  • action-args
  • SRB2_release_2.2.13
  • SRB2_release_2.2.12
  • SRB2_release_2.2.11
  • SRB2_release_2.2.10
  • SRB2_release_2.2.9
  • SRB2_release_2.2.8
  • SRB2_release_2.2.7
  • SRB2_release_2.2.6
  • SRB2_release_2.2.5
  • SRB2_release_2.2.4
  • SRB2_release_2.2.3
  • SRB2_release_2.2.2
  • SRB2_release_2.2.1
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
  • SRB2_release_2.1.20
40 results

README

Blame
  • Forked from STJr / SRB2
    1255 commits behind, 17 commits ahead of the upstream repository.
    Alam Ed Arias's avatar
    Alam Ed Arias authored and Alam Arias committed
    b93cb1b6
    History
    README 1.37 KiB
    SRB2 for Google Android!
    
    SYNOPSIS
    
    Port of SRB2 to Android, tested against version 1.6 (donut).
    
    I did this with a full Android tree, rather than the NDK thing.
    
    BUILDING
    
    Assuming a pretty standard Android tree, at $REPO, and the SRB2
    tree at $REPO/packages/apps/srb2 (that is, the *whole* SRB2
    tree, not just this android/ directory):
    
      cd $REPO
      source build/envsetup.sh # this gives us the mm command,
                               # which is useful for selectively
                               # building only one component.
      cd packages/apps/srb2
      mm
    
    An APK is dumped out at (or similar):
    out/target/product/generic/system/app/SRB2.apk
    
    Naturally, an SRB2 APK is architecture specific.  Since most
    Android devices are currently ARMEL, this is pretty okay.
    
    NB. It appears that the Java app (the thing that becomes the APK)
    is *not* rebuilt if changes are only made to libsrb2.  Grr.
    
    REGENERATION OF JNI HEADERS
    
    Whenever the Java classes in org.srb2.nativecode change,
    the C header files that describe the JNI interface to them
    need to be regnererated.  Make sure you have the project
    built (so that the jar files are up to date), and then:
    
      cd $REPO/out/target/common/obj/APPS/SRB2_intermediates
    
      javah -classpath classes.jar -o $REPO/packages/apps/srb2/src/android/jni_main.h org.srb2.nativecode.Main
    
    # ... and no, I don't know how to mash all that into the
    # Android.mk build system...