Skip to content

Commit

Permalink
Fixes for unrar
Browse files Browse the repository at this point in the history
* Set /Ob1 and /Os for release configuration
* Move USE_UNRAR_STATIC define to vsfilter_config.h
  • Loading branch information
BrunoReX authored and Cyberbeing committed Mar 4, 2014
1 parent b0e3f6f commit 76dc6c7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions include/vsfilter_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@
//show the bounding boxes of bitmaps
//#define XY_DBG_SHOW_BITMAP_BOX_IN_COLOR 0x00ff00

#define USE_UNRAR_STATIC

#endif // __VSFILTER_CONFIG_6A82AF4A_67EC_4840_99D5_2DF001C64FEC_H__
3 changes: 0 additions & 3 deletions src/subtitles/VobSubFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
#include "TextFile.h"
#include "VobSubFile.h"
#ifndef USE_UNRAR_STATIC
#define USE_UNRAR_STATIC
#endif
#ifndef USE_UNRAR_STATIC
#include "unrar.h"
#else
#include "unrar/dll.hpp"
Expand Down
8 changes: 7 additions & 1 deletion src/thirdparty/unrar/unrar.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<Import Project="..\..\platform.props" />
<Import Project="..\..\configuration.props" />
<PropertyGroup Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
Expand All @@ -44,6 +44,12 @@
<EnablePREfast>false</EnablePREfast>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<ClCompile>
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="archive.cpp" />
<ClCompile Include="arcread.cpp" />
Expand Down

0 comments on commit 76dc6c7

Please sign in to comment.