android-make

How to add .so file in Android.mk file?

自古美人都是妖i 提交于 2020-03-05 04:28:37
问题 I am importing a .aar file as a dependency in my android project and have added this to Android.mk file. Now internally this file has dependency on some .so files which its not able to pick up automatically. So I copied all the dependent .so files under the below structure, app --> libs --> arm64-v8a --> test.so | | --> x86 --> test.so And now I tried several combination of below config in Android.mk file, but the above test.so file is not getting added to the apk generated after building. .

Adding a jar file from libs/ to Android.mk

给你一囗甜甜゛ 提交于 2019-12-20 08:51:55
问题 I almost found the answer in Adding a external jar reference in Android.mk but I'm still not quite there. My project contains commons-io-2.4.jar and jsch-0.1.49.jar in the libs/ directory. Everything builds beautifully in eclipse. Now I want to write an Android.mk file to build my project automatically. My Android.mk looks like this, but it's not working. LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_PACKAGE_NAME := MyProject

Vendor application build AOSP

雨燕双飞 提交于 2019-12-13 20:17:50
问题 I have to build an android application in AOSP source tree with vendor config. Which have some pre-build .so files, I have loaded the .so files by using the following configuration LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_PACKAGE_NAME := MySample LOCAL_CERTIFICATE := platform # SRC files #====================================== LOCAL_SRC_FILES := $(call all-java-files-under, src) \ $(call all-Iaidl-files-under, aidl) LOCAL_AIDL_INCLUDES := $(LOCAL

Add a make rule to the main make of AOSP

穿精又带淫゛_ 提交于 2019-12-08 11:14:45
问题 I've added a new C++ subproject at frameworks/base/cmds/myproject and it has its own Android.mk file. When I run make myproject , it'll compile well and no problem. However I want to add make myproject to the main make . I mean, when someone runs make at the root of AOSP, my project to be included as well. What should I do? 回答1: You need your Android.mk file to be called. There are various ways to do so, depending on your needs. If you want your myproyect to be compiled for several of the

Cannot build local shared library in Android Ndk

非 Y 不嫁゛ 提交于 2019-12-04 02:21:47
问题 I want to build library .so for version 4.0.3 but I am unable to do so. What I feel is that these problems are caused because my .mk file is not linking with the libraries. Android.mk file Binder.cpp \ BpBinder.cpp \ CursorWindow.cpp \ IInterface.cpp \ IMemory.cpp \ IPCThreadState.cpp \ IPermissionController.cpp \ IServiceManager.cpp \ MemoryDealer.cpp \ MemoryBase.cpp \ MemoryHeapBase.cpp \ MemoryHeapPmem.cpp \ Parcel.cpp \ PermissionCache.cpp \ ProcessState.cpp \ Static.cpp LOCAL_PATH:= $

Adding a jar file from libs/ to Android.mk

江枫思渺然 提交于 2019-12-02 16:26:14
I almost found the answer in Adding a external jar reference in Android.mk but I'm still not quite there. My project contains commons-io-2.4.jar and jsch-0.1.49.jar in the libs/ directory. Everything builds beautifully in eclipse. Now I want to write an Android.mk file to build my project automatically. My Android.mk looks like this, but it's not working. LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_PACKAGE_NAME := MyProject LOCAL_CERTIFICATE := platform LOCAL_STATIC_JAVA_LIBRARIES := jsch-0.1.49 commons-io-2.4 LOCAL_PROGUARD

How to include .aar in AOSP with android.mk

别说谁变了你拦得住时间么 提交于 2019-12-02 06:14:22
问题 I need to build an application with android.mk in aosp build tree. I have a custom .arr lib with me, Which resides in the following folder apps/libs/mylib.aar Anyone can tell me how to include the aar in the android aosp build. I already tried the following methods described here Stackoverflow link for aosp build with .aar lib Android.mk is looked like LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_PACKAGE_NAME := sample LOCAL_CERTIFICATE := platform #

Cannot build local shared library in Android Ndk

旧街凉风 提交于 2019-12-01 12:35:39
I want to build library .so for version 4.0.3 but I am unable to do so. What I feel is that these problems are caused because my .mk file is not linking with the libraries. Android.mk file Binder.cpp \ BpBinder.cpp \ CursorWindow.cpp \ IInterface.cpp \ IMemory.cpp \ IPCThreadState.cpp \ IPermissionController.cpp \ IServiceManager.cpp \ MemoryDealer.cpp \ MemoryBase.cpp \ MemoryHeapBase.cpp \ MemoryHeapPmem.cpp \ Parcel.cpp \ PermissionCache.cpp \ ProcessState.cpp \ Static.cpp LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_LDLIBS += -lpthread LOCAL_MODULE := libbinder1 LOCAL_SHARED