moz.build 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # -*- Mode: python; c-basic-offset: 4; 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. DIRS += ['profile/extensions']
  6. GeckoProgram(CONFIG['MOZ_APP_NAME'])
  7. JS_PREFERENCE_PP_FILES += [
  8. 'profile/palemoon.js',
  9. ]
  10. if CONFIG['LIBXUL_SDK']:
  11. PREF_JS_EXPORTS += [
  12. 'profile/channel-prefs.js',
  13. ]
  14. SOURCES += ['nsBrowserApp.cpp']
  15. FINAL_TARGET_FILES += [
  16. 'blocklist.xml',
  17. 'ua-update.json'
  18. ]
  19. FINAL_TARGET_FILES.defaults += ['permissions']
  20. FINAL_TARGET_FILES.defaults.profile += ['profile/prefs.js']
  21. DEFINES['APP_VERSION'] = CONFIG['MOZ_APP_VERSION']
  22. LOCAL_INCLUDES += ['!/build']
  23. LOCAL_INCLUDES += [
  24. '/platform/toolkit/xre',
  25. '/platform/xpcom/base',
  26. '/platform/xpcom/build',
  27. ]
  28. USE_LIBS += ['mozglue']
  29. if CONFIG['_MSC_VER']:
  30. # Always enter a Windows program through wmain, whether or not we're
  31. # a console application.
  32. WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
  33. if CONFIG['OS_ARCH'] == 'WINNT':
  34. RCINCLUDE = 'splash.rc'
  35. DEFINES['MOZ_PHOENIX'] = True
  36. # Control the default heap size.
  37. # This is the heap returned by GetProcessHeap().
  38. # As we use the CRT heap, the default size is too large and wastes VM.
  39. #
  40. # The default heap size is 1MB on Win32.
  41. # The heap will grow if need be.
  42. #
  43. # Set it to 256k. See bug 127069.
  44. if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
  45. LDFLAGS += ['/HEAP:0x40000']
  46. DISABLE_STL_WRAPPING = True
  47. if CONFIG['MOZ_LINKER']:
  48. OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
  49. if CONFIG['HAVE_CLOCK_MONOTONIC']:
  50. OS_LIBS += CONFIG['REALTIME_LIBS']