diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-02 03:35:06 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-02 03:35:06 -0500 |
commit | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (patch) | |
tree | 6efefe6a09feb09d965932b24e10436b9ac8189c /application/palemoon/app/moz.build | |
parent | e72ef92b5bdc43cd2584198e2e54e951b70299e8 (diff) | |
download | UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.tar UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.tar.gz UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.tar.lz UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.tar.xz UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.zip |
Add Pale Moon
Diffstat (limited to 'application/palemoon/app/moz.build')
-rw-r--r-- | application/palemoon/app/moz.build | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/application/palemoon/app/moz.build b/application/palemoon/app/moz.build new file mode 100644 index 000000000..929139a6a --- /dev/null +++ b/application/palemoon/app/moz.build @@ -0,0 +1,91 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +DIRS += ['profile/extensions'] + + +if CONFIG['OS_ARCH'] == 'WINNT' and CONFIG['MOZ_ASAN']: + GoannaProgram(CONFIG['MOZ_APP_NAME']) +else: + GoannaProgram(CONFIG['MOZ_APP_NAME'], msvcrt='static') + +JS_PREFERENCE_FILES += [ + 'profile/palemoon.js', +] + +if CONFIG['LIBXUL_SDK']: + PREF_JS_EXPORTS += [ + 'profile/channel-prefs.js', + ] + +SOURCES += [ + 'nsBrowserApp.cpp', +] + +FINAL_TARGET_FILES += ['blocklist.xml'] +FINAL_TARGET_FILES.defaults.profile += ['profile/prefs.js'] + +DEFINES['APP_VERSION'] = CONFIG['MOZ_APP_VERSION'] + +for var in ('MOZILLA_OFFICIAL', 'LIBXUL_SDK'): + if CONFIG[var]: + DEFINES[var] = True + +DEFINES['XPCOM_GLUE'] = True + +GENERATED_INCLUDES += [ + '/build', +] + +LOCAL_INCLUDES += [ + '/toolkit/xre', + '/xpcom/base', + '/xpcom/build', +] + +DELAYLOAD_DLLS += [ + 'mozglue.dll', +] +USE_STATIC_LIBS = True + + +if CONFIG['_MSC_VER']: + # Always enter a Windows program through wmain, whether or not we're + # a console application. + WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup'] + +if CONFIG['OS_ARCH'] == 'WINNT': + RCINCLUDE = 'splash.rc' + DEFINES['MOZ_PHOENIX'] = True + +# Control the default heap size. +# This is the heap returned by GetProcessHeap(). +# As we use the CRT heap, the default size is too large and wastes VM. +# +# The default heap size is 1MB on Win32. +# The heap will grow if need be. +# +# Set it to 256k. See bug 127069. +if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']: + LDFLAGS += ['/HEAP:0x40000'] + +if CONFIG['OS_ARCH'] == 'WINNT': + USE_LIBS += [ + 'mozglue', + 'xpcomglue_staticruntime', + ] +else: + USE_LIBS += [ + 'xpcomglue', + ] + +DISABLE_STL_WRAPPING = True + +if CONFIG['MOZ_LINKER']: + OS_LIBS += CONFIG['MOZ_ZLIB_LIBS'] + +if CONFIG['HAVE_CLOCK_MONOTONIC']: + OS_LIBS += CONFIG['REALTIME_LIBS'] |