1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_ExternalProject_ExternalProject
,zxcvbn-c
))
12 $(eval
$(call gb_Library_set_warnings_disabled
,zxcvbn-c
))
14 $(eval
$(call gb_ExternalProject_register_targets
,zxcvbn-c
,\
15 generate-dictionary-nodes \
18 $(call gb_ExternalProject_get_state_target
,zxcvbn-c
,generate-dictionary-nodes
): \
19 $(call gb_Executable_get_runtime_dependencies
,gcc-wrapper
) \
20 $(call gb_Executable_get_runtime_dependencies
,g
++-wrapper
) \
21 $(if
$(CROSS_COMPILING
),$(call gb_ExternalProject_get_target_for_build
,zxcvbn-c
))
22 $(call gb_Trace_StartRange
,zxcvbn-c
,EXTERNAL
)
23 $(call gb_ExternalProject_run
,generate-dictionary-nodes
,\
24 $(if
$(CROSS_COMPILING
),\
25 cp
$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/zxcvbn-c
/dict-src.h \
26 $(WORKDIR
)/UnpackedTarball
/zxcvbn-c
/dict-src.h \
30 CFLAGS
="$(gb_CFLAGS)" \
31 CXXFLAGS
="$(gb_CXXFLAGS)" \
32 $(if
$(filter MSC
,$(COM
)),$(gb_AUTOCONF_WRAPPERS
) )\
35 $(call gb_Trace_EndRange
,zxcvbn-c
,EXTERNAL
)
37 # vim: set noet sw=4 ts=4: