Skip to content

Commit

Permalink
Add nuspec, change C++ runtime library to static
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiusTheBest committed Jul 6, 2022
1 parent 263f9a5 commit 3e140ba
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMake/DefaultCXX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if(MSVC)
create_property_reader("DEFAULT_CXX_EXCEPTION_HANDLING")
create_property_reader("DEFAULT_CXX_DEBUG_INFORMATION_FORMAT")

set_target_properties("${PROPS_TARGET}" PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
set_target_properties("${PROPS_TARGET}" PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
set_config_specific_property("DEFAULT_CXX_EXCEPTION_HANDLING" "/EHsc")
set_config_specific_property("DEFAULT_CXX_DEBUG_INFORMATION_FORMAT" "/Zi")
endif()
33 changes: 33 additions & 0 deletions shapedbyiris.aec3.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>shapedbyiris.aec3</id>
<version>$version$</version>
<description>AEC3 Extracted From WebRTC</description>
<authors>WebRTC</authors>
<projectUrl>https://github.com/shapedbyiris/AEC3</projectUrl>
<license type="expression">BSD-3-Clause</license>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>native log eac3 audio c++ cpp</tags>
<repository type="git" url="https://github.com/shapedbyiris/AEC3" />
<dependencies>
<group targetFramework="native0.0" />
</dependencies>
</metadata>
<files>
<file src="**/*.h" exclude="android/**;demo/**" target="/lib/native/include" />
<file src="output/Windows/Release_x64/AEC3.lib" target="/lib/native/x64-Release" />
<file src="output/Windows/Release_x64/AEC3.pdb" target="/lib/native/x64-Release" />
<file src="output/Windows/Release_x64/api.lib" target="/lib/native/x64-Release" />
<file src="output/Windows/Release_x64/api.pdb" target="/lib/native/x64-Release" />
<file src="output/Windows/Release_x64/base.lib" target="/lib/native/x64-Release" />
<file src="output/Windows/Release_x64/base.pdb" target="/lib/native/x64-Release" />
<file src="output/Windows/Debug_x64/AEC3.lib" target="/lib/native/x64-Debug" />
<file src="output/Windows/Debug_x64/AEC3.pdb" target="/lib/native/x64-Debug" />
<file src="output/Windows/Debug_x64/api.lib" target="/lib/native/x64-Debug" />
<file src="output/Windows/Debug_x64/api.pdb" target="/lib/native/x64-Debug" />
<file src="output/Windows/Debug_x64/base.lib" target="/lib/native/x64-Debug" />
<file src="output/Windows/Debug_x64/base.pdb" target="/lib/native/x64-Debug" />
<file src="shapedbyiris.aec3.props" target="/build/native" />
</files>
</package>
12 changes: 12 additions & 0 deletions shapedbyiris.aec3.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0">
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)../../lib/native/include;$(MSBuildThisFileDirectory)../../lib/native/include/base;$(MSBuildThisFileDirectory)../../lib/native/include/base/abseil;$(MSBuildThisFileDirectory)../../lib/native/include/base/jsoncpp;$(MSBuildThisFileDirectory)../../lib/native/include/base/jsoncpp/include;$(MSBuildThisFileDirectory)../../lib/native/include/base/audio_processing;$(MSBuildThisFileDirectory)../../lib/native/include/base/audio_processing/aec3;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WEBRTC_WIN;NOMINMAX;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<AdditionalDependencies>$(MSBuildThisFileDirectory)../../lib/native/$(Platform)-$(Configuration)/AEC3.lib;$(MSBuildThisFileDirectory)../../lib/native/$(Platform)-$(Configuration)/base.lib;$(MSBuildThisFileDirectory)../../lib/native/$(Platform)-$(Configuration)/api.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
</Project>

0 comments on commit 3e140ba

Please sign in to comment.