Skip to content
Snippets Groups Projects
Commit ae84232a authored by Ehsan Akhgari's avatar Ehsan Akhgari
Browse files

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

parent 520fcc9b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......@@ -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
......
......@@ -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
......@@ -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'
......@@ -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
......
......@@ -11,6 +11,8 @@ SOURCES += [
]
DEFINES['XPCOM_GLUE'] = True
if CONFIG['DEBUG']:
DEFINES['DEBUG'] = True
# Statically link against the CRT
USE_STATIC_LIBS = True
......
......@@ -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
......
......@@ -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']
......
......@@ -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
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment