1# 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) 20CHROMIUM_PATH := external/chromium_org 21 22# Native support library (libwebviewchromium_plat_support.so) - does NOT link 23# any native chromium code. 24include $(CLEAR_VARS) 25 26LOCAL_MODULE:= libwebviewchromium_plat_support 27 28LOCAL_SRC_FILES:= \ 29 plat_support/draw_gl_functor.cpp \ 30 plat_support/jni_entry_point.cpp \ 31 plat_support/graphics_utils.cpp \ 32 plat_support/graphic_buffer_impl.cpp \ 33 34LOCAL_C_INCLUDES:= \ 35 $(CHROMIUM_PATH) \ 36 external/skia/include/core \ 37 frameworks/base/core/jni/android/graphics \ 38 frameworks/native/include/ui \ 39 40LOCAL_SHARED_LIBRARIES += \ 41 libandroid_runtime \ 42 liblog \ 43 libcutils \ 44 libskia \ 45 libui \ 46 libutils \ 47 48LOCAL_MODULE_TAGS := optional 49 50# To remove warnings from skia header files 51LOCAL_CFLAGS := -Wno-unused-parameter 52 53include $(BUILD_SHARED_LIBRARY) 54 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 76 77# Include the makefile for the main package unless we are using a prebuilt. 78ifneq ($(PRODUCT_PREBUILT_WEBVIEWCHROMIUM),yes) 79extra_java_files := 80include $(LOCAL_PATH)/package.mk 81endif 82 83# Build other stuff 84include $(call first-makefiles-under,$(LOCAL_PATH)) 85