1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
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
,twain_dsm
))
12 $(eval
$(call gb_ExternalProject_use_unpacked
,twain_dsm
,twain_dsm
))
14 $(eval
$(call gb_ExternalProject_register_targets
,twain_dsm
,\
20 $(call gb_ExternalProject_get_state_target
,twain_dsm
,build
) :
21 $(call gb_ExternalProject_run
,build
,\
22 MSBuild.exe visual_studio
/TWAIN_DSM_VS2015.sln
/t
:Build \
23 /p
:Configuration
=$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
) \
24 /p
:Platform
=$(if
$(filter INTEL
,$(CPUNAME
)),Win32
,x64
) \
25 /p
:OutDir
=..
/PCBuild
/out
/ /p
:IntDir
=..
/PCBuild
/obj
/ \
26 $(if
$(filter 140,$(VCVER
)),/p
:PlatformToolset
=v140
/p
:VisualStudioVersion
=14.0 /ToolsVersion
:14.0) \
27 $(if
$(filter 150,$(VCVER
)),/p
:PlatformToolset
=v141
/p
:VisualStudioVersion
=15.0 /ToolsVersion
:15.0) \
28 $(if
$(filter 150-10,$(VCVER
)-$(WINDOWS_SDK_VERSION
)),/p
:WindowsTargetPlatformVersion
=$(UCRTVERSION
)) \
33 # vim: set noet sw=4 ts=4: