whithin:|@|直接修改makefile,添加要编译的C文件和生成的可执行文件.|@|如要添加next.c 文件,生成next的可执行文件,直接在makefile后面添加:|@||@|LOCAL_PATH:= $(call my-dir)|@||@|include $(CLEAR_VARS)|@|LOCAL_STATIC_LIBRARIES := libcutils libc|@|LOCAL_MODULE :=test|@|LOCAL_MODULE_TAGS := eng|@||@|LOCAL_FORCE_STATIC_EXECUTABLE := true|@|LOCAL_SRC_FILES:= test.c|@||@|LOCAL_C_INCLUDES := bionic/libc/bionic|@||@|ifeq ($(HAVE_SELINUX),true)|@|LOCAL_CFLAGS += -DHAVE_SELINUX|@|LOCAL_SHARED_LIBRARIES += libselinux|@|LOCAL_C_INCLUDES += external/libselinux/include|@|endif|@||@|include $(BUILD_EXECUTABLE)|@||@|#======add another .c file into this make file |@||@|include $(CLEAR_VARS)|@|LOCAL_STATIC_LIBRARIES := libcutils libc|@|LOCAL_MODULE := next|@|LOCAL_MODULE_TAGS := eng|@||@|LOCAL_FORCE_STATIC_EXECUTABLE := true|@|LOCAL_SRC_FILES:= next.c|@||@|LOCAL_C_INCLUDES := bionic/libc/bionic|@||@|ifeq ($(HAVE_SELINUX),true)|@|LOCAL_CFLAGS += -DHAVE_SELINUX|@|LOCAL_SHARED_LIBRARIES += libselinux|@|LOCAL_C_INCLUDES += external/libselinux/include|@|endif|@||@|include $(BUILD_EXECUTABLE)
java setrotation_Android开发: 通过修改数据库改变屏幕旋转方向screen rotation
最新推荐文章于 2022-08-11 16:15:56 发布