1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/shell/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +if CONFIG['JS_SHELL_NAME']: 1.11 + PROGRAM = CONFIG['JS_SHELL_NAME'] 1.12 + 1.13 +UNIFIED_SOURCES += [ 1.14 + 'js.cpp', 1.15 + 'jsheaptools.cpp', 1.16 + 'jsoptparse.cpp', 1.17 +] 1.18 + 1.19 +# Building against js_static requires that we declare mfbt sybols "exported" 1.20 +# on its behalf. 1.21 +for var in ('EXPORT_JS_API', 'IMPL_MFBT'): 1.22 + DEFINES[var] = True 1.23 + 1.24 +if CONFIG['_MSC_VER']: 1.25 + # unnecessary PGO for js shell. But gcc cannot turn off pgo because it is 1.26 + # necessary to link PGO lib on gcc when a object/static lib are compiled 1.27 + # for PGO. 1.28 + NO_PGO = True 1.29 + 1.30 +LOCAL_INCLUDES += ['..'] 1.31 +GENERATED_INCLUDES += ['..']