docshell/shistory/moz.build
author Gregory Szorc <gps@mozilla.com>
Tue, 07 Nov 2017 16:38:39 -0800
changeset 441455 b5f79b0f2a3586faf692c715b443264478e921c3
parent 362563 09b9bd35cf63d6b26fcbbcacee6043c8e82e38d8
child 447482 5ec58e0e3a347e2504d7544d5d0312a70e8735cd
permissions -rw-r--r--
Bug 1412932 - Switch to PGO build in Makefile.in; r=ted Previously, client.mk made the decision of whether to perform a PGO build. This required passing around MOZ_PGO and invoking a separate make target if this variable was set. In this commit, we move this logic to Makefile.in. We employ a special mechanism in rules.mk to override the default make target so `make` evaluates "profiledbuild" if MOZ_PGO is set. This also required using an explicit target for $(MAKE) invocations inside the "profiledbuild" rule to avoid infinite recursion. MozReview-Commit-ID: 8sHiVspMisM

# -*- 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/.

XPIDL_SOURCES += [
    'nsIBFCacheEntry.idl',
    'nsIGroupedSHistory.idl',
    'nsIPartialSHistory.idl',
    'nsIPartialSHistoryListener.idl',
    'nsISHContainer.idl',
    'nsISHEntry.idl',
    'nsISHistory.idl',
    'nsISHistoryInternal.idl',
    'nsISHistoryListener.idl',
    'nsISHTransaction.idl',
]

XPIDL_MODULE = 'shistory'

EXPORTS += [
    'nsSHEntryShared.h',
]

UNIFIED_SOURCES += [
    'nsSHEntry.cpp',
    'nsSHEntryShared.cpp',
    'nsSHistory.cpp',
    'nsSHTransaction.cpp',
]

LOCAL_INCLUDES += [
    '/docshell/base',
]

FINAL_LIBRARY = 'xul'

if CONFIG['GNU_CXX']:
    CXXFLAGS += ['-Wno-error=shadow']