|
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 not CONFIG['LIBXUL_SDK']: |
|
8 if CONFIG['OS_TARGET'] != 'Android': |
|
9 PROGRAM = CONFIG['MOZ_APP_NAME'] |
|
10 DEFINES['XPCOM_GLUE'] = True |
|
11 GENERATED_INCLUDES += ['/build'] |
|
12 LOCAL_INCLUDES += [ |
|
13 '/toolkit/xre', |
|
14 '/xpcom/base', |
|
15 '/xpcom/build', |
|
16 ] |
|
17 DISABLE_STL_WRAPPING = True |
|
18 |
|
19 for var in ('APP_NAME', 'APP_VERSION'): |
|
20 DEFINES[var] = CONFIG['MOZ_%s' % var] |
|
21 |
|
22 for var in ('MOZ_UPDATER', 'MOZ_APP_UA_NAME'): |
|
23 DEFINES[var] = CONFIG[var] |
|
24 |
|
25 if CONFIG['MOZ_PKG_SPECIAL']: |
|
26 DEFINES['MOZ_PKG_SPECIAL'] = CONFIG['MOZ_PKG_SPECIAL'] |