moz.build 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. GeckoProgram(CONFIG['MOZ_CHILD_PROCESS_NAME'], linkage='dependent')
  6. SOURCES += [
  7. 'MozillaRuntimeMain.cpp',
  8. ]
  9. include('/ipc/chromium/chromium-config.mozbuild')
  10. LOCAL_INCLUDES += [
  11. '/toolkit/xre',
  12. '/xpcom/base',
  13. ]
  14. # We link GMPLoader into plugin-container on desktop so that its code is
  15. # covered by the desktop DRM vendor's voucher.
  16. SOURCES += [
  17. '../../dom/media/gmp/GMPLoader.cpp',
  18. ]
  19. USE_LIBS += [
  20. 'rlz',
  21. ]
  22. # DELAYLOAD_DLLS in this block ensures that the DLL blocklist is functional
  23. if CONFIG['OS_ARCH'] == 'WINNT':
  24. DELAYLOAD_DLLS += [
  25. 'nss3.dll',
  26. ]
  27. DELAYLOAD_DLLS += [
  28. 'xul.dll',
  29. ]
  30. if CONFIG['_MSC_VER']:
  31. # Always enter a Windows program through wmain, whether or not we're
  32. # a console application.
  33. WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
  34. LDFLAGS += CONFIG['MOZ_ALLOW_HEAP_EXECUTE_FLAGS']
  35. # Control the default heap size.
  36. # This is the heap returned by GetProcessHeap().
  37. # As we use the CRT heap, the default size is too large and wastes VM.
  38. #
  39. # The default heap size is 1MB on Win32.
  40. # The heap will grow if need be.
  41. #
  42. # Set it to 256k. See bug 127069.
  43. if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
  44. LDFLAGS += ['/HEAP:0x40000']
  45. if CONFIG['GNU_CXX']:
  46. CXXFLAGS += ['-Wshadow']
  47. DEFINES['MOZ_PLUGIN_CONTAINER'] = 1;