Bump version to 24.04.3.4
[LibreOffice.git] / external / argon2 / ExternalProject_argon2.mk
blob7e521096af22e3936b7ef4966a17a583f3abe035
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,argon2))
12 $(eval $(call gb_ExternalProject_register_targets,argon2,\
13 build \
16 ifeq ($(COM),MSC)
18 # .vcxproj needs manual SolutionDir to find header; there is a .sln file but it
19 # expects "x86" where we pass "Win32"
21 $(call gb_ExternalProject_get_state_target,argon2,build):
22 $(call gb_Trace_StartRange,argon2,EXTERNAL)
23 $(call gb_ExternalProject_run,build,\
24 MSBuild.exe vs2015/Argon2OptDll/Argon2OptDll.vcxproj \
25 /p:SolutionDir="$(call gb_UnpackedTarball_get_dir,argon2)/" \
26 $(gb_MSBUILD_CONFIG_AND_PLATFORM) \
27 /p:PlatformToolset=$(VCTOOLSET) /p:VisualStudioVersion=$(VCVER) /ToolsVersion:Current \
28 $(if $(filter 10,$(WINDOWS_SDK_VERSION)),/p:WindowsTargetPlatformVersion=$(UCRTVERSION)) \
29 && MSBuild.exe vs2015/Argon2OptTestCI/Argon2OptTestCI.vcxproj \
30 /p:SolutionDir="$(call gb_UnpackedTarball_get_dir,argon2)/" \
31 $(gb_MSBUILD_CONFIG_AND_PLATFORM) \
32 /p:PlatformToolset=$(VCTOOLSET) /p:VisualStudioVersion=$(VCVER) /ToolsVersion:Current \
33 $(if $(filter 10,$(WINDOWS_SDK_VERSION)),/p:WindowsTargetPlatformVersion=$(UCRTVERSION)) \
34 $(if $(CROSS_COMPILING),,&& vs2015/build/Argon2OptTestCI.exe) \
36 $(call gb_Trace_EndRange,argon2,EXTERNAL)
38 else # $(COM)
40 # clear MAKEFILES because Makefile relies on built-in rules
42 $(call gb_ExternalProject_get_state_target,argon2,build):
43 $(call gb_Trace_StartRange,argon2,EXTERNAL)
44 $(call gb_ExternalProject_run,build,\
45 CFLAGS="$(CFLAGS) $(if $(filter-out WNT MACOSX,$(OS)),-fvisibility=hidden) -fPIC" \
46 MAKEFLAGS= $(MAKE) \
47 OPTTARGET=$(if $(filter X86_64,$(CPUNAME)),x86-64,forcefail) \
48 $(if $(CROSS_COMPILING),,&& $(MAKE) test) \
50 $(call gb_Trace_EndRange,argon2,EXTERNAL)
52 endif # $(COM)
54 # vim: set noet sw=4 ts=4: