Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | MOZ_GLUE_LDFLAGS = |
michael@0 | 6 | |
michael@0 | 7 | include $(topsrcdir)/config/rules.mk |
michael@0 | 8 | |
michael@0 | 9 | ifdef WIN32_REDIST_DIR |
michael@0 | 10 | ifndef MOZ_DEBUG |
michael@0 | 11 | |
michael@0 | 12 | ifeq (1600,$(_MSC_VER)) |
michael@0 | 13 | REDIST_FILES = \ |
michael@0 | 14 | msvcp100.dll \ |
michael@0 | 15 | msvcr100.dll \ |
michael@0 | 16 | $(NULL) |
michael@0 | 17 | endif |
michael@0 | 18 | |
michael@0 | 19 | ifeq (1700,$(_MSC_VER)) |
michael@0 | 20 | REDIST_FILES = \ |
michael@0 | 21 | msvcp110.dll \ |
michael@0 | 22 | msvcr110.dll \ |
michael@0 | 23 | $(NULL) |
michael@0 | 24 | endif |
michael@0 | 25 | |
michael@0 | 26 | ifeq (1800,$(_MSC_VER)) |
michael@0 | 27 | REDIST_FILES = \ |
michael@0 | 28 | msvcp120.dll \ |
michael@0 | 29 | msvcr120.dll \ |
michael@0 | 30 | $(NULL) |
michael@0 | 31 | endif |
michael@0 | 32 | |
michael@0 | 33 | ifdef REDIST_FILES |
michael@0 | 34 | libs-preqs = \ |
michael@0 | 35 | $(call mkdir_deps,$(FINAL_TARGET)) \ |
michael@0 | 36 | $(NULL) |
michael@0 | 37 | |
michael@0 | 38 | libs:: $(libs-preqs) |
michael@0 | 39 | install --preserve-timestamps $(foreach f,$(REDIST_FILES),'$(WIN32_REDIST_DIR)'/$(f)) $(FINAL_TARGET) |
michael@0 | 40 | endif |
michael@0 | 41 | |
michael@0 | 42 | endif # ! MOZ_DEBUG |
michael@0 | 43 | endif # WIN32_REDIST_DIR |
michael@0 | 44 | |
michael@0 | 45 | # run the binscope tool to make sure the binary and all libraries |
michael@0 | 46 | # are using all available Windows OS-level security mechanisms |
michael@0 | 47 | check:: |
michael@0 | 48 | $(PYTHON) $(srcdir)/autobinscope.py $(DIST)/bin/$(MOZ_APP_NAME)$(BIN_SUFFIX) $(DIST)/crashreporter-symbols/ |
michael@0 | 49 | $(PYTHON) $(srcdir)/autobinscope.py $(DIST)/bin/plugin-container.exe $(DIST)/crashreporter-symbols/ |