third_party/Makefile.in
author Rob Lemley <rob@thunderbird.net>
Mon, 16 Mar 2020 18:59:32 -0400
changeset 38498 d3be91942e370b708a1ff63bab301528ff4bbd44
parent 38341 e0e05018f705af08c3b98472483c02c69d25d9ec
permissions -rw-r--r--
Bug 1620888: Follow-up: Bustage fix for l10n repacks on win64. rs=bustage-fix DONTBUILD

# 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 $(moztopsrcdir)/config/config.mk
include $(moztopsrcdir)/config/rules.mk

print-%: ; @echo $* is $($*)
origin-%: ; @echo $* origin $(origin $*)

ifdef TB_LIBOTR_PREBUILT

ifeq (WINNT,$(OS_ARCH))
ifdef HAVE_64BIT_BUILD
OTR_LIBS := libgpg-error6-0.dll
else
OTR_LIBS := libgpg-error-0.dll
endif
OTR_LIBS += libgcrypt-20.dll \
	libotr-5.dll \
	libssp-0.dll
endif

ifeq (Darwin,$(OS_ARCH))
OTR_LIBS := libotr.5.dylib
endif

ifeq (Linux,$(OS_ARCH))
OTR_LIBS := libotr.so.5
endif

OTR_LIB_PATHS := $(foreach otrlib,$(OTR_LIBS),$(TB_LIBOTR_PREBUILT)/$(otrlib))

libs:: $(OTR_LIB_PATHS)
	$(NSINSTALL) -t -m 755 $(OTR_LIB_PATHS) $(DIST)/bin

endif   ## TB_LIBOTR_PREBUILT