Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rib/cogl-android-sdk
Scripts for building an Android SDK for developing with Cogl
https://github.com/rib/cogl-android-sdk
Last synced: 3 months ago
JSON representation
Scripts for building an Android SDK for developing with Cogl
- Host: GitHub
- URL: https://github.com/rib/cogl-android-sdk
- Owner: rib
- Created: 2012-01-18T17:27:02.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-06-29T18:11:32.000Z (over 12 years ago)
- Last Synced: 2023-04-11T08:48:03.349Z (almost 2 years ago)
- Language: Shell
- Homepage:
- Size: 141 KB
- Stars: 8
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Download and unpack the latest android SDK
Download and unpack ndk r7Read $ANDROID_NDK_DIR/docs/STANDALONE-TOOLCHAIN.html "3/ Invoking the
compiler (the easy way):"Make a standalone toolchain
E.g:
build/tools/make-standalone-toolchain.sh --platform=android-9 --install-dir=$HOME/local/android-toolchainEdit the bashrc file in this directory to point to the locations for
the Android SDK and NDK.Source the bashrc file into your shell. (Further notes assume they can
refer to these variables.)source bashrc
Build the Cogl SDK:
./build.sh
Build the sample application:
(Note: you should change this accordingly if you selected a different
modules dir when running ./build.sh)export NDK_MODULE_PATH=$PWD/modules
cd $NDK_MODULE_PATH/samples/hello
NDK_DEBUG=1 ndk-build
List sdk targets using
android list
Then run
android update project -p . -tThen build an apk using:
ant debugConnect to a device via a usb cable
Install the apk:
$ adb install bin/TestCoglHello-debug.apkGet a shell on the device and run the test:
adb shell am start -a android.intent.action.MAIN -n com.cogl.example.zzz.Hello/android.app.NativeActivityndk-gdb
NB: you may need to switch thread once connected via gdbTo rebuild and re-install do something like:
rm -fr bin libs obj && NDK_DEBUG=1 ndk-build -B && ant debug && adb install -r bin/TestCoglHello-debug.apkIt shouldn't be necessary to scrap everything for each re-build but
I've been finding that the tools don't always notice when things have
changed and don't rebuild things when you want them too. For now I've
resorted to scrapping everthing each re-build just to be sure.