1 apk
include $(CLEAR_VARS)
LOCAL_MODULE := myapp
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
2 shared_library
include $(CLEAR_VARS)
LOCAL_MODULE := mylibrary
LOCAL_SRC_FILES := mylibrary.cpp
include $(BUILD_SHARED_LIBRARY)
3 static_library
include $(CLEAR_VARS)
LOCAL_MODULE := mylibrary
LOCAL_SRC_FILES := mylibrary.cpp
include $(BUILD_STATIC_LIBRARY)
4 java_binary
- 用于编译 Java 代码并生成可执行的 Java 程序(.jar 文件)
include $(CLEAR_VARS)
LOCAL_MODULE := mylibrary
LOCAL_SRC_FILES := $(call all-java-files-under, src)
include $(BUILD_JAVA_LIBRARY)
5 cc_binary
- 用于编译 C/C++ 代码并生成可执行的 C/C++ 程序
include $(CLEAR_VARS)
LOCAL_MODULE := myexecutable
LOCAL_SRC_FILES := myexecutable.cpp
include $(BUILD_EXECUTABLE)