#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE		= plugin
LIBRARY_NAME	= gkpluginandroid_s
LIBXUL_LIBRARY   = 1
FORCE_STATIC_LIB = 1
EXPORT_LIBRARY = 1
FAIL_ON_WARNINGS := 1

include $(topsrcdir)/config/config.mk
include $(topsrcdir)/ipc/chromium/chromium-config.mk

EXPORTS = \
  ANPKeyCodes.h \
  android_npapi.h \
  $(NULL)

CPPSRCS += ANPAudio.cpp    \
           ANPEvent.cpp    \
           ANPMatrix.cpp   \
           ANPSystem.cpp   \
           ANPWindow.cpp   \
           ANPBitmap.cpp   \
           ANPLog.cpp      \
           ANPNativeWindow.cpp \
           ANPSurface.cpp  \
           ANPVideo.cpp    \
           ANPOpenGL.cpp   \
           $(NULL)

LOCAL_INCLUDES += \
  -I$(topsrcdir)/widget/android \
  -I$(topsrcdir)/widget/xpwidgets \
  -I$(topsrcdir)/dom/plugins/base \
  -I$(topsrcdir)/dom/plugins/base/android/include \
  -I$(topsrcdir)/gfx/gl \
  $(MOZ_CAIRO_CFLAGS) \
  $(MOZ_PIXMAN_CFLAGS) \
  $(NULL)

DEFINES += -DMOZ_APP_NAME='"$(MOZ_APP_NAME)"'

include $(topsrcdir)/config/rules.mk

