|
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/. |
|
6 |
|
7 if CONFIG['JS_SHELL_NAME']: |
|
8 PROGRAM = CONFIG['JS_SHELL_NAME'] |
|
9 |
|
10 UNIFIED_SOURCES += [ |
|
11 'js.cpp', |
|
12 'jsheaptools.cpp', |
|
13 'jsoptparse.cpp', |
|
14 ] |
|
15 |
|
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 |
|
20 |
|
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 |
|
26 |
|
27 LOCAL_INCLUDES += ['..'] |
|
28 GENERATED_INCLUDES += ['..'] |