Compare commits
2 commits
e493a8e885
...
aecb21d644
Author | SHA1 | Date | |
---|---|---|---|
aecb21d644 | |||
c7b393c5fb |
1 changed files with 9 additions and 29 deletions
|
@ -1,29 +1,18 @@
|
||||||
LOCAL_PATH := $(call my-dir)
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
# function to find all *.c files under a directory
|
|
||||||
# Detecting the operating system
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
# Windows-specific commands
|
$(error "Building on Windows is unsupported")
|
||||||
define all-c-files-under
|
|
||||||
$(patsubst .\%,%, \
|
|
||||||
$(shell cd $(LOCAL_PATH) & \
|
|
||||||
dir /b/s $(subst /,\,$(1))\*.c) \
|
|
||||||
)
|
|
||||||
endef
|
|
||||||
else
|
|
||||||
# UNIX commands
|
|
||||||
define all-c-files-under
|
|
||||||
$(patsubst ./%,%, \
|
|
||||||
$(shell cd $(LOCAL_PATH) ; \
|
|
||||||
find $(1) -name "*.c" -and -not -name ".*" -maxdepth 1) \
|
|
||||||
)
|
|
||||||
endef
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
# function to find all *.c files under a directory
|
||||||
LOCAL_SHORT_COMMANDS := true
|
define all-c-files-under
|
||||||
APP_SHORT_COMMANDS := true
|
$(patsubst ./%,%, \
|
||||||
|
$(shell cd $(LOCAL_PATH) ; \
|
||||||
|
find $(1) -name "*.c" -and -not -name ".*" -maxdepth 1) \
|
||||||
|
)
|
||||||
|
endef
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
# libcjson
|
# libcjson
|
||||||
LOCAL_MODULE := lpac-cjson
|
LOCAL_MODULE := lpac-cjson
|
||||||
LOCAL_SRC_FILES := \
|
LOCAL_SRC_FILES := \
|
||||||
|
@ -31,9 +20,6 @@ LOCAL_SRC_FILES := \
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_SHORT_COMMANDS := true
|
|
||||||
APP_SHORT_COMMANDS := true
|
|
||||||
|
|
||||||
# libasn1c, the ASN parser component from lpac
|
# libasn1c, the ASN parser component from lpac
|
||||||
LOCAL_MODULE := lpac-asn1c
|
LOCAL_MODULE := lpac-asn1c
|
||||||
LOCAL_C_INCLUDES := \
|
LOCAL_C_INCLUDES := \
|
||||||
|
@ -44,9 +30,6 @@ LOCAL_CFLAGS := -DHAVE_CONFIG_H
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_SHORT_COMMANDS := true
|
|
||||||
APP_SHORT_COMMANDS := true
|
|
||||||
|
|
||||||
# libeuicc component from lpac, which contains the actual implementation
|
# libeuicc component from lpac, which contains the actual implementation
|
||||||
LOCAL_MODULE := lpac-euicc
|
LOCAL_MODULE := lpac-euicc
|
||||||
LOCAL_STATIC_LIBRARIES := lpac-asn1c lpac-cjson
|
LOCAL_STATIC_LIBRARIES := lpac-asn1c lpac-cjson
|
||||||
|
@ -57,9 +40,6 @@ LOCAL_SRC_FILES := \
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_SHORT_COMMANDS := true
|
|
||||||
APP_SHORT_COMMANDS := true
|
|
||||||
|
|
||||||
LOCAL_MODULE := lpac-jni
|
LOCAL_MODULE := lpac-jni
|
||||||
LOCAL_STATIC_LIBRARIES := lpac-euicc
|
LOCAL_STATIC_LIBRARIES := lpac-euicc
|
||||||
LOCAL_C_INCLUDES := \
|
LOCAL_C_INCLUDES := \
|
||||||
|
|
Loading…
Add table
Reference in a new issue