blob: 7f3bfd1cc539ea46818b5eae87bd35729bea140a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# 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
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
include $(topsrcdir)/config/rules.mk
# In a compile build, the moz.build stanzas produce a binary named
# `ChannelPrefs`. We need to produce
# `dist/bin/ChannelPrefs.framework/ChannelPrefs` for consumption by the
# build.
#
# In an artifact build, we copy upstream artifacts from
# `dist/update_framework_artifacts/ChannelPrefs-localbuild.framework`
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
libs::
rm -rf $(FINAL_TARGET)/ChannelPrefs.framework
$(NSINSTALL) -D $(FINAL_TARGET)/ChannelPrefs.framework
ifneq (,$(COMPILE_ENVIRONMENT))
$(NSINSTALL) $(FINAL_TARGET)/ChannelPrefs $(FINAL_TARGET)/ChannelPrefs.framework
endif # COMPILE_ENVIRONMENT
ifneq (,$(MOZ_ARTIFACT_BUILDS))
$(NSINSTALL) $(DIST)/update_framework_artifacts/ChannelPrefs-localbuild.framework/ChannelPrefs $(FINAL_TARGET)/ChannelPrefs.framework
endif # MOZ_ARTIFACT_BUILDS
$(NSINSTALL) $(srcdir)/Info.plist $(FINAL_TARGET)/ChannelPrefs.framework/Resources
endif # MOZ_WIDGET_TOOLKIT
|