mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-24 19:43:32 +00:00
Merge pull request #6890 from daverodgman/vs2013
Update paths and VS solution file to VS2013
This commit is contained in:
commit
656a81ecf8
4
ChangeLog.d/vs2013.txt
Normal file
4
ChangeLog.d/vs2013.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Changes
|
||||||
|
* Visual Studio: Rename the directory containing Visual Studio files from
|
||||||
|
visualc/VS2010 to visualc/VS2013 as we do not support building with versions
|
||||||
|
older than 2013. Update the solution file to specify VS2013 as a minimum.
|
14
Makefile
14
Makefile
@ -37,7 +37,7 @@ generated_files: tests/generated_files
|
|||||||
generated_files: visualc_files
|
generated_files: visualc_files
|
||||||
|
|
||||||
.PHONY: visualc_files
|
.PHONY: visualc_files
|
||||||
VISUALC_FILES = visualc/VS2010/mbedTLS.sln visualc/VS2010/mbedTLS.vcxproj
|
VISUALC_FILES = visualc/VS2013/mbedTLS.sln visualc/VS2013/mbedTLS.vcxproj
|
||||||
# TODO: $(app).vcxproj for each $(app) in programs/
|
# TODO: $(app).vcxproj for each $(app) in programs/
|
||||||
visualc_files: $(VISUALC_FILES)
|
visualc_files: $(VISUALC_FILES)
|
||||||
|
|
||||||
@ -46,9 +46,9 @@ visualc_files: $(VISUALC_FILES)
|
|||||||
# they just need to be present.
|
# they just need to be present.
|
||||||
$(VISUALC_FILES): | library/generated_files
|
$(VISUALC_FILES): | library/generated_files
|
||||||
$(VISUALC_FILES): scripts/generate_visualc_files.pl
|
$(VISUALC_FILES): scripts/generate_visualc_files.pl
|
||||||
$(VISUALC_FILES): scripts/data_files/vs2010-app-template.vcxproj
|
$(VISUALC_FILES): scripts/data_files/vs2013-app-template.vcxproj
|
||||||
$(VISUALC_FILES): scripts/data_files/vs2010-main-template.vcxproj
|
$(VISUALC_FILES): scripts/data_files/vs2013-main-template.vcxproj
|
||||||
$(VISUALC_FILES): scripts/data_files/vs2010-sln-template.sln
|
$(VISUALC_FILES): scripts/data_files/vs2013-sln-template.sln
|
||||||
# TODO: also the list of .c and .h source files, but not their content
|
# TODO: also the list of .c and .h source files, but not their content
|
||||||
$(VISUALC_FILES):
|
$(VISUALC_FILES):
|
||||||
echo " Gen $@ ..."
|
echo " Gen $@ ..."
|
||||||
@ -124,10 +124,10 @@ neat: clean_more_on_top
|
|||||||
$(MAKE) -C programs neat
|
$(MAKE) -C programs neat
|
||||||
$(MAKE) -C tests neat
|
$(MAKE) -C tests neat
|
||||||
ifndef WINDOWS
|
ifndef WINDOWS
|
||||||
rm -f visualc/VS2010/*.vcxproj visualc/VS2010/mbedTLS.sln
|
rm -f visualc/VS2013/*.vcxproj visualc/VS2013/mbedTLS.sln
|
||||||
else
|
else
|
||||||
if exist visualc\VS2010\*.vcxproj del /Q /F visualc\VS2010\*.vcxproj
|
if exist visualc\VS2013\*.vcxproj del /Q /F visualc\VS2013\*.vcxproj
|
||||||
if exist visualc\VS2010\mbedTLS.sln del /Q /F visualc\VS2010\mbedTLS.sln
|
if exist visualc\VS2013\mbedTLS.sln del /Q /F visualc\VS2013\mbedTLS.sln
|
||||||
endif
|
endif
|
||||||
|
|
||||||
check: lib tests
|
check: lib tests
|
||||||
|
@ -220,7 +220,7 @@ subproject.
|
|||||||
|
|
||||||
### Microsoft Visual Studio
|
### Microsoft Visual Studio
|
||||||
|
|
||||||
The build files for Microsoft Visual Studio are generated for Visual Studio 2010.
|
The build files for Microsoft Visual Studio are generated for Visual Studio 2013.
|
||||||
|
|
||||||
The solution file `mbedTLS.sln` contains all the basic projects needed to build the library and all the programs. The files in tests are not generated and compiled, as these need Python and perl environments as well. However, the selftest program in `programs/test/` is still available.
|
The solution file `mbedTLS.sln` contains all the basic projects needed to build the library and all the programs. The files in tests are not generated and compiled, as these need Python and perl environments as well. However, the selftest program in `programs/test/` is still available.
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual C++ Express 2010
|
# Visual Studio 2013
|
||||||
|
VisualStudioVersion = 12.0.31101.0
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mbedTLS", "mbedTLS.vcxproj", "{46CF2D25-6A36-4189-B59C-E4815388E554}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mbedTLS", "mbedTLS.vcxproj", "{46CF2D25-6A36-4189-B59C-E4815388E554}"
|
||||||
EndProject
|
EndProject
|
||||||
APP_ENTRIES
|
APP_ENTRIES
|
@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# Generate main file, individual apps and solution files for MS Visual Studio
|
# Generate main file, individual apps and solution files for
|
||||||
# 2010
|
# MS Visual Studio 2013
|
||||||
#
|
#
|
||||||
# Must be run from mbedTLS root or scripts directory.
|
# Must be run from Mbed TLS root or scripts directory.
|
||||||
# Takes no argument.
|
# Takes no argument.
|
||||||
#
|
#
|
||||||
# Copyright The Mbed TLS Contributors
|
# Copyright The Mbed TLS Contributors
|
||||||
@ -25,12 +25,12 @@ use warnings;
|
|||||||
use strict;
|
use strict;
|
||||||
use Digest::MD5 'md5_hex';
|
use Digest::MD5 'md5_hex';
|
||||||
|
|
||||||
my $vsx_dir = "visualc/VS2010";
|
my $vsx_dir = "visualc/VS2013";
|
||||||
my $vsx_ext = "vcxproj";
|
my $vsx_ext = "vcxproj";
|
||||||
my $vsx_app_tpl_file = "scripts/data_files/vs2010-app-template.$vsx_ext";
|
my $vsx_app_tpl_file = "scripts/data_files/vs2013-app-template.$vsx_ext";
|
||||||
my $vsx_main_tpl_file = "scripts/data_files/vs2010-main-template.$vsx_ext";
|
my $vsx_main_tpl_file = "scripts/data_files/vs2013-main-template.$vsx_ext";
|
||||||
my $vsx_main_file = "$vsx_dir/mbedTLS.$vsx_ext";
|
my $vsx_main_file = "$vsx_dir/mbedTLS.$vsx_ext";
|
||||||
my $vsx_sln_tpl_file = "scripts/data_files/vs2010-sln-template.sln";
|
my $vsx_sln_tpl_file = "scripts/data_files/vs2013-sln-template.sln";
|
||||||
my $vsx_sln_file = "$vsx_dir/mbedTLS.sln";
|
my $vsx_sln_file = "$vsx_dir/mbedTLS.sln";
|
||||||
|
|
||||||
my $programs_dir = 'programs';
|
my $programs_dir = 'programs';
|
||||||
@ -58,7 +58,7 @@ my @include_directories = qw(
|
|||||||
include
|
include
|
||||||
3rdparty/everest/include/
|
3rdparty/everest/include/
|
||||||
3rdparty/everest/include/everest
|
3rdparty/everest/include/everest
|
||||||
3rdparty/everest/include/everest/vs2010
|
3rdparty/everest/include/everest/vs2013
|
||||||
3rdparty/everest/include/everest/kremlib
|
3rdparty/everest/include/everest/kremlib
|
||||||
tests/include
|
tests/include
|
||||||
);
|
);
|
||||||
@ -256,7 +256,7 @@ sub del_vsx_files {
|
|||||||
sub main {
|
sub main {
|
||||||
if( ! check_dirs() ) {
|
if( ! check_dirs() ) {
|
||||||
chdir '..' or die;
|
chdir '..' or die;
|
||||||
check_dirs or die "Must but run from mbedTLS root or scripts dir\n";
|
check_dirs or die "Must be run from Mbed TLS root or scripts dir\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Remove old files to ensure that, for example, project files from deleted
|
# Remove old files to ensure that, for example, project files from deleted
|
||||||
|
@ -14,7 +14,7 @@ if not "%~1"=="" set "retarget=,PlatformToolset=%1"
|
|||||||
@rem vcvarsall.bat will silently change the directory to that directory.
|
@rem vcvarsall.bat will silently change the directory to that directory.
|
||||||
@rem Setting the VSCMD_START_DIR environment variable causes it to change
|
@rem Setting the VSCMD_START_DIR environment variable causes it to change
|
||||||
@rem to that directory instead.
|
@rem to that directory instead.
|
||||||
set "VSCMD_START_DIR=%~dp0\..\visualc\VS2010"
|
set "VSCMD_START_DIR=%~dp0\..\visualc\VS2013"
|
||||||
|
|
||||||
"%vcvarsall%" x64 && ^
|
"%vcvarsall%" x64 && ^
|
||||||
msbuild /t:Rebuild /p:Configuration=%cfg%%retarget% /m mbedTLS.sln
|
msbuild /t:Rebuild /p:Configuration=%cfg%%retarget% /m mbedTLS.sln
|
||||||
|
@ -134,7 +134,7 @@ check scripts/generate_ssl_debug_helpers.py library/ssl_debug_helpers_generated.
|
|||||||
# generate_visualc_files enumerates source files (library/*.c). It doesn't
|
# generate_visualc_files enumerates source files (library/*.c). It doesn't
|
||||||
# care about their content, but the files must exist. So it must run after
|
# care about their content, but the files must exist. So it must run after
|
||||||
# the step that creates or updates these files.
|
# the step that creates or updates these files.
|
||||||
check scripts/generate_visualc_files.pl visualc/VS2010
|
check scripts/generate_visualc_files.pl visualc/VS2013
|
||||||
check scripts/generate_psa_constants.py programs/psa/psa_constant_names_generated.c
|
check scripts/generate_psa_constants.py programs/psa/psa_constant_names_generated.c
|
||||||
check tests/scripts/generate_bignum_tests.py $(tests/scripts/generate_bignum_tests.py --list)
|
check tests/scripts/generate_bignum_tests.py $(tests/scripts/generate_bignum_tests.py --list)
|
||||||
check tests/scripts/generate_psa_tests.py $(tests/scripts/generate_psa_tests.py --list)
|
check tests/scripts/generate_psa_tests.py $(tests/scripts/generate_psa_tests.py --list)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user