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 GeckoProgram(CONFIG['JS_SHELL_NAME'], linkage=None)
9 if CONFIG['JS_BUNDLED_EDITLINE']:
10 USE_LIBS += ['editline']
11 USE_LIBS += ['static:js']
20 # Building against js_static requires that we declare mfbt sybols "exported"
22 for var in ('EXPORT_JS_API', 'IMPL_MFBT'):
25 if CONFIG['_MSC_VER']:
26 # unnecessary PGO for js shell. But gcc cannot turn off pgo because it is
27 # necessary to link PGO lib on gcc when a object/static lib are compiled
31 LOCAL_INCLUDES += ['..']
32 GENERATED_INCLUDES += ['..']
34 OS_LIBS += CONFIG['EDITLINE_LIBS']
35 OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
38 FAIL_ON_WARNINGS = True