diff --git a/build.rs b/build.rs index 9625f2e561..6f4a16e42b 100644 --- a/build.rs +++ b/build.rs @@ -135,6 +135,8 @@ fn build_c_code(out_dir: &str) -> Result<(), std::env::VarError> { format!("/p:Configuration={}", configuration), format!("/p:OutRootDir={}/", out_dir), ]; + + println!("cargo:rustc-link-lib=static={}-asm", LIB_NAME); } if !std::process::Command::new(command_name) diff --git a/crypto/libring-asm.Windows.vcxproj b/crypto/libring-asm.Windows.vcxproj new file mode 100644 index 0000000000..a6ab277e23 --- /dev/null +++ b/crypto/libring-asm.Windows.vcxproj @@ -0,0 +1,60 @@ + + + + {5A09BA1C-748F-40A2-B7F0-8108A08FE6A8} + libring-asm.Windows + ring-asm + + + StaticLibrary + + + + + + $(OutRootDir)lib\ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sha/asm/sha-x86_64.pl + + + sha/asm/sha-x86_64.pl + + + + + %(AdditionalIncludeDirectories);..\include + _LIB;%(PreprocessorDefinitions) + + + + + diff --git a/crypto/libring.Windows.vcxproj b/crypto/libring.Windows.vcxproj index dccb30f7af..70715c74cb 100644 --- a/crypto/libring.Windows.vcxproj +++ b/crypto/libring.Windows.vcxproj @@ -1,5 +1,5 @@  - {F4C0A1B6-5E09-41C8-8242-3E1F6762FB18} @@ -64,41 +64,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sha/asm/sha-x86_64.pl - - - sha/asm/sha-x86_64.pl - - %(AdditionalIncludeDirectories);..\include @@ -106,7 +71,4 @@ - - - - \ No newline at end of file + diff --git a/ring.sln b/ring.sln index 27f453c9f5..382768c451 100644 --- a/ring.sln +++ b/ring.sln @@ -5,7 +5,9 @@ VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 12.0.21005.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libring.Windows", "crypto\libring.Windows.vcxproj", "{F4C0A1B6-5E09-41C8-8242-3E1F6762FB18}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libring-test.Windows", "crypto\libring-test.Windows.vcxproj", "{1DACE503-6498-492D-B1FF-F9EE18624443}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libring-asm.Windows", "crypto\libring-asm.Windows.vcxproj", "{5A09BA1C-748F-40A2-B7F0-8108A08FE6A8}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libtest.Windows", "crypto\libring-test.Windows.vcxproj", "{1DACE503-6498-492D-B1FF-F9EE18624443}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -31,6 +33,14 @@ Global {1DACE503-6498-492D-B1FF-F9EE18624443}.Release|Win32.Build.0 = Release|Win32 {1DACE503-6498-492D-B1FF-F9EE18624443}.Release|x64.ActiveCfg = Release|x64 {1DACE503-6498-492D-B1FF-F9EE18624443}.Release|x64.Build.0 = Release|x64 + {5A09BA1C-748F-40A2-B7F0-8108A08FE6A8}.Debug|Win32.ActiveCfg = Debug|Win32 + {5A09BA1C-748F-40A2-B7F0-8108A08FE6A8}.Debug|Win32.Build.0 = Debug|Win32 + {5A09BA1C-748F-40A2-B7F0-8108A08FE6A8}.Debug|x64.ActiveCfg = Debug|x64 + {5A09BA1C-748F-40A2-B7F0-8108A08FE6A8}.Debug|x64.Build.0 = Debug|x64 + {5A09BA1C-748F-40A2-B7F0-8108A08FE6A8}.Release|Win32.ActiveCfg = Release|Win32 + {5A09BA1C-748F-40A2-B7F0-8108A08FE6A8}.Release|Win32.Build.0 = Release|Win32 + {5A09BA1C-748F-40A2-B7F0-8108A08FE6A8}.Release|x64.ActiveCfg = Release|x64 + {5A09BA1C-748F-40A2-B7F0-8108A08FE6A8}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE