build/win32/Makefile.in
author Birunthan Mohanathas <birunthan@mohanathas.com>
Tue, 02 Feb 2016 17:42:04 +0200
changeset 282751 0fc068ae3289e1343df8771a79581942c2e027c9
parent 282750 74dd4af2ec4a9d593f0febbe1e13825c92cce0b4
child 283650 c7ce90c13ab132883ac2a934a91fa5050a5a7de8
permissions -rw-r--r--
Bug 1204202 - Package Universal CRT DLLs for VS2015. r=glandium,ehsan

# 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/.

include $(topsrcdir)/config/rules.mk

REDIST_FILES =

ifdef WIN32_REDIST_DIR
REDIST_FILES += '$(WIN32_REDIST_DIR)'/$(MSVC_C_RUNTIME_DLL)
REDIST_FILES += '$(WIN32_REDIST_DIR)'/$(MSVC_CXX_RUNTIME_DLL)
endif

ifdef WIN_UCRT_REDIST_DIR
REDIST_FILES += $(wildcard $(WIN_UCRT_REDIST_DIR)/api-ms-win-*.dll)
REDIST_FILES += '$(WIN_UCRT_REDIST_DIR)'/ucrtbase.dll
endif

ifdef REDIST_FILES
libs-preqs = \
	$(call mkdir_deps,$(FINAL_TARGET)) \
	$(NULL)

libs:: $(libs-preqs)
	install --preserve-timestamps $(REDIST_FILES) $(FINAL_TARGET)
endif

# run the binscope tool to make sure the binary and all libraries
# are using all available Windows OS-level security mechanisms
check::
	$(PYTHON) $(srcdir)/autobinscope.py $(DIST)/bin/$(MOZ_APP_NAME)$(BIN_SUFFIX) $(DIST)/crashreporter-symbols/
	$(PYTHON) $(srcdir)/autobinscope.py $(DIST)/bin/plugin-container.exe $(DIST)/crashreporter-symbols/