Bug 1732219 - Add API for fetching the preview image. r=geckoview-reviewers,agi,mconley
[gecko.git] / mozglue / android / moz.build
blob8f462ae37d03667916b88238163ade8162c0d208
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 EXPORTS += [
8     "APKOpen.h",
11 EXPORTS.mozilla += ["Ashmem.h"]
13 SOURCES += [
14     "APKOpen.cpp",
15     "Ashmem.cpp",
16     "nsGeckoUtils.cpp",
17     "SharedMemNatives.cpp",
20 FINAL_LIBRARY = "mozglue"
22 for var in ("ANDROID_PACKAGE_NAME", "ANDROID_CPU_ARCH"):
23     DEFINES[var] = '"%s"' % CONFIG[var]
25 if CONFIG["MOZ_FOLD_LIBS"]:
26     DEFINES["MOZ_FOLD_LIBS"] = True
28 LOCAL_INCLUDES += [
29     "!/build",
30     "../linker",
31     "/ipc/chromium/src",
32     "/nsprpub/lib/ds",
33     "/nsprpub/lib/libc/include",
34     "/nsprpub/pr/include",
35     "/third_party/sqlite3/src",
36     "/toolkit/components/startup",
37     "/xpcom/build",
40 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
41     CXXFLAGS += ["-Wno-error=shadow"]
43 DEFINES["XPCOM_GLUE"] = True
45 USE_LIBS += [
46     "xpcomglue",