Android编译系统makefile(Android.mk)写法(2)

(5)编译一个依赖于静态Java库(static.jar)的应用程序
  LOCAL_PATH := $(call my-dir)
  include $(CLEAR_VARS)
  
  # List of static libraries to include in the package
  LOCAL_STATIC_JAVA_LIBRARIES := static-library
  
  # Build all java files in the java subdirectory
  LOCAL_SRC_FILES := $(call all-subdir-java-files)
  
  # Name of the APK to build
  LOCAL_PACKAGE_NAME := LocalPackage
  
  # Tell it to build an APK
  include $(BUILD_PACKAGE)

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwxyxx.html