xpcom/moz.build
author Nika Layzell <nika@thelayzells.com>
Wed, 04 Apr 2018 15:55:09 -0400
changeset 414195 da98166e73a816cb3973c799e1e9c46ec2bd9dc7
parent 387992 e07ca12a3b94509be582df83e4ecdc36c13bba4d
child 435251 79fe4634f866f34936af23634172d2980256a358
permissions -rw-r--r--
Bug 1444745 - Part 1: Clear out xptinfo and typelib to make way for the this patch, r=mccr8 Unfortunately, I wasn't able to figure out a way to make firefox build & run in the intermediate stages of these commits. Because of this, I am going to just delete most of the code which I am deleting in the first patch, as I figure that those are somewhat uninteresting changes, and then make the other changes in the following patches. In total, the following things are deleted: 1. All of xpcom/typelib, except for `xpt/tools` - this directory is being subsumed entirely into xpcom/reflect/xptinfo. 2. Most of the code in xpcom/reflect/xptinfo, it is being rewritten to avoid allocating and contain all of the necessary data structures. 3. idl-parser's typelib.py XPT generator, as it will be replaced. 4. Most includes of files which have been deleted. NOTE: xpcom/typelib/xpt/tools/xpt.py was not removed, as it is used by bundling code & bundling tests, which we don't want to remove yet.

# -*- Mode: python; 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/.

with Files('**'):
    BUG_COMPONENT = ('Core', 'XPCOM')

DIRS += [
    'idl-parser/xpidl',
]

DIRS += [
    'typelib',
    'string',
    'glue',
    'base',
    'ds',
    'io',
    'components',
    'threads',
    'reflect',
    'system',
    '../chrome',
    'build',
]

if CONFIG['OS_ARCH'] == 'WINNT' and CONFIG['MOZ_DEBUG']:
    DIRS += ['windbgdlg']

TEST_DIRS += [
    'rust/gtest',
    'tests',
]

#  Can't build internal xptcall tests that use symbols which are not exported.
#TEST_DIRS += [
#    'reflect/xptcall/tests,
#]

CONFIGURE_DEFINE_FILES += [
    'xpcom-config.h',
    'xpcom-private.h',
]

EXPORTS += [
    '!xpcom-config.h',
]