forked from NormandyEGY/vendor_extra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
41 lines (33 loc) · 1.64 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
LOCAL_PATH := $(call my-dir)
include $(call all-makefiles-under,$(LOCAL_PATH))
ifeq ($(strip $(INSTALL_OLD_SENSORS)),true)
$(shell [ -f $(TARGET_OUT)/lib/hw/ ] || mkdir -p $(TARGET_OUT)/lib/hw/)
$(shell cp $(LOCAL_PATH)/prebuilts/lib/hw/* $(TARGET_OUT)/lib/hw/)
endif
ifeq ($(strip $(INSTALL_NOKIAX_MODULES)),true)
$(shell [ -f $(TARGET_OUT)/lib/modules/ ] || mkdir -p $(TARGET_OUT)/lib/modules/)
$(shell cp -r $(LOCAL_PATH)/modules/* $(TARGET_OUT)/lib/modules/)
endif
ifeq ($(strip $(INSTALL_ADDITIONAL_SCRIPTS)),true)
$(shell [ -f $(TARGET_OUT)/etc/init.d/ ] || mkdir -p $(TARGET_OUT)/etc/init.d/)
$(shell cp $(LOCAL_PATH)/scripts/* $(TARGET_OUT)/etc/init.d/)
endif
ifeq ($(strip $(INSTALL_ADDITIONAL_ETC)),true)
$(shell [ -f $(TARGET_OUT)/etc/ ] || mkdir -p $(TARGET_OUT)/etc/)
$(shell cp -r $(LOCAL_PATH)/etc/* $(TARGET_OUT)/etc/)
endif
#Apps
ifeq ($(strip $(ADD_SETUP_WIZARD)),true)
$(shell [ -f $(TARGET_OUT)/priv-app/ ] || mkdir -p $(TARGET_OUT)/priv-app/)
$(shell cp -r $(LOCAL_PATH)/prebuilts/priv-app/SetupWizard $(TARGET_OUT)/priv-app/)
endif
ifeq ($(strip $(ADD_SlimFileManager)),true)
$(shell [ -f $(TARGET_OUT)/priv-app/ ] || mkdir -p $(TARGET_OUT)/priv-app/)
$(shell cp -r $(LOCAL_PATH)/prebuilts/priv-app/SlimFileManager $(TARGET_OUT)/priv-app/)
endif
ifeq ($(strip $(ADD_CUSTOM_WEBVIEW)),true)
$(shell [ -f $(TARGET_OUT)/app/ ] || mkdir -p $(TARGET_OUT)/app/)
$(shell [ -f $(TARGET_OUT)/lib/ ] || mkdir -p $(TARGET_OUT)/lib/)
$(shell cp -r $(LOCAL_PATH)/prebuilts/app/webview $(TARGET_OUT)/app/)
$(shell cp -r $(LOCAL_PATH)/prebuilts/lib/libwebviewchromium*.so $(TARGET_OUT)/lib/)
endif