2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:17 +00:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# 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/.
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'mozmemory.h',
|
|
|
|
'mozmemory_wrap.h',
|
|
|
|
]
|
|
|
|
|
2016-11-10 11:57:00 +00:00
|
|
|
LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
|
2013-11-27 13:55:07 +00:00
|
|
|
DEFINES['MOZ_MEMORY_IMPL'] = True
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
if CONFIG['MOZ_REPLACE_MALLOC']:
|
|
|
|
EXPORTS += [
|
|
|
|
'malloc_decls.h',
|
2013-05-17 01:07:12 +00:00
|
|
|
'replace_malloc.h',
|
2014-11-18 10:21:06 +00:00
|
|
|
'replace_malloc_bridge.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
2013-11-27 13:55:07 +00:00
|
|
|
|
2013-11-21 19:28:52 +00:00
|
|
|
SOURCES += [
|
2015-09-02 02:04:42 +00:00
|
|
|
'jemalloc_config.cpp',
|
2013-06-04 15:08:44 +00:00
|
|
|
'mozmemory_wrap.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_REPLACE_MALLOC']:
|
2013-11-21 19:28:52 +00:00
|
|
|
SOURCES += [
|
2013-06-04 15:08:44 +00:00
|
|
|
'replace_malloc.c',
|
|
|
|
]
|
2013-06-17 19:21:01 +00:00
|
|
|
|
2017-01-18 02:45:45 +00:00
|
|
|
if CONFIG['OS_TARGET'] == 'Darwin' and (CONFIG['MOZ_REPLACE_MALLOC'] or
|
2017-05-11 04:16:00 +00:00
|
|
|
CONFIG['MOZ_MEMORY']):
|
2017-01-18 02:45:45 +00:00
|
|
|
SOURCES += [
|
|
|
|
'zone.c',
|
|
|
|
]
|
2017-01-18 02:39:29 +00:00
|
|
|
|
2014-09-03 05:10:54 +00:00
|
|
|
Library('memory')
|
2013-06-17 19:21:01 +00:00
|
|
|
|
2014-10-30 04:06:12 +00:00
|
|
|
if CONFIG['MOZ_GLUE_IN_PROGRAM']:
|
2015-05-08 23:37:22 +00:00
|
|
|
DIST_INSTALL = True
|
2014-07-23 04:29:09 +00:00
|
|
|
|
2013-11-19 02:47:14 +00:00
|
|
|
# Keep jemalloc separated when mozglue is statically linked
|
2017-05-11 04:03:20 +00:00
|
|
|
if CONFIG['MOZ_MEMORY'] and CONFIG['OS_TARGET'] in ('WINNT', 'Darwin', 'Android'):
|
2013-11-19 02:47:14 +00:00
|
|
|
FINAL_LIBRARY = 'mozglue'
|