Bumping manifests a=b2g-bump
[gecko.git] / ipc / app / moz.build
blob332b54fef3a2f7f6211c00ce177db740f47945cd
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['MOZ_WIDGET_TOOLKIT'] == 'android':
8     Program(CONFIG['MOZ_CHILD_PROCESS_NAME'])
9     SOURCES += [
10         'MozillaRuntimeMainAndroid.cpp',
11     ]
12 else:
13     kwargs = {
14         'linkage': None,
15     }
16     if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
17         kwargs['msvcrt'] = 'static'
18     GeckoProgram(CONFIG['MOZ_CHILD_PROCESS_NAME'], **kwargs)
20     SOURCES += [
21         'MozillaRuntimeMain.cpp',
22     ]
23     USE_LIBS += [
24         'mozalloc',
25         'nspr',
26         'xul',
27     ]
29 include('/ipc/chromium/chromium-config.mozbuild')
31 LOCAL_INCLUDES += [
32     '/toolkit/xre',
33     '/xpcom/base',
36 # We link GMPLoader into plugin-container on desktop so that its code is
37 # covered by the desktop DRM vendor's voucher.
38 if CONFIG['OS_TARGET'] != 'Android':
39     SOURCES += [
40         '../../dom/media/gmp/GMPLoader.cpp',
41     ]
43 if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
44     # For sandbox includes and the include dependencies those have
45     LOCAL_INCLUDES += [
46         '/security',
47         '/security/sandbox',
48         '/security/sandbox/chromium',
49     ]
50     USE_LIBS += [
51         'rlz',
52         'sandbox_staticruntime_s',
53     ]
54     DELAYLOAD_DLLS += [
55         'mozalloc.dll',
56         'nss3.dll',
57         'xul.dll'
58     ]
59     DEFINES['HASH_NODE_ID_WITH_DEVICE_ID'] = 1;
60     SOURCES += [
61         'sha256.c',
62     ]
64 if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_TARGET'] == 'Linux':
65     USE_LIBS += [
66         'mozsandbox',
67     ]
69 if CONFIG['_MSC_VER']:
70     # Always enter a Windows program through wmain, whether or not we're
71     # a console application.
72     WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
74 LDFLAGS += [CONFIG['MOZ_ALLOW_HEAP_EXECUTE_FLAGS']]
76 # Control the default heap size.
77 # This is the heap returned by GetProcessHeap().
78 # As we use the CRT heap, the default size is too large and wastes VM.
80 # The default heap size is 1MB on Win32.
81 # The heap will grow if need be.
83 # Set it to 256k.  See bug 127069.
84 if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
85     LDFLAGS += ['/HEAP:0x40000']
87 # Windows builds have dll linkage warnings due to msvcrt static linkage
88 if CONFIG['OS_ARCH'] != 'WINNT':
89     FAIL_ON_WARNINGS = True
91 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
92     OS_LIBS += [
93         'binder',
94         'utils',
95     ]