-
Notifications
You must be signed in to change notification settings - Fork 3
/
Android.mk
51 lines (44 loc) · 1.6 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
41
42
43
44
45
46
47
48
49
50
51
LOCAL_PATH := $(call my-dir)
ifeq ($(filter tuna maguro toro toroplus espresso espressowifi espresso3g p3100 p3110 p5100 p5110,$(TARGET_DEVICE)),)
include $(CLEAR_VARS)
LOCAL_MODULE := Chromium
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 23 || echo 1),)
# minSdkVersion=23 (Marshmallow)
LOCAL_SRC_FILES := ChromeModernPublic.apk
else
# minSdkVersion=16 (Jelly Bean)
LOCAL_SRC_FILES := ChromePublic/ChromePublic.apk
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 21 || echo 1),)
# required for Lollipop
LOCAL_PREBUILT_JNI_LIBS_arm := @lib/armeabi-v7a/libchrome.so
LOCAL_PREBUILT_JNI_LIBS_arm += @lib/armeabi-v7a/libchromium_android_linker.so
else
LOCAL_REQUIRED_MODULES := libchrome libchromium_android_linker
endif
endif
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := APPS
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_MULTILIB := 32
include $(BUILD_PREBUILT)
# KitKat Compatibility
ifneq ($(shell test $(PLATFORM_SDK_VERSION) -ge 21 || echo 1),)
include $(CLEAR_VARS)
LOCAL_MODULE := libchrome
LOCAL_MODULE_SUFFIX := .so
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
LOCAL_SRC_FILES := ChromePublic/lib/armeabi-v7a/libchrome.so
LOCAL_MODULE_TAGS := optional
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := libchromium_android_linker
LOCAL_MODULE_SUFFIX := .so
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
LOCAL_SRC_FILES := ChromePublic/lib/armeabi-v7a/libchromium_android_linker.so
LOCAL_MODULE_TAGS := optional
include $(BUILD_PREBUILT)
endif
endif