Using Make's 'wildcard' function in Android.mk

前端 未结 2 1190
有刺的猬
有刺的猬 2020-12-30 05:03

I\'m having a problem using Make\'s wildcard function in my Android.mk build file.

My other makefiles use a line like this one to specify \"All .c files in this fol

2条回答
  •  再見小時候
    2020-12-30 05:50

    Here's what I've used in the past for doing this:

    LOCAL_PATH := $(call my-dir)
    include $(CLEAR_VARS)
    LOCAL_MODULE    := mylibrary
    LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.c)
    include $(BUILD_STATIC_LIBRARY)
    

    'my-dir' is a macro provided by the build system and returns the path of the directory containing the Android.mk file.

提交回复
热议问题