mirror of
https://github.com/OpenVPN/openvpn.git
synced 2025-05-08 21:25:53 +08:00
msvc: cleanup
Remove unused macros for dependency directories, since dependencies are handled by vcpkg. Remove unused .bat files. Reported-by: Frank Lichtenheld <frank@lichtenheld.com> Signed-off-by: Lev Stipakov <lev@openvpn.net> Acked-by: Frank Lichtenheld <frank@lichtenheld.com> Message-Id: <20220208114905.100-1-lstipakov@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23730.html Signed-off-by: Gert Doering <gert@greenie.muc.de> (cherry picked from commit ff5723c4ddfee28564500d28a1bd78766171ea3e)
This commit is contained in:
parent
1e573aa9b3
commit
ff335a9043
@ -66,10 +66,7 @@ dist_noinst_DATA = \
|
|||||||
PORTS \
|
PORTS \
|
||||||
README.IPv6 TODO.IPv6 \
|
README.IPv6 TODO.IPv6 \
|
||||||
README.mbedtls \
|
README.mbedtls \
|
||||||
openvpn.sln \
|
openvpn.sln
|
||||||
msvc-env.bat \
|
|
||||||
msvc-dev.bat \
|
|
||||||
msvc-build.bat
|
|
||||||
|
|
||||||
dist_noinst_HEADERS = \
|
dist_noinst_HEADERS = \
|
||||||
config-msvc.h \
|
config-msvc.h \
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
# Copyright (C) 2008-2012 Alon Bar-Lev <alon.barlev@gmail.com>
|
# Copyright (C) 2008-2012 Alon Bar-Lev <alon.barlev@gmail.com>
|
||||||
|
|
||||||
CONFIG=$(SOURCEBASE)/version.m4
|
CONFIG=$(SOLUTIONDIR)/version.m4
|
||||||
|
|
||||||
INPUT_MSVC_VER=$(SOURCEBASE)/config-msvc-version.h.in
|
INPUT_MSVC_VER=$(SOLUTIONDIR)/config-msvc-version.h.in
|
||||||
OUTPUT_MSVC_VER=$(SOURCEBASE)/config-msvc-version.h
|
OUTPUT_MSVC_VER=$(SOLUTIONDIR)/config-msvc-version.h
|
||||||
|
|
||||||
INPUT_PLUGIN=$(SOURCEBASE)/include/openvpn-plugin.h.in
|
INPUT_PLUGIN=$(SOLUTIONDIR)/include/openvpn-plugin.h.in
|
||||||
OUTPUT_PLUGIN=$(SOURCEBASE)/include/openvpn-plugin.h
|
OUTPUT_PLUGIN=$(SOLUTIONDIR)/include/openvpn-plugin.h
|
||||||
|
|
||||||
INPUT_PLUGIN_CONFIG=version.m4.in
|
INPUT_PLUGIN_CONFIG=version.m4.in
|
||||||
OUTPUT_PLUGIN_CONFIG=version.m4
|
OUTPUT_PLUGIN_CONFIG=version.m4
|
||||||
|
|
||||||
INPUT_MAN=$(SOURCEBASE)/doc/openvpn.8.rst
|
INPUT_MAN=$(SOLUTIONDIR)/doc/openvpn.8.rst
|
||||||
OUTPUT_MAN=$(SOURCEBASE)/doc/openvpn.8.html
|
OUTPUT_MAN=$(SOLUTIONDIR)/doc/openvpn.8.html
|
||||||
|
|
||||||
all: $(OUTPUT_MSVC_VER) $(OUTPUT_PLUGIN) $(OUTPUT_MAN)
|
all: $(OUTPUT_MSVC_VER) $(OUTPUT_PLUGIN) $(OUTPUT_MAN)
|
||||||
|
|
||||||
|
@ -1,50 +0,0 @@
|
|||||||
@echo off
|
|
||||||
rem Copyright (C) 2008-2012 Alon Bar-Lev <alon.barlev@gmail.com>
|
|
||||||
|
|
||||||
@rem this stupid command needed for SetEnv.cmd to operate
|
|
||||||
setlocal ENABLEDELAYEDEXPANSION
|
|
||||||
|
|
||||||
cd /d %0\..
|
|
||||||
call msvc-env.bat
|
|
||||||
|
|
||||||
set PLATFORMS=x64
|
|
||||||
set CONFIGURATIONS=Debug Release
|
|
||||||
|
|
||||||
if exist "%VCHOME%\vcvarsall.bat" (
|
|
||||||
call "%VCHOME%\vcvarsall.bat"
|
|
||||||
) else if exist "%VCHOME%\bin\vcvars32.bat" (
|
|
||||||
call "%VCHOME%\bin\vcvars32.bat"
|
|
||||||
) else if exist "%VCHOME%\Auxiliary\Build\vcvars32.bat" (
|
|
||||||
call "%VCHOME%\Auxiliary\Build\vcvars32.bat"
|
|
||||||
) else (
|
|
||||||
echo Cannot detect visual studio
|
|
||||||
goto error
|
|
||||||
)
|
|
||||||
|
|
||||||
msbuild /help > nul 2>&1
|
|
||||||
if errorlevel 1 set DO_VCBUILD=1
|
|
||||||
|
|
||||||
for %%p in (%PLATFORMS%) do (
|
|
||||||
for %%c in (%CONFIGURATIONS%) do (
|
|
||||||
rmdir /q /s %SOURCEBASE%\%%p\%%c > nul 2>&1
|
|
||||||
|
|
||||||
if "%DO_VCBUILD%" NEQ "" (
|
|
||||||
vcbuild /errfile:error.log /showenv "%SOLUTION%" /rebuild /platform:%%p "%%c|%%p"
|
|
||||||
for %%f in (error.log) do if %%~zf GTR 0 goto error
|
|
||||||
) else (
|
|
||||||
msbuild "%SOLUTION%" /p:Configuration="%%c" /p:Platform="%%p"
|
|
||||||
if errorlevel 1 goto error
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
exit /b 0
|
|
||||||
goto end
|
|
||||||
|
|
||||||
:error
|
|
||||||
exit /b 1
|
|
||||||
goto end
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
|
||||||
endlocal
|
|
28
msvc-dev.bat
28
msvc-dev.bat
@ -1,28 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
setlocal
|
|
||||||
cd /d %0\..
|
|
||||||
call msvc-env.bat
|
|
||||||
|
|
||||||
if exist "%VSHOME%\Common7\IDE\VCExpress.exe" (
|
|
||||||
set IDE=%VSHOME%\Common7\IDE\VCExpress.exe
|
|
||||||
) else if exist "%VSHOME%\Common7\IDE\devenv.exe" (
|
|
||||||
set IDE=%VSHOME%\Common7\IDE\devenv.exe
|
|
||||||
) else if exist "%VCHOME%\Auxiliary\Build\vcvars64.bat" (
|
|
||||||
call "%VCHOME%\Auxiliary\Build\vcvars64.bat"
|
|
||||||
) else (
|
|
||||||
echo "Cannot detect visual studio environment"
|
|
||||||
goto error
|
|
||||||
)
|
|
||||||
start "" "%IDE%" "%SOLUTION%"
|
|
||||||
|
|
||||||
exit /b 0
|
|
||||||
goto end
|
|
||||||
|
|
||||||
:error
|
|
||||||
exit /b 1
|
|
||||||
goto end
|
|
||||||
|
|
||||||
:end
|
|
||||||
|
|
||||||
endlocal
|
|
30
msvc-env.bat
30
msvc-env.bat
@ -1,30 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
rem Put your own settings at msvc-env-local.bat
|
|
||||||
if exist msvc-env-local.bat call msvc-env-local.bat
|
|
||||||
|
|
||||||
if "%ProgramFiles(x86)%"=="" set ProgramFiles(x86)=%ProgramFiles%
|
|
||||||
if "%VSCOMNTOOLS%"=="" set VSCOMNTOOLS=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\Common7\Tools
|
|
||||||
if not exist "%VSCOMNTOOLS%" set VSCOMNTOOLS=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools
|
|
||||||
if "%VSHOME%"=="" SET VSHOME=%VSCOMNTOOLS%\..\..
|
|
||||||
if "%VCHOME%"=="" SET VCHOME=%VSHOME%\VC
|
|
||||||
|
|
||||||
set SOURCEBASE=%cd%
|
|
||||||
set SOLUTION=openvpn.sln
|
|
||||||
set CPPFLAGS=%CPPFLAGS%;_CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS
|
|
||||||
set CPPFLAGS=%CPPFLAGS%;NTDDI_VERSION=NTDDI_VISTA;_WIN32_WINNT=_WIN32_WINNT_VISTA
|
|
||||||
set CPPFLAGS=%CPPFLAGS%;
|
|
||||||
set CPPFLAGS=%CPPFLAGS%;%EXTRA_CPPFLAGS%
|
|
||||||
|
|
||||||
if exist config-msvc-local.h set CPPFLAGS="%CPPFLAGS%;HAVE_CONFIG_MSVC_LOCAL_H"
|
|
||||||
|
|
||||||
if "%OPENVPN_DEPROOT%" == "" set OPENVPN_DEPROOT=c:\Temp\openvpn-deps
|
|
||||||
if "%OPENSSL_HOME%" == "" set OPENSSL_HOME=%OPENVPN_DEPROOT%
|
|
||||||
if "%LZO_HOME%" == "" set LZO_HOME=%OPENVPN_DEPROOT%
|
|
||||||
if "%PKCS11H_HOME%" == "" set PKCS11H_HOME=%OPENVPN_DEPROOT%
|
|
||||||
if "%TAP_WINDOWS_HOME%" == "" set TAP_WINDOWS_HOME=%OPENVPN_DEPROOT%
|
|
||||||
|
|
||||||
if not exist "%OPENSSL_HOME%" echo WARNING: openssl '%OPENSSL_HOME%' does not exist
|
|
||||||
if not exist "%LZO_HOME%" echo WARNING: lzo '%LZO_HOME%' does not exist
|
|
||||||
if not exist "%PKCS11H_HOME%" echo WARNING: pkcs11-helper '%PKCS11H_HOME%' does not exist
|
|
||||||
if not exist "%TAP_WINDOWS_HOME%" echo WARNING: tap-windows '%TAP_WINDOWS_HOME%' does not exist
|
|
@ -1,14 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ImportGroup Label="PropertySheets" />
|
<ImportGroup Label="PropertySheets" />
|
||||||
<PropertyGroup Label="UserMacros">
|
<PropertyGroup Label="UserMacros" />
|
||||||
<SOURCEBASE>$(SolutionDir)</SOURCEBASE>
|
|
||||||
<OPENVPN_DEPROOT>$(SOURCEBASE)\..\openvpn-build\msvc\image$(PlatformArchitecture)</OPENVPN_DEPROOT>
|
|
||||||
<OPENSSL_HOME>$(OPENVPN_DEPROOT)</OPENSSL_HOME>
|
|
||||||
<TAP_WINDOWS_HOME>$(OPENVPN_DEPROOT)</TAP_WINDOWS_HOME>
|
|
||||||
<LZO_HOME>$(OPENVPN_DEPROOT)</LZO_HOME>
|
|
||||||
<PKCS11H_HOME>$(OPENVPN_DEPROOT)</PKCS11H_HOME>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutDir>$(SolutionDir)$(Platform)-Output\$(Configuration)\</OutDir>
|
<OutDir>$(SolutionDir)$(Platform)-Output\$(Configuration)\</OutDir>
|
||||||
<_PropertySheetDisplayName>compat</_PropertySheetDisplayName>
|
<_PropertySheetDisplayName>compat</_PropertySheetDisplayName>
|
||||||
@ -17,38 +10,19 @@
|
|||||||
<ClCompile>
|
<ClCompile>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<PreprocessorDefinitions>WIN32;$(CPPFLAGS);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;$(CPPFLAGS);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<AdditionalIncludeDirectories>$(SOURCEBASE);$(SOURCEBASE)/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir);$(SolutionDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
</Link>
|
</Link>
|
||||||
|
<ResourceCompile />
|
||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<AdditionalIncludeDirectories>$(SOURCEBASE);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SOLUTIONDIR)</AdditionalIncludeDirectories>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<BuildMacro Include="SOURCEBASE">
|
<BuildMacro Include="SOLUTIONDIR">
|
||||||
<Value>$(SOURCEBASE)</Value>
|
<Value>$(SOLUTIONDIR)</Value>
|
||||||
<EnvironmentVariable>true</EnvironmentVariable>
|
|
||||||
</BuildMacro>
|
|
||||||
<BuildMacro Include="OPENVPN_DEPROOT">
|
|
||||||
<Value>$(OPENVPN_DEPROOT)</Value>
|
|
||||||
<EnvironmentVariable>true</EnvironmentVariable>
|
|
||||||
</BuildMacro>
|
|
||||||
<BuildMacro Include="OPENSSL_HOME">
|
|
||||||
<Value>$(OPENSSL_HOME)</Value>
|
|
||||||
<EnvironmentVariable>true</EnvironmentVariable>
|
|
||||||
</BuildMacro>
|
|
||||||
<BuildMacro Include="TAP_WINDOWS_HOME">
|
|
||||||
<Value>$(TAP_WINDOWS_HOME)</Value>
|
|
||||||
<EnvironmentVariable>true</EnvironmentVariable>
|
|
||||||
</BuildMacro>
|
|
||||||
<BuildMacro Include="LZO_HOME">
|
|
||||||
<Value>$(LZO_HOME)</Value>
|
|
||||||
<EnvironmentVariable>true</EnvironmentVariable>
|
|
||||||
</BuildMacro>
|
|
||||||
<BuildMacro Include="PKCS11H_HOME">
|
|
||||||
<Value>$(PKCS11H_HOME)</Value>
|
|
||||||
<EnvironmentVariable>true</EnvironmentVariable>
|
<EnvironmentVariable>true</EnvironmentVariable>
|
||||||
</BuildMacro>
|
</BuildMacro>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -151,7 +151,7 @@
|
|||||||
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
|
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
|
||||||
<WarningLevel>Level2</WarningLevel>
|
<WarningLevel>Level2</WarningLevel>
|
||||||
<TreatWarningAsError>true</TreatWarningAsError>
|
<TreatWarningAsError>true</TreatWarningAsError>
|
||||||
<AdditionalIncludeDirectories>..\compat;$(SolutionDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile />
|
<ResourceCompile />
|
||||||
<Link>
|
<Link>
|
||||||
@ -166,7 +166,7 @@
|
|||||||
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
|
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
|
||||||
<WarningLevel>Level2</WarningLevel>
|
<WarningLevel>Level2</WarningLevel>
|
||||||
<TreatWarningAsError>true</TreatWarningAsError>
|
<TreatWarningAsError>true</TreatWarningAsError>
|
||||||
<AdditionalIncludeDirectories>..\compat;$(SolutionDir)include;$(SolutionDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile />
|
<ResourceCompile />
|
||||||
<Link>
|
<Link>
|
||||||
@ -181,7 +181,7 @@
|
|||||||
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
|
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
|
||||||
<WarningLevel>Level2</WarningLevel>
|
<WarningLevel>Level2</WarningLevel>
|
||||||
<TreatWarningAsError>true</TreatWarningAsError>
|
<TreatWarningAsError>true</TreatWarningAsError>
|
||||||
<AdditionalIncludeDirectories>..\compat;$(SolutionDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile />
|
<ResourceCompile />
|
||||||
<Link>
|
<Link>
|
||||||
@ -196,7 +196,7 @@
|
|||||||
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
|
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
|
||||||
<WarningLevel>Level2</WarningLevel>
|
<WarningLevel>Level2</WarningLevel>
|
||||||
<TreatWarningAsError>true</TreatWarningAsError>
|
<TreatWarningAsError>true</TreatWarningAsError>
|
||||||
<AdditionalIncludeDirectories>..\compat;$(SolutionDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<ControlFlowGuard>Guard</ControlFlowGuard>
|
<ControlFlowGuard>Guard</ControlFlowGuard>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile />
|
<ResourceCompile />
|
||||||
@ -212,7 +212,7 @@
|
|||||||
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
|
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
|
||||||
<WarningLevel>Level2</WarningLevel>
|
<WarningLevel>Level2</WarningLevel>
|
||||||
<TreatWarningAsError>true</TreatWarningAsError>
|
<TreatWarningAsError>true</TreatWarningAsError>
|
||||||
<AdditionalIncludeDirectories>..\compat;$(SolutionDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<ControlFlowGuard>Guard</ControlFlowGuard>
|
<ControlFlowGuard>Guard</ControlFlowGuard>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile />
|
<ResourceCompile />
|
||||||
@ -228,7 +228,7 @@
|
|||||||
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
|
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
|
||||||
<WarningLevel>Level2</WarningLevel>
|
<WarningLevel>Level2</WarningLevel>
|
||||||
<TreatWarningAsError>true</TreatWarningAsError>
|
<TreatWarningAsError>true</TreatWarningAsError>
|
||||||
<AdditionalIncludeDirectories>..\compat;$(SolutionDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<ControlFlowGuard>Guard</ControlFlowGuard>
|
<ControlFlowGuard>Guard</ControlFlowGuard>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile />
|
<ResourceCompile />
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<AdditionalIncludeDirectories>..\compat;$(TAP_WINDOWS_HOME)/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions>_WIN32_WINNT=_WIN32_WINNT_VISTA;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_WIN32_WINNT=_WIN32_WINNT_VISTA;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user