Source code
Revision control
Copy as Markdown
Other Tools
# vim:set ts=8 sw=8 sts=8 noet:
# 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
include $(topsrcdir)/config/rules.mk
# In a compile build, the moz.build stanzas produce a binary named
# `UpdateSettings-localbuild`. We need to produce
# `dist/update_framework_artifacts/UpdateSettings-localbuild.framework/UpdateSettings`
# for consumption by artifact builds.
#
# In an artifact build, we already have upstream artifacts in
# `dist/update_framework_artifacts/UpdateSettings-localbuild.framework`.
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
libs::
ifneq (,$(COMPILE_ENVIRONMENT))
rm -rf $(FINAL_TARGET)/UpdateSettings-localbuild.framework
$(NSINSTALL) -D $(FINAL_TARGET)/UpdateSettings-localbuild.framework
cp $(FINAL_TARGET)/UpdateSettings-localbuild UpdateSettings
$(NSINSTALL) UpdateSettings $(FINAL_TARGET)/UpdateSettings-localbuild.framework
endif # COMPILE_ENVIRONMENT
$(NSINSTALL) $(srcdir)/../UpdateSettings/Info.plist $(FINAL_TARGET)/UpdateSettings-localbuild.framework/Resources
endif # MOZ_WIDGET_TOOLKIT