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: MOZ_GLUE_LDFLAGS = michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: ifdef WIN32_REDIST_DIR michael@0: ifndef MOZ_DEBUG michael@0: michael@0: ifeq (1600,$(_MSC_VER)) michael@0: REDIST_FILES = \ michael@0: msvcp100.dll \ michael@0: msvcr100.dll \ michael@0: $(NULL) michael@0: endif michael@0: michael@0: ifeq (1700,$(_MSC_VER)) michael@0: REDIST_FILES = \ michael@0: msvcp110.dll \ michael@0: msvcr110.dll \ michael@0: $(NULL) michael@0: endif michael@0: michael@0: ifeq (1800,$(_MSC_VER)) michael@0: REDIST_FILES = \ michael@0: msvcp120.dll \ michael@0: msvcr120.dll \ michael@0: $(NULL) michael@0: endif michael@0: michael@0: ifdef REDIST_FILES michael@0: libs-preqs = \ michael@0: $(call mkdir_deps,$(FINAL_TARGET)) \ michael@0: $(NULL) michael@0: michael@0: libs:: $(libs-preqs) michael@0: install --preserve-timestamps $(foreach f,$(REDIST_FILES),'$(WIN32_REDIST_DIR)'/$(f)) $(FINAL_TARGET) michael@0: endif michael@0: michael@0: endif # ! MOZ_DEBUG michael@0: endif # WIN32_REDIST_DIR michael@0: michael@0: # run the binscope tool to make sure the binary and all libraries michael@0: # are using all available Windows OS-level security mechanisms michael@0: check:: michael@0: $(PYTHON) $(srcdir)/autobinscope.py $(DIST)/bin/$(MOZ_APP_NAME)$(BIN_SUFFIX) $(DIST)/crashreporter-symbols/ michael@0: $(PYTHON) $(srcdir)/autobinscope.py $(DIST)/bin/plugin-container.exe $(DIST)/crashreporter-symbols/