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