michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: PROGRAM = 'winEmbed' michael@0: michael@0: SOURCES += [ michael@0: 'WebBrowserChrome.cpp', michael@0: 'WindowCreator.cpp', michael@0: 'winEmbed.cpp', michael@0: ] michael@0: michael@0: XPI_NAME = 'winembed' michael@0: michael@0: DEFINES['XPCOM_GLUE'] = True michael@0: michael@0: RESFILE = 'winEmbed.res' michael@0: michael@0: if CONFIG['GNU_CC']: michael@0: # Get rid of console window michael@0: LDFLAGS += ['-mwindows'] michael@0: else: michael@0: # Control the default heap size. michael@0: # This is the heap returned by GetProcessHeap(). michael@0: # As we use the CRT heap, the default size is too large and wastes VM. michael@0: # michael@0: # The default heap size is 1MB on Win32. michael@0: # The heap will grow if need be. michael@0: # michael@0: # Set it to 256k. See bug 127069. michael@0: LDFLAGS += ['/HEAP:0x40000'] michael@0: michael@0: DISABLE_STL_WRAPPING = True