Re: [android-building] SOONG - cc_prebuilt_library_shared
but how should we handle the case with one lib for user build and another for userdebug and eng? We did use $(TARGET_BUILD_VARIANT) in Android.mk. On Tuesday, 12 September 2017 23:37:17 UTC+2, Colin Cross wrote: > > See > https://android.googlesource.com/platform/prebuilts/sdk/+/master/tools/Android.bp# > > for an example. In this case it would be something like: > > target: { > android_arm: { > srcs: ["lib/libmytest.so"], > }, > android_arm64: { > srcs: ["lib64/libmytest.so"], > }, > }, > > On Tue, Sep 12, 2017 at 1:56 PM, Michael Lekman > wrote: > >> What is the recommended way to set src file path to prebuilt libs? There >> are different libs for target variants. >> >> Android.mk file: >> LOCAL_PATH := $(call my-dir) >> >> PREBUILT_PATH := prebuilts/$(TARGET_BUILD_VARIANT) >> PREBUILT_SYSTEM_PATH := $(PREBUILT_PATH)/system >> PREBUILT_SYSTEM_BIN_PATH := = $(PREBUILT_SYSTEM_PATH)/lib >> PREBUILT_SYSTEM_LIB64_PATH := $(PREBUILT_SYSTEM_PATH)/lib64 >> >> include $(CLEAR_VARS) >> LOCAL_MODULE := libmytest >> LOCAL_MODULE_TAGS := optional >> LOCAL_MODULE_CLASS := SHARED_LIBRARIES >> LOCAL_MODULE_SUFFIX := .so >> LOCAL_MULTILIB := both >> LOCAL_SRC_FILES_32 := >> $(PREBUILT_SYSTEM_LIB32_PATH)/$(LOCAL_MODULE)$(LOCAL_MODULE_SUFFIX) >> LOCAL_SRC_FILES_64 := >> $(PREBUILT_SYSTEM_LIB64_PATH)/$(LOCAL_MODULE)$(LOCAL_MODULE_SUFFIX) >> LOCAL_SHARED_LIBRARIES := liblog libutils libcutils libbase libpcrecpp >> include $(BUILD_PREBUILT) >> >> >> -- >> -- >> You received this message because you are subscribed to the "Android >> Building" mailing list. >> To post to this group, send email to android-...@googlegroups.com >> >> To unsubscribe from this group, send email to >> android-buildi...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-building?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Android Building" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to android-buildi...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-building] SOONG - cc_prebuilt_library_shared
See https://android.googlesource.com/platform/prebuilts/sdk/+/master/tools/Android.bp# for an example. In this case it would be something like: target: { android_arm: { srcs: ["lib/libmytest.so"], }, android_arm64: { srcs: ["lib64/libmytest.so"], }, }, On Tue, Sep 12, 2017 at 1:56 PM, Michael Lekman wrote: > What is the recommended way to set src file path to prebuilt libs? There > are different libs for target variants. > > Android.mk file: > LOCAL_PATH := $(call my-dir) > > PREBUILT_PATH := prebuilts/$(TARGET_BUILD_VARIANT) > PREBUILT_SYSTEM_PATH := $(PREBUILT_PATH)/system > PREBUILT_SYSTEM_BIN_PATH := = $(PREBUILT_SYSTEM_PATH)/lib > PREBUILT_SYSTEM_LIB64_PATH := $(PREBUILT_SYSTEM_PATH)/lib64 > > include $(CLEAR_VARS) > LOCAL_MODULE := libmytest > LOCAL_MODULE_TAGS := optional > LOCAL_MODULE_CLASS := SHARED_LIBRARIES > LOCAL_MODULE_SUFFIX := .so > LOCAL_MULTILIB := both > LOCAL_SRC_FILES_32 := $(PREBUILT_SYSTEM_LIB32_PATH)/ > $(LOCAL_MODULE)$(LOCAL_MODULE_SUFFIX) > LOCAL_SRC_FILES_64 := $(PREBUILT_SYSTEM_LIB64_PATH)/ > $(LOCAL_MODULE)$(LOCAL_MODULE_SUFFIX) > LOCAL_SHARED_LIBRARIES := liblog libutils libcutils libbase libpcrecpp > include $(BUILD_PREBUILT) > > > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to android-building@googlegroups.com > To unsubscribe from this group, send email to > android-building+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Android Building" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to android-building+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-building] SOONG - cc_prebuilt_library_shared
What is the recommended way to set src file path to prebuilt libs? There are different libs for target variants. Android.mk file: LOCAL_PATH := $(call my-dir) PREBUILT_PATH := prebuilts/$(TARGET_BUILD_VARIANT) PREBUILT_SYSTEM_PATH := $(PREBUILT_PATH)/system PREBUILT_SYSTEM_BIN_PATH := = $(PREBUILT_SYSTEM_PATH)/lib PREBUILT_SYSTEM_LIB64_PATH := $(PREBUILT_SYSTEM_PATH)/lib64 include $(CLEAR_VARS) LOCAL_MODULE := libmytest LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := SHARED_LIBRARIES LOCAL_MODULE_SUFFIX := .so LOCAL_MULTILIB := both LOCAL_SRC_FILES_32 := $(PREBUILT_SYSTEM_LIB32_PATH)/$(LOCAL_MODULE)$(LOCAL_MODULE_SUFFIX) LOCAL_SRC_FILES_64 := $(PREBUILT_SYSTEM_LIB64_PATH)/$(LOCAL_MODULE)$(LOCAL_MODULE_SUFFIX) LOCAL_SHARED_LIBRARIES := liblog libutils libcutils libbase libpcrecpp include $(BUILD_PREBUILT) -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.