FS-10246 [Core] Fix VPX codecs for windows build

This commit is contained in:
Andrey Volk 2017-04-18 19:42:01 +03:00
parent b84662ae6b
commit f33c68cda8
2 changed files with 6 additions and 0 deletions

View File

@ -259,6 +259,10 @@ static inline int IS_VP8_KEY_FRAME(uint8_t *data)
#define IS_VP9_KEY_FRAME(byte) ((((byte) & 0x40) == 0) && ((byte) & 0x0A))
#define IS_VP9_START_PKT(byte) ((byte) & 0x08)
#ifdef WIN32
#undef SWITCH_MOD_DECLARE_DATA
#define SWITCH_MOD_DECLARE_DATA __declspec(dllexport)
#endif
SWITCH_MODULE_LOAD_FUNCTION(mod_vpx_load);
SWITCH_MODULE_DEFINITION(CORE_VPX_MODULE, mod_vpx_load, NULL, NULL);

View File

@ -467,6 +467,7 @@ if not exist "$(OutDir)htdocs" xcopy "$(SolutionDir)htdocs\*.*" "$(OutDir)htdocs
<ClCompile Include="..\..\src\switch_time.c" />
<ClCompile Include="..\..\src\switch_utils.c" />
<ClCompile Include="..\..\src\switch_version.c" />
<ClCompile Include="..\..\src\switch_vpx.c" />
<ClCompile Include="..\..\src\switch_jitterbuffer.c" />
<ClCompile Include="..\..\src\switch_xml.c" />
<ClCompile Include="..\..\src\switch_xml_config.c" />
@ -797,6 +798,7 @@ if not exist "$(OutDir)htdocs" xcopy "$(SolutionDir)htdocs\*.*" "$(OutDir)htdocs
<ClInclude Include="..\..\src\include\switch_types.h" />
<ClInclude Include="..\..\src\include\switch_utils.h" />
<ClInclude Include="..\..\src\include\switch_version.h" />
<ClInclude Include="..\..\src\include\switch_vpx.h" />
<ClInclude Include="..\..\src\include\switch_xml.h" />
<ClInclude Include="..\..\src\include\switch_xml_config.h" />
</ItemGroup>