mirror of https://github.com/axmolengine/axmol.git
fixed #1247: add profile lib
This commit is contained in:
parent
138de3171f
commit
c258e1e43a
|
@ -0,0 +1,14 @@
|
|||
TARGET_thumb_release_CFLAGS := $(filter-out -ffunction-sections,$(TARGET_thumb_release_CFLAGS))
|
||||
TARGET_thumb_release_CFLAGS := $(filter-out -fomit-frame-pointer,$(TARGET_thumb_release_CFLAGS))
|
||||
TARGET_arm_release_CFLAGS := $(filter-out -ffunction-sections,$(TARGET_arm_release_CFLAGS))
|
||||
TARGET_arm_release_CFLAGS := $(filter-out -fomit-frame-pointer,$(TARGET_arm_release_CFLAGS))
|
||||
TARGET_CFLAGS := $(filter-out -ffunction-sections,$(TARGET_CFLAGS))
|
||||
|
||||
# include libandprof.a in the build
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := cocos_libprofiler_static
|
||||
LOCAL_MODULE_FILENAME := profiler
|
||||
LOCAL_SRC_FILES := libs/$(TARGET_ARCH_ABI)/libandprof.a
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef prof_h_seen
|
||||
#define prof_h_seen
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void monstartup(const char *libname);
|
||||
void moncleanup(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
Loading…
Reference in New Issue