2012-05-21 15:12:37 +04:00
|
|
|
# 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/.
|
2006-02-02 23:56:10 +03:00
|
|
|
|
2012-04-04 00:08:16 +04:00
|
|
|
DEPTH = ../..
|
2006-02-02 23:56:10 +03:00
|
|
|
topsrcdir = @top_srcdir@
|
2012-04-04 00:08:16 +04:00
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2006-02-02 23:56:10 +03:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2011-08-15 17:27:35 +04:00
|
|
|
NO_PROFILE_GUIDED_OPTIMIZE = 1
|
|
|
|
|
2010-03-24 02:24:38 +03:00
|
|
|
ifdef _MSC_VER
|
2010-05-17 06:29:35 +04:00
|
|
|
ifneq ($(OS_TEST),x86_64)
|
2012-02-11 01:06:56 +04:00
|
|
|
TEST_DIRS += vmwarerecordinghelper
|
2010-03-24 02:24:38 +03:00
|
|
|
endif
|
2010-05-17 06:29:35 +04:00
|
|
|
endif
|
2010-03-24 02:24:38 +03:00
|
|
|
|
2012-02-11 01:06:56 +04:00
|
|
|
TEST_DIRS += \
|
2010-03-16 00:44:29 +03:00
|
|
|
crashinjectdll \
|
|
|
|
$(NULL)
|
2009-10-16 21:34:27 +04:00
|
|
|
|
2012-02-11 01:06:56 +04:00
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
|
2009-10-16 21:34:27 +04:00
|
|
|
PROGRAM = crashinject$(BIN_SUFFIX)
|
|
|
|
USE_STATIC_LIBS = 1
|
|
|
|
CPPSRCS = crashinject.cpp
|
|
|
|
|
2011-04-17 18:47:19 +04:00
|
|
|
endif # ENABLE_TESTS
|
2009-10-16 21:34:27 +04:00
|
|
|
|
2011-12-28 11:24:02 +04:00
|
|
|
MOZ_GLUE_LDFLAGS =
|
2011-09-03 10:19:06 +04:00
|
|
|
|
2006-02-02 23:56:10 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
ifdef WIN32_REDIST_DIR
|
2011-04-22 21:33:36 +04:00
|
|
|
ifndef MOZ_DEBUG
|
2006-02-02 23:56:10 +03:00
|
|
|
|
|
|
|
ifeq (1400,$(_MSC_VER))
|
|
|
|
REDIST_FILES = \
|
2011-10-04 05:57:00 +04:00
|
|
|
Microsoft.VC80.CRT.manifest \
|
|
|
|
msvcm80.dll \
|
|
|
|
msvcp80.dll \
|
|
|
|
msvcr80.dll \
|
|
|
|
$(NULL)
|
2006-02-02 23:56:10 +03:00
|
|
|
endif
|
|
|
|
|
2007-02-17 21:31:26 +03:00
|
|
|
ifeq (1500,$(_MSC_VER))
|
|
|
|
REDIST_FILES = \
|
2011-10-04 05:57:00 +04:00
|
|
|
Microsoft.VC90.CRT.manifest \
|
|
|
|
msvcm90.dll \
|
|
|
|
msvcp90.dll \
|
|
|
|
msvcr90.dll \
|
|
|
|
$(NULL)
|
2007-02-17 21:31:26 +03:00
|
|
|
endif
|
|
|
|
|
2009-11-23 18:20:21 +03:00
|
|
|
ifeq (1600,$(_MSC_VER))
|
|
|
|
REDIST_FILES = \
|
2011-10-04 05:57:00 +04:00
|
|
|
msvcp100.dll \
|
|
|
|
msvcr100.dll \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (1700,$(_MSC_VER))
|
|
|
|
REDIST_FILES = \
|
|
|
|
msvcp110.dll \
|
|
|
|
msvcr110.dll \
|
|
|
|
$(NULL)
|
2009-11-23 18:20:21 +03:00
|
|
|
endif
|
|
|
|
|
2006-02-02 23:56:10 +03:00
|
|
|
ifdef REDIST_FILES
|
2012-04-04 00:08:16 +04:00
|
|
|
libs-preqs = \
|
|
|
|
$(call mkdir_deps,$(FINAL_TARGET)) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
libs:: $(libs-preqs)
|
2009-11-23 18:20:21 +03:00
|
|
|
install --preserve-timestamps $(foreach f,$(REDIST_FILES),"$(WIN32_REDIST_DIR)"/$(f)) $(FINAL_TARGET)
|
2006-02-02 23:56:10 +03:00
|
|
|
endif
|
|
|
|
|
2011-04-22 21:33:36 +04:00
|
|
|
endif # ! MOZ_DEBUG
|
2011-04-17 18:47:19 +04:00
|
|
|
endif # WIN32_REDIST_DIR
|
2011-11-19 17:35:03 +04:00
|
|
|
|
|
|
|
# run the binscope tool to make sure the binary and all libraries
|
|
|
|
# are using all available Windows OS-level security mechanisms
|
|
|
|
check::
|
2011-11-21 20:56:20 +04:00
|
|
|
$(PYTHON) $(srcdir)/autobinscope.py $(DIST)/bin/$(MOZ_APP_NAME)$(BIN_SUFFIX) $(DIST)/crashreporter-symbols/
|
2011-11-19 17:35:03 +04:00
|
|
|
$(PYTHON) $(srcdir)/autobinscope.py $(DIST)/bin/plugin-container.exe $(DIST)/crashreporter-symbols/
|
|
|
|
|