Here is a small example I quoted, this makefile used to tct.drm.frameworks.jar,mtk-drm:libs/ Mtk.drm.frameworks.jar These two jar packages, and the project is dependent on the Android-support-v7-appcompat compatibility library. If we want to put this project in the Android source code to compile, then we need to add the following marked red content:
Local_path:= $ (Call my-dir) include $ (clear_vars) Local_module_tags:=Optionallocal_src_files:= $ (Call all-java-files-under, SRC) Local_src_files+ = $ (call All-java-files-under,.. /.. /.. /.. /.. /external/drmagent/Java) #Include Res dir from Librariesappcompat_dir: = .. /.. /.. /.. /.. /prebuilts/sdk/current/support/v7/appcompat/resres_dirs: = res $ (appcompat_dir) Local_resource_dir: = $ (Addprefix $ ( Local_path)/ , $ (res_dirs)) Local_java_libraries:=frameworks_ext tct.frameworklocal_java_libraries:=Tct.feature_querylocal_package_name:=Filemanagerlocal_module_path:=$ (target_out_app_path)local_static_java_libraries + = android-support-v4local_static_java_libraries + = android-support-v7-appcompatlocal_static_java_libraries + = TCT-DRM mtk- DRM#LOCAL_STATIC_JAVA_LIBRARIES+ = xuitls-1.5.4local_certificate:=platformlocal_aapt_flags: =--auto-add-overlaylocal_aapt_flags + =--extra- Packages Android.support.v7.appcompatlocal_proguard_flag_files:=Proguard.cfginclude $ (build_package) include $ ( call All-makefiles-under,$ (Local_path)) include $ (clear_vars) Local_prebuilt_static_java_libraries:= Tct-drm:libs/tct.drm.frameworks.jar \MTK-drm:libs/Mtk.drm.frameworks.jarinclude $ (build_multi_prebuilt)
Android source code uses third-party jar packages and Android-support-v7-appcompat compatible Lib libraries