OSDN Git Service

Remove prebuilt static library "libthreaded_app.a".
authorDavid 'Digit' Turner <digit@google.com>
Wed, 14 Jul 2010 00:00:24 +0000 (17:00 -0700)
committerDavid 'Digit' Turner <digit@google.com>
Wed, 14 Jul 2010 06:50:02 +0000 (23:50 -0700)
commit4948c163663ecc343c97e4c2a2139234f1d3273f
tree110445275c120e11391b80b390dab49330849784
parent98b2c359c2b3361f43e14b0c5d07a02c055dd10e
Remove prebuilt static library "libthreaded_app.a".

Make the "glue library" part of the NDK as an importable module,
this has several benefits:

- no need to distribute a binary here with no easy way to regenerate it

- no need to explicitely list -lthreaded_app in your LOCAL_LDLIBS
  (this is handled automatically by the module import capability)

- allows easier native debugging of what's really happening.

Note that the header is renamed <threaded_native_app.h>

+ Modify the native-activity sample to use and import the new module
+ Start documenting usage in the header file. We probably need something
  better, and will probably put it under development/ndk/docs/ at some
  point.

After this patch, we should be able to get rid of the code under
framework/base/native/{include.glue}

Change-Id: I6e81d70a225a6ca006beabf6e8b42529e8f371b9
ndk/platforms/android-9/arch-arm/usr/lib/libthreaded_app.a [deleted file]
ndk/samples/native-activity/jni/Android.mk
ndk/samples/native-activity/jni/main.c
ndk/samples/native-plasma/jni/Android.mk
ndk/samples/native-plasma/jni/plasma.c
ndk/sources/android/native_app_glue/Android.mk [new file with mode: 0644]
ndk/sources/android/native_app_glue/android_native_app_glue.c [new file with mode: 0644]
ndk/sources/android/native_app_glue/android_native_app_glue.h [moved from ndk/platforms/android-9/arch-arm/usr/include/android_glue/threaded_app.h with 71% similarity]