Bug 976885 - Port RCFLAGS to moz.build; r=glandium

This commit is contained in:
Ehsan Akhgari 2014-02-26 09:12:49 -05:00
parent 520fcc9bd4
commit ae84232a40
11 changed files with 15 additions and 45 deletions

View File

@ -61,11 +61,6 @@ RCINCLUDE = splash.rc
# Note the manifest file exists in the tree, so we use the explicit filename
# here.
EXTRA_DEPS += firefox.exe.manifest
ifndef GNU_CC
RCFLAGS += -DMOZ_PHOENIX -I$(srcdir)
else
RCFLAGS += -DMOZ_PHOENIX --include-dir $(srcdir)
endif
endif
PROGRAMS_DEST = $(DIST)/bin

View File

@ -37,3 +37,6 @@ 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':
DEFINES['MOZ_PHOENIX'] = True

View File

@ -19,11 +19,6 @@ endif
RCINCLUDE = maintenanceservice.rc
OS_LIBS += $(call EXPAND_LIBNAME,comctl32 ws2_32 shell32)
ifndef GNU_CC
RCFLAGS += -I$(srcdir)
else
RCFLAGS += --include-dir $(srcdir)
endif
ifndef MOZ_WINCONSOLE
ifdef MOZ_DEBUG

View File

@ -22,12 +22,6 @@ ifeq ($(OS_ARCH),WINNT)
LIBS += $(call EXPAND_LIBNAME_PATH,verifymar,$(DEPTH)/modules/libmar/verify)
RCINCLUDE = updater.rc
OS_LIBS += $(call EXPAND_LIBNAME,comctl32 ws2_32 shell32 shlwapi)
ifndef GNU_CC
RCFLAGS += -I$(srcdir)
else
RCFLAGS += --include-dir $(srcdir)
endif
endif
ifdef MOZ_WIDGET_GTK
@ -79,11 +73,3 @@ EXTRA_LIBS += $(call EXPAND_LIBNAME,advapi32)
endif
CXXFLAGS += $(MOZ_BZ2_CFLAGS)
ifneq (,$(filter beta release esr,$(MOZ_UPDATE_CHANNEL)))
RCFLAGS += -DMAR_SIGNING_RELEASE_BETA=1
else
ifneq (,$(filter nightly aurora nightly-elm nightly-profiling nightly-oak,$(MOZ_UPDATE_CHANNEL)))
RCFLAGS += -DMAR_SIGNING_AURORA_NIGHTLY=1
endif
endif

View File

@ -72,3 +72,8 @@ DELAYLOAD_DLLS += [
if CONFIG['_MSC_VER']:
WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
if CONFIG['MOZ_UPDATE_CHANNEL'] in ('beta', 'release', 'esr'):
DEFINES['MAR_SIGNING_RELEASE_BETA'] = '1'
elif CONFIG['MOZ_UPDATE_CHANNEL'] in ('nightly', 'aurora', 'nightly-elm', 'nightly-profiling', 'nightly-oak'):
DEFINES['MAR_SIGNING_AURORA_NIGHTLY'] = '1'

View File

@ -31,14 +31,6 @@ DEFINES += -DAPP_VERSION=$(APP_VERSION)
OS_LIBS += $(call EXPAND_LIBNAME,shell32)
RCINCLUDE = webapprt.rc
ifndef GNU_CC
RCFLAGS += -I$(srcdir)
else
RCFLAGS += --include-dir $(srcdir)
endif
ifdef DEBUG
RCFLAGS += -DDEBUG
endif
# Uninstaller
ifdef LOCALE_MERGEDIR

View File

@ -11,6 +11,8 @@ SOURCES += [
]
DEFINES['XPCOM_GLUE'] = True
if CONFIG['DEBUG']:
DEFINES['DEBUG'] = True
# Statically link against the CRT
USE_STATIC_LIBS = True

View File

@ -35,14 +35,6 @@ include $(topsrcdir)/config/config.mk
ifeq ($(OS_ARCH),WINNT)
OS_LIBS += $(call EXPAND_LIBNAME,comctl32 comdlg32 uuid shell32 ole32 oleaut32 version winspool)
RCINCLUDE = splash.rc
ifndef GNU_CC
RCFLAGS += -DMOZ_XULRUNNER -I$(srcdir)
else
RCFLAGS += -DMOZ_XULRUNNER --include-dir $(srcdir)
endif
ifdef DEBUG
RCFLAGS += -DDEBUG
endif
endif
include $(topsrcdir)/config/rules.mk

View File

@ -14,6 +14,8 @@ SOURCES += [
DEFINES['XULRUNNER_PROGNAME'] = '"xulrunner"'
DEFINES['XPCOM_GLUE'] = True
if CONFIG['DEBUG']:
DEFINES['DEBUG'] = True
if CONFIG['TARGET_XPCOM_ABI']:
DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']

View File

@ -20,11 +20,6 @@ endif
ifeq ($(OS_ARCH),WINNT)
RCINCLUDE = xulrunner-stub.rc
ifndef GNU_CC
RCFLAGS += -DMOZ_XULRUNNER -I$(srcdir)
else
RCFLAGS += -DMOZ_XULRUNNER --include-dir $(srcdir)
endif
endif
ifndef MOZ_WINCONSOLE

View File

@ -33,3 +33,6 @@ if CONFIG['OS_ARCH'] == 'WINNT':
if CONFIG['_MSC_VER']:
WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
if CONFIG['OS_ARCH'] == 'WINNT':
DEFINES['MOZ_XULRUNNER'] = True