Torne (Richard Coles) | 46f1042 | 2012-10-23 18:08:54 +0100 | [diff] [blame] | 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 | |
| 19 | LOCAL_PATH := $(call my-dir) |
Torne (Richard Coles) | 0a0259f | 2012-11-15 12:35:52 +0000 | [diff] [blame] | 20 | CHROMIUM_PATH := external/chromium_org |
Jonathan Dixon | a2b0d0b | 2012-11-12 11:06:01 -0800 | [diff] [blame] | 21 | |
Jonathan Dixon | a2b0d0b | 2012-11-12 11:06:01 -0800 | [diff] [blame] | 22 | # Native support library (libwebviewchromium_plat_support.so) - does NOT link |
Torne (Richard Coles) | 5df04f5 | 2013-10-30 11:53:32 +0000 | [diff] [blame] | 23 | # any native chromium code. |
Jonathan Dixon | a2b0d0b | 2012-11-12 11:06:01 -0800 | [diff] [blame] | 24 | include $(CLEAR_VARS) |
| 25 | |
| 26 | LOCAL_MODULE:= libwebviewchromium_plat_support |
| 27 | |
Marcin Kosiba | d574984 | 2014-05-12 16:52:46 +0100 | [diff] [blame] | 28 | LOCAL_SRC_FILES:= \ |
Jonathan Dixon | a2b0d0b | 2012-11-12 11:06:01 -0800 | [diff] [blame] | 29 | plat_support/draw_gl_functor.cpp \ |
Jonathan Dixon | 991b0c6 | 2012-12-26 15:44:20 -0800 | [diff] [blame] | 30 | plat_support/jni_entry_point.cpp \ |
| 31 | plat_support/graphics_utils.cpp \ |
Kaan Baloglu | c5cde8c | 2013-02-21 15:22:14 -0800 | [diff] [blame] | 32 | plat_support/graphic_buffer_impl.cpp \ |
Jonathan Dixon | a2b0d0b | 2012-11-12 11:06:01 -0800 | [diff] [blame] | 33 | |
| 34 | LOCAL_C_INCLUDES:= \ |
Jonathan Dixon | 991b0c6 | 2012-12-26 15:44:20 -0800 | [diff] [blame] | 35 | $(CHROMIUM_PATH) \ |
| 36 | external/skia/include/core \ |
| 37 | frameworks/base/core/jni/android/graphics \ |
Kaan Baloglu | c5cde8c | 2013-02-21 15:22:14 -0800 | [diff] [blame] | 38 | frameworks/native/include/ui \ |
Jonathan Dixon | a2b0d0b | 2012-11-12 11:06:01 -0800 | [diff] [blame] | 39 | |
| 40 | LOCAL_SHARED_LIBRARIES += \ |
Jonathan Dixon | 991b0c6 | 2012-12-26 15:44:20 -0800 | [diff] [blame] | 41 | libandroid_runtime \ |
Ying Wang | 82e61dd | 2013-04-10 11:05:09 -0700 | [diff] [blame] | 42 | liblog \ |
Jonathan Dixon | 991b0c6 | 2012-12-26 15:44:20 -0800 | [diff] [blame] | 43 | libcutils \ |
| 44 | libskia \ |
Kaan Baloglu | c5cde8c | 2013-02-21 15:22:14 -0800 | [diff] [blame] | 45 | libui \ |
Jonathan Dixon | a2b0d0b | 2012-11-12 11:06:01 -0800 | [diff] [blame] | 46 | libutils \ |
Jonathan Dixon | a2b0d0b | 2012-11-12 11:06:01 -0800 | [diff] [blame] | 47 | |
| 48 | LOCAL_MODULE_TAGS := optional |
| 49 | |
Kristian Monsen | 0350636 | 2013-11-11 12:28:08 -0800 | [diff] [blame] | 50 | # To remove warnings from skia header files |
| 51 | LOCAL_CFLAGS := -Wno-unused-parameter |
| 52 | |
Jonathan Dixon | a2b0d0b | 2012-11-12 11:06:01 -0800 | [diff] [blame] | 53 | include $(BUILD_SHARED_LIBRARY) |
Torne (Richard Coles) | bf558c3 | 2014-05-16 14:18:00 +0100 | [diff] [blame] | 54 | |
| 55 | |
| 56 | # Loader library which handles address space reservation and relro sharing. |
| 57 | # Does NOT link any native chromium code. |
| 58 | include $(CLEAR_VARS) |
| 59 | |
| 60 | LOCAL_MODULE:= libwebviewchromium_loader |
| 61 | |
| 62 | LOCAL_SRC_FILES := \ |
| 63 | loader/loader.cpp \ |
| 64 | |
| 65 | LOCAL_CFLAGS := \ |
| 66 | -Werror \ |
| 67 | |
| 68 | LOCAL_SHARED_LIBRARIES += \ |
| 69 | libdl \ |
| 70 | liblog \ |
| 71 | |
| 72 | LOCAL_MODULE_TAGS := optional |
| 73 | |
| 74 | include $(BUILD_SHARED_LIBRARY) |
| 75 | |
Torne (Richard Coles) | eba27ea | 2014-08-05 12:22:41 +0100 | [diff] [blame] | 76 | |
Torne (Richard Coles) | c182da2 | 2014-08-21 14:38:32 +0100 | [diff] [blame] | 77 | # Include the makefile for the main package unless we are using a prebuilt. |
| 78 | ifneq ($(PRODUCT_PREBUILT_WEBVIEWCHROMIUM),yes) |
Selim Gurun | 64059ae | 2014-08-13 18:12:28 -0700 | [diff] [blame] | 79 | extra_java_files := |
Torne (Richard Coles) | eba27ea | 2014-08-05 12:22:41 +0100 | [diff] [blame] | 80 | include $(LOCAL_PATH)/package.mk |
Torne (Richard Coles) | c182da2 | 2014-08-21 14:38:32 +0100 | [diff] [blame] | 81 | endif |
Torne (Richard Coles) | eba27ea | 2014-08-05 12:22:41 +0100 | [diff] [blame] | 82 | |
Marcin Kosiba | d574984 | 2014-05-12 16:52:46 +0100 | [diff] [blame] | 83 | # Build other stuff |
Primiano Tucci | 25e9b72 | 2013-05-20 14:18:39 +0100 | [diff] [blame] | 84 | include $(call first-makefiles-under,$(LOCAL_PATH)) |