blob: edcfdb2dd4ea5f9825c4045875e0deee9f47bbf2 [file] [log] [blame]
Torne (Richard Coles)46f10422012-10-23 18:08:54 +01001#
2# Copyright (C) 2012 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# This package provides the 'glue' layer between Chromium and WebView.
18
19LOCAL_PATH := $(call my-dir)
Torne (Richard Coles)0a0259f2012-11-15 12:35:52 +000020CHROMIUM_PATH := external/chromium_org
Jonathan Dixona2b0d0b2012-11-12 11:06:01 -080021
Jonathan Dixona2b0d0b2012-11-12 11:06:01 -080022# Native support library (libwebviewchromium_plat_support.so) - does NOT link
Torne (Richard Coles)5df04f52013-10-30 11:53:32 +000023# any native chromium code.
Jonathan Dixona2b0d0b2012-11-12 11:06:01 -080024include $(CLEAR_VARS)
25
26LOCAL_MODULE:= libwebviewchromium_plat_support
27
Marcin Kosibad5749842014-05-12 16:52:46 +010028LOCAL_SRC_FILES:= \
Jonathan Dixona2b0d0b2012-11-12 11:06:01 -080029 plat_support/draw_gl_functor.cpp \
Jonathan Dixon991b0c62012-12-26 15:44:20 -080030 plat_support/jni_entry_point.cpp \
31 plat_support/graphics_utils.cpp \
Kaan Balogluc5cde8c2013-02-21 15:22:14 -080032 plat_support/graphic_buffer_impl.cpp \
Jonathan Dixona2b0d0b2012-11-12 11:06:01 -080033
34LOCAL_C_INCLUDES:= \
Jonathan Dixon991b0c62012-12-26 15:44:20 -080035 $(CHROMIUM_PATH) \
36 external/skia/include/core \
37 frameworks/base/core/jni/android/graphics \
Kaan Balogluc5cde8c2013-02-21 15:22:14 -080038 frameworks/native/include/ui \
Jonathan Dixona2b0d0b2012-11-12 11:06:01 -080039
40LOCAL_SHARED_LIBRARIES += \
Jonathan Dixon991b0c62012-12-26 15:44:20 -080041 libandroid_runtime \
Ying Wang82e61dd2013-04-10 11:05:09 -070042 liblog \
Jonathan Dixon991b0c62012-12-26 15:44:20 -080043 libcutils \
44 libskia \
Kaan Balogluc5cde8c2013-02-21 15:22:14 -080045 libui \
Jonathan Dixona2b0d0b2012-11-12 11:06:01 -080046 libutils \
Jonathan Dixona2b0d0b2012-11-12 11:06:01 -080047
48LOCAL_MODULE_TAGS := optional
49
Kristian Monsen03506362013-11-11 12:28:08 -080050# To remove warnings from skia header files
51LOCAL_CFLAGS := -Wno-unused-parameter
52
Jonathan Dixona2b0d0b2012-11-12 11:06:01 -080053include $(BUILD_SHARED_LIBRARY)
Torne (Richard Coles)bf558c32014-05-16 14:18:00 +010054
55
56# Loader library which handles address space reservation and relro sharing.
57# Does NOT link any native chromium code.
58include $(CLEAR_VARS)
59
60LOCAL_MODULE:= libwebviewchromium_loader
61
62LOCAL_SRC_FILES := \
63 loader/loader.cpp \
64
65LOCAL_CFLAGS := \
66 -Werror \
67
68LOCAL_SHARED_LIBRARIES += \
69 libdl \
70 liblog \
71
72LOCAL_MODULE_TAGS := optional
73
74include $(BUILD_SHARED_LIBRARY)
75
Torne (Richard Coles)eba27ea2014-08-05 12:22:41 +010076
Torne (Richard Coles)c182da22014-08-21 14:38:32 +010077# Include the makefile for the main package unless we are using a prebuilt.
78ifneq ($(PRODUCT_PREBUILT_WEBVIEWCHROMIUM),yes)
Selim Gurun64059ae2014-08-13 18:12:28 -070079extra_java_files :=
Torne (Richard Coles)eba27ea2014-08-05 12:22:41 +010080include $(LOCAL_PATH)/package.mk
Torne (Richard Coles)c182da22014-08-21 14:38:32 +010081endif
Torne (Richard Coles)eba27ea2014-08-05 12:22:41 +010082
Marcin Kosibad5749842014-05-12 16:52:46 +010083# Build other stuff
Primiano Tucci25e9b722013-05-20 14:18:39 +010084include $(call first-makefiles-under,$(LOCAL_PATH))