Android.mk revision c2aae77521ed9db7157053968fe1070b8cac2d6a
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 external/skia/include/core \ 36 frameworks/base/core/jni/android/graphics \ 37 frameworks/native/include/ui \ 38 39LOCAL_SHARED_LIBRARIES += \ 40 libandroid_runtime \ 41 liblog \ 42 libcutils \ 43 libskia \ 44 libui \ 45 libutils \ 46 47LOCAL_MODULE_TAGS := optional 48 49# To remove warnings from skia header files 50LOCAL_CFLAGS := -Wno-unused-parameter 51 52include $(BUILD_SHARED_LIBRARY) 53 54 55# Loader library which handles address space reservation and relro sharing. 56# Does NOT link any native chromium code. 57include $(CLEAR_VARS) 58 59LOCAL_MODULE:= libwebviewchromium_loader 60 61LOCAL_SRC_FILES := \ 62 loader/loader.cpp \ 63 64LOCAL_CFLAGS := \ 65 -Werror \ 66 67LOCAL_SHARED_LIBRARIES += \ 68 libdl \ 69 liblog \ 70 71LOCAL_MODULE_TAGS := optional 72 73include $(BUILD_SHARED_LIBRARY) 74 75# Build other stuff 76include $(call first-makefiles-under,$(LOCAL_PATH)) 77