Merge "Fixes samples Teapot/MoreTeapots armeabi-v7a-hard; native-audio debug build"
This commit is contained in:
@@ -13,14 +13,6 @@ LOCAL_CFLAGS :=
|
|||||||
LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv2
|
LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv2
|
||||||
LOCAL_STATIC_LIBRARIES := cpufeatures android_native_app_glue ndk_helper
|
LOCAL_STATIC_LIBRARIES := cpufeatures android_native_app_glue ndk_helper
|
||||||
|
|
||||||
ifneq ($(filter %armeabi-v7a,$(TARGET_ARCH_ABI)),)
|
|
||||||
LOCAL_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
|
|
||||||
LOCAL_LDLIBS += -lm_hard
|
|
||||||
ifeq (,$(filter -fuse-ld=mcld,$(APP_LDFLAGS) $(LOCAL_LDFLAGS)))
|
|
||||||
LOCAL_LDFLAGS += -Wl,--no-warn-mismatch
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
$(call import-module,android/ndk_helper)
|
$(call import-module,android/ndk_helper)
|
||||||
|
|||||||
@@ -12,14 +12,6 @@ LOCAL_CFLAGS :=
|
|||||||
LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv2
|
LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv2
|
||||||
LOCAL_STATIC_LIBRARIES := cpufeatures android_native_app_glue ndk_helper
|
LOCAL_STATIC_LIBRARIES := cpufeatures android_native_app_glue ndk_helper
|
||||||
|
|
||||||
ifneq ($(filter %armeabi-v7a,$(TARGET_ARCH_ABI)),)
|
|
||||||
LOCAL_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
|
|
||||||
LOCAL_LDLIBS += -lm_hard
|
|
||||||
ifeq (,$(filter -fuse-ld=mcld,$(APP_LDFLAGS) $(LOCAL_LDFLAGS)))
|
|
||||||
LOCAL_LDFLAGS += -Wl,--no-warn-mismatch
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
$(call import-module,android/ndk_helper)
|
$(call import-module,android/ndk_helper)
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ void bqPlayerCallback(SLAndroidSimpleBufferQueueItf bq, void *context)
|
|||||||
// this callback handler is called every time a buffer finishes recording
|
// this callback handler is called every time a buffer finishes recording
|
||||||
void bqRecorderCallback(SLAndroidSimpleBufferQueueItf bq, void *context)
|
void bqRecorderCallback(SLAndroidSimpleBufferQueueItf bq, void *context)
|
||||||
{
|
{
|
||||||
assert(bq == bqRecorderBufferQueue);
|
assert(bq == recorderBufferQueue);
|
||||||
assert(NULL == context);
|
assert(NULL == context);
|
||||||
// for streaming recording, here we would call Enqueue to give recorder the next buffer to fill
|
// for streaming recording, here we would call Enqueue to give recorder the next buffer to fill
|
||||||
// but instead, this is a one-time buffer so we stop recording
|
// but instead, this is a one-time buffer so we stop recording
|
||||||
|
|||||||
@@ -10,16 +10,6 @@ LOCAL_EXPORT_LDLIBS := -llog -landroid -lEGL -lGLESv2
|
|||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := cpufeatures android_native_app_glue
|
LOCAL_STATIC_LIBRARIES := cpufeatures android_native_app_glue
|
||||||
|
|
||||||
|
|
||||||
ifneq ($(filter %armeabi-v7a,$(TARGET_ARCH_ABI)),)
|
|
||||||
LOCAL_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
|
|
||||||
LOCAL_EXPORT_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
|
|
||||||
LOCAL_EXPORT_LDLIBS += -lm_hard
|
|
||||||
ifeq (,$(filter -fuse-ld=mcld,$(APP_LDFLAGS) $(LOCAL_LDFLAGS)))
|
|
||||||
LOCAL_EXPORT_LDFLAGS += -Wl,--no-warn-mismatch
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
||||||
#$(call import-module,android/native_app_glue)
|
#$(call import-module,android/native_app_glue)
|
||||||
|
|||||||
Reference in New Issue
Block a user