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