office-gobmx/external/zxcvbn-c/ExternalProject_zxcvbn-c.mk
Thorsten Behrens cfd333f13f zxcvbn-c: disable warnings
Change-Id: I348dc5f92f41fc3e8c1aee8743d5e1cf86fa3bbb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161259
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-12-24 00:29:50 +01:00

37 lines
1.3 KiB
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*-
#
# This file is part of the LibreOffice project.
#
# 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/.
#
$(eval $(call gb_ExternalProject_ExternalProject,zxcvbn-c))
$(eval $(call gb_Library_set_warnings_disabled,zxcvbn-c))
$(eval $(call gb_ExternalProject_register_targets,zxcvbn-c,\
generate-dictionary-nodes \
))
$(call gb_ExternalProject_get_state_target,zxcvbn-c,generate-dictionary-nodes): \
$(call gb_Executable_get_runtime_dependencies,gcc-wrapper) \
$(call gb_Executable_get_runtime_dependencies,g++-wrapper) \
$(if $(CROSS_COMPILING),$(call gb_ExternalProject_get_target_for_build,zxcvbn-c))
$(call gb_Trace_StartRange,zxcvbn-c,EXTERNAL)
$(call gb_ExternalProject_run,generate-dictionary-nodes,\
$(if $(CROSS_COMPILING),\
cp $(WORKDIR_FOR_BUILD)/UnpackedTarball/zxcvbn-c/dict-src.h \
$(WORKDIR)/UnpackedTarball/zxcvbn-c/dict-src.h \
,\
$(MAKE) dict-src.h \
AR="$(gb_AR)" \
CFLAGS="$(gb_CFLAGS)" \
CXXFLAGS="$(gb_CXXFLAGS)" \
$(if $(filter MSC,$(COM)),$(gb_AUTOCONF_WRAPPERS) )\
)\
)
$(call gb_Trace_EndRange,zxcvbn-c,EXTERNAL)
# vim: set noet sw=4 ts=4: