Bug 1651162 [wpt PR 24490] - Origin isolation: add WPTs for different ports, a=testonly
[gecko.git] / mozglue / android / moz.build
blob85d21e2300f666d0346e350df829b33faa495131
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     'NativeCrypto.cpp',
17     'nsGeckoUtils.cpp',
18     'pbkdf2_sha256.c',
19     'SharedMemNatives.cpp',
22 if CONFIG['MOZ_CRASHREPORTER']:
23     USE_LIBS += [
24         'minidump-analyzer',
25     ]
27     LOCAL_INCLUDES += [
28         '/toolkit/crashreporter/minidump-analyzer',
29     ]
31 FINAL_LIBRARY = 'mozglue'
33 for var in ('ANDROID_PACKAGE_NAME',
34             'ANDROID_CPU_ARCH'):
35     DEFINES[var] = '"%s"' % CONFIG[var]
37 if CONFIG['MOZ_FOLD_LIBS']:
38     DEFINES['MOZ_FOLD_LIBS'] = True
40 LOCAL_INCLUDES += [
41     '!/build',
42     '../linker',
43     '/ipc/chromium/src',
44     '/nsprpub/lib/ds',
45     '/nsprpub/lib/libc/include',
46     '/nsprpub/pr/include',
47     '/security/nss/lib/base',
48     '/security/nss/lib/certdb',
49     '/security/nss/lib/cryptohi',
50     '/security/nss/lib/dev',
51     '/security/nss/lib/freebl',
52     '/security/nss/lib/nss',
53     '/security/nss/lib/pk11wrap',
54     '/security/nss/lib/pkcs7',
55     '/security/nss/lib/pki',
56     '/security/nss/lib/smime',
57     '/security/nss/lib/softoken',
58     '/security/nss/lib/ssl',
59     '/security/nss/lib/util',
60     '/third_party/sqlite3/src',
61     '/toolkit/components/startup',
62     '/xpcom/build',
65 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
66     CXXFLAGS += ['-Wno-error=shadow']
68 DEFINES['XPCOM_GLUE'] = True
70 USE_LIBS += [
71     'xpcomglue',