mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-24 21:33:09 +09:00
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
# 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/.
|
|
|
|
dist_dest = $(DIST)/$(MOZ_MACBUNDLE_NAME)
|
|
|
|
# hardcode en-US for the moment
|
|
AB_CD = en-US
|
|
|
|
# Build a binary bootstrapping with XRE_main
|
|
|
|
ifndef MOZ_WINCONSOLE
|
|
ifneq (,$(MOZ_DEBUG)$(MOZ_ASAN))
|
|
MOZ_WINCONSOLE = 1
|
|
else
|
|
MOZ_WINCONSOLE = 0
|
|
endif
|
|
endif
|
|
|
|
# This switches $(INSTALL) to copy mode, like $(SYSINSTALL), so things that
|
|
# shouldn't get 755 perms need $(IFLAGS1) for either way of calling nsinstall.
|
|
NSDISTMODE = copy
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
# Rebuild basilisk.exe if the manifest changes - it's included by splash.rc.
|
|
# (this dependency should really be just for basilisk.exe, not other targets)
|
|
# Note the manifest file exists in the tree, so we use the explicit filename
|
|
# here.
|
|
EXTRA_DEPS += basilisk.exe.manifest
|
|
endif
|
|
|
|
PROGRAMS_DEST = $(DIST)/bin
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
ifneq (,$(filter-out WINNT,$(OS_ARCH)))
|
|
|
|
ifdef COMPILE_ENVIRONMENT
|
|
libs::
|
|
cp -p $(MOZ_APP_NAME)$(BIN_SUFFIX) $(DIST)/bin/$(MOZ_APP_NAME)-bin$(BIN_SUFFIX)
|
|
endif
|
|
|
|
GARBAGE += $(addprefix $(FINAL_TARGET)/defaults/pref/, basilisk.js)
|
|
|
|
endif
|
|
|
|
# channel-prefs.js is handled separate from other prefs due to bug 756325
|
|
libs:: $(srcdir)/profile/channel-prefs.js
|
|
$(NSINSTALL) -D $(DIST)/bin/defaults/pref
|
|
$(call py_action,preprocessor,-Fsubstitution $(PREF_PPFLAGS) $(ACDEFINES) $^ -o $(DIST)/bin/defaults/pref/channel-prefs.js)
|