mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
21ec48314e
There are, sadly, many combinations of linkage in use throughout the tree. The main differentiator, though, is between program/libraries related to Gecko or not. Kind of. Some need mozglue, some don't. Some need dependent linkage, some standalone. Anyways, these new templates remove the need to manually define the right dependencies against xpcomglue, nspr, mozalloc and mozglue in most cases. Places that build programs and were resetting MOZ_GLUE_PROGRAM_LDFLAGS or that build libraries and were resetting MOZ_GLUE_LDFLAGS can now just not use those Gecko-specific templates.
63 lines
1.6 KiB
Python
63 lines
1.6 KiB
Python
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# 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/.
|
|
|
|
SOURCES += [
|
|
'src/src/arena.c',
|
|
'src/src/atomic.c',
|
|
'src/src/base.c',
|
|
'src/src/bitmap.c',
|
|
'src/src/chunk.c',
|
|
'src/src/chunk_dss.c',
|
|
'src/src/chunk_mmap.c',
|
|
'src/src/ckh.c',
|
|
'src/src/ctl.c',
|
|
'src/src/extent.c',
|
|
'src/src/hash.c',
|
|
'src/src/huge.c',
|
|
'src/src/jemalloc.c',
|
|
'src/src/mb.c',
|
|
'src/src/mutex.c',
|
|
'src/src/prof.c',
|
|
'src/src/quarantine.c',
|
|
'src/src/rtree.c',
|
|
'src/src/stats.c',
|
|
'src/src/tcache.c',
|
|
'src/src/tsd.c',
|
|
'src/src/util.c',
|
|
]
|
|
|
|
# Only OSX needs the zone allocation implementation,
|
|
# but only if replace-malloc is not enabled.
|
|
if CONFIG['OS_TARGET'] == 'Darwin' and not CONFIG['MOZ_REPLACE_MALLOC']:
|
|
SOURCES += [
|
|
'src/src/zone.c',
|
|
]
|
|
|
|
Library('jemalloc')
|
|
|
|
FORCE_STATIC_LIB = True
|
|
|
|
if CONFIG['MOZ_GLUE_IN_PROGRAM']:
|
|
SDK_LIBRARY = True
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
DEFINES['DLLEXPORT'] = True
|
|
LOCAL_INCLUDES += ['src/include/msvc_compat']
|
|
if not CONFIG['HAVE_INTTYPES_H']:
|
|
LOCAL_INCLUDES += ['src/include/msvc_compat/C99']
|
|
|
|
if CONFIG['OS_TARGET'] == 'Linux':
|
|
# For mremap
|
|
DEFINES['_GNU_SOURCE'] = True
|
|
|
|
if CONFIG['MOZ_NUWA_PROCESS'] and CONFIG['MOZ_JEMALLOC3']:
|
|
DEFINES['pthread_mutex_lock'] = '__real_pthread_mutex_lock';
|
|
|
|
DEFINES['abort'] = 'moz_abort'
|
|
|
|
GENERATED_INCLUDES += ['src/include']
|
|
LOCAL_INCLUDES += ['src/include']
|