js/src/shell/moz.build

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 # -*- Mode: python; c-basic-offset: 4; 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 if CONFIG['JS_SHELL_NAME']:
     8     PROGRAM = CONFIG['JS_SHELL_NAME']
    10 UNIFIED_SOURCES += [
    11     'js.cpp',
    12     'jsheaptools.cpp',
    13     'jsoptparse.cpp',
    14 ]
    16 # Building against js_static requires that we declare mfbt sybols "exported"
    17 # on its behalf.
    18 for var in ('EXPORT_JS_API', 'IMPL_MFBT'):
    19     DEFINES[var] = True
    21 if CONFIG['_MSC_VER']:
    22     # unnecessary PGO for js shell.  But gcc cannot turn off pgo because it is
    23     # necessary to link PGO lib on gcc when a object/static lib are compiled
    24     # for PGO.
    25     NO_PGO = True
    27 LOCAL_INCLUDES += ['..']
    28 GENERATED_INCLUDES += ['..']

mercurial