-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add snappy #193
Add snappy #193
Changes from all commits
fa75e8f
c2c9d65
f966259
0a08730
8cfcabb
1833a82
67d524b
7823022
0d2f62d
abdb9b7
d8f3b10
b9df726
147a46b
4175c0f
55395fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
REM Microsoft Visual Studio Project files from https://github.com/kmanley/snappy-msvc | ||
copy %RECIPE_DIR%\snappy.sln %SRC_DIR% | ||
copy %RECIPE_DIR%\snappy.vcproj %SRC_DIR% | ||
|
||
set SLN_FILE=snappy.sln | ||
set SLN_CFG=Release | ||
if "%ARCH%"=="32" (set SLN_PLAT=Win32) else (set SLN_PLAT=x64) | ||
|
||
REM Build step | ||
devenv "%SLN_FILE%" /Build "%SLN_CFG%|%SLN_PLAT%" | ||
if errorlevel 1 exit 1 | ||
|
||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/env bash | ||
|
||
./autogen.sh | ||
./configure --prefix=$PREFIX | ||
make | ||
make check | ||
make install | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. make check? |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% set version = "1.1.3" %} | ||
|
||
package: | ||
name: snappy | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/google/snappy/releases/download/1.1.3/snappy-1.1.3.tar.gz | ||
fn: snappy-1.1.3.tar.gz | ||
md5: 7358c82f133dc77798e4c2062a749b73 | ||
|
||
requirements: | ||
build: | ||
- msinttypes # [win] | ||
- libtool # [unix] | ||
- automake # [unix] | ||
- pkg-config # [unix] | ||
|
||
test: | ||
commands: | ||
- test -e $PREFIX/include/snappy.h # [unix] | ||
- test -e $PREFIX/include/snappy-stubs-public.h # [unix] | ||
- test -e $PREFIX/lib/libsnappy.dylib # [osx] | ||
- test -e $PREFIX/lib/libsnappy.a # [unix] | ||
- test -e $PREFIX/lib/libsnappy.so # [linux] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking good. Could you please indent the selectors in the test section so they are lined up? Also, we may want to test There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can skip the Windows tests for now, but the other minor comments here should be addressed. |
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needs tests. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test is executed by There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With tests in make check, the tests here usually just test existence of the On Wed, Mar 30, 2016, 18:55 Ryan Grout notifications@github.com wrote:
|
||
about: | ||
home: https://github.com/google/snappy | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needs a summary line. |
||
summary: A fast compressor/decompressor | ||
license: BSD 3-clause | ||
license_file: COPYING | ||
license_family: BSD | ||
|
||
extra: | ||
recipe-maintainers: | ||
- groutr | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add me too. 😄 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
| ||
Microsoft Visual Studio Solution File, Format Version 10.00 | ||
# Visual Studio 2008 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "snappy", "snappy.vcproj", "{9C2150BB-37DC-4D32-99F9-C76DC1A48939}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Win32 = Debug|Win32 | ||
Release|Win32 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{9C2150BB-37DC-4D32-99F9-C76DC1A48939}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{9C2150BB-37DC-4D32-99F9-C76DC1A48939}.Debug|Win32.Build.0 = Debug|Win32 | ||
{9C2150BB-37DC-4D32-99F9-C76DC1A48939}.Release|Win32.ActiveCfg = Release|Win32 | ||
{9C2150BB-37DC-4D32-99F9-C76DC1A48939}.Release|Win32.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
<?xml version="1.0" encoding="Windows-1252"?> | ||
<VisualStudioProject | ||
ProjectType="Visual C++" | ||
Version="9.00" | ||
Name="snappy" | ||
ProjectGUID="{9C2150BB-37DC-4D32-99F9-C76DC1A48939}" | ||
RootNamespace="snappy" | ||
Keyword="Win32Proj" | ||
TargetFrameworkVersion="196613" | ||
> | ||
<Platforms> | ||
<Platform | ||
Name="Win32" | ||
/> | ||
</Platforms> | ||
<ToolFiles> | ||
</ToolFiles> | ||
<Configurations> | ||
<Configuration | ||
Name="Debug|Win32" | ||
OutputDirectory="$(SolutionDir)$(ConfigurationName)" | ||
IntermediateDirectory="$(ConfigurationName)" | ||
ConfigurationType="4" | ||
CharacterSet="1" | ||
> | ||
<Tool | ||
Name="VCPreBuildEventTool" | ||
/> | ||
<Tool | ||
Name="VCCustomBuildTool" | ||
/> | ||
<Tool | ||
Name="VCXMLDataGeneratorTool" | ||
/> | ||
<Tool | ||
Name="VCWebServiceProxyGeneratorTool" | ||
/> | ||
<Tool | ||
Name="VCMIDLTool" | ||
/> | ||
<Tool | ||
Name="VCCLCompilerTool" | ||
Optimization="0" | ||
AdditionalIncludeDirectories="..\snappy-msvc" | ||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB" | ||
MinimalRebuild="true" | ||
BasicRuntimeChecks="3" | ||
RuntimeLibrary="3" | ||
UsePrecompiledHeader="0" | ||
WarningLevel="3" | ||
DebugInformationFormat="4" | ||
/> | ||
<Tool | ||
Name="VCManagedResourceCompilerTool" | ||
/> | ||
<Tool | ||
Name="VCResourceCompilerTool" | ||
/> | ||
<Tool | ||
Name="VCPreLinkEventTool" | ||
/> | ||
<Tool | ||
Name="VCLibrarianTool" | ||
/> | ||
<Tool | ||
Name="VCALinkTool" | ||
/> | ||
<Tool | ||
Name="VCXDCMakeTool" | ||
/> | ||
<Tool | ||
Name="VCBscMakeTool" | ||
/> | ||
<Tool | ||
Name="VCFxCopTool" | ||
/> | ||
<Tool | ||
Name="VCPostBuildEventTool" | ||
/> | ||
</Configuration> | ||
<Configuration | ||
Name="Release|Win32" | ||
OutputDirectory="$(SolutionDir)$(ConfigurationName)" | ||
IntermediateDirectory="$(ConfigurationName)" | ||
ConfigurationType="4" | ||
CharacterSet="1" | ||
WholeProgramOptimization="1" | ||
> | ||
<Tool | ||
Name="VCPreBuildEventTool" | ||
/> | ||
<Tool | ||
Name="VCCustomBuildTool" | ||
/> | ||
<Tool | ||
Name="VCXMLDataGeneratorTool" | ||
/> | ||
<Tool | ||
Name="VCWebServiceProxyGeneratorTool" | ||
/> | ||
<Tool | ||
Name="VCMIDLTool" | ||
/> | ||
<Tool | ||
Name="VCCLCompilerTool" | ||
Optimization="2" | ||
EnableIntrinsicFunctions="true" | ||
AdditionalIncludeDirectories="..\snappy-msvc" | ||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB" | ||
RuntimeLibrary="2" | ||
EnableFunctionLevelLinking="true" | ||
UsePrecompiledHeader="0" | ||
WarningLevel="3" | ||
DebugInformationFormat="3" | ||
/> | ||
<Tool | ||
Name="VCManagedResourceCompilerTool" | ||
/> | ||
<Tool | ||
Name="VCResourceCompilerTool" | ||
/> | ||
<Tool | ||
Name="VCPreLinkEventTool" | ||
/> | ||
<Tool | ||
Name="VCLibrarianTool" | ||
/> | ||
<Tool | ||
Name="VCALinkTool" | ||
/> | ||
<Tool | ||
Name="VCXDCMakeTool" | ||
/> | ||
<Tool | ||
Name="VCBscMakeTool" | ||
/> | ||
<Tool | ||
Name="VCFxCopTool" | ||
/> | ||
<Tool | ||
Name="VCPostBuildEventTool" | ||
/> | ||
</Configuration> | ||
</Configurations> | ||
<References> | ||
</References> | ||
<Files> | ||
<Filter | ||
Name="Source Files" | ||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" | ||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" | ||
> | ||
<File | ||
RelativePath="..\snappy-c.cc" | ||
> | ||
</File> | ||
<File | ||
RelativePath="..\snappy-sinksource.cc" | ||
> | ||
</File> | ||
<File | ||
RelativePath="..\snappy-stubs-internal.cc" | ||
> | ||
</File> | ||
<File | ||
RelativePath="..\snappy.cc" | ||
> | ||
</File> | ||
</Filter> | ||
<Filter | ||
Name="Header Files" | ||
Filter="h;hpp;hxx;hm;inl;inc;xsd" | ||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" | ||
> | ||
<File | ||
RelativePath="..\snappy-c.h" | ||
> | ||
</File> | ||
<File | ||
RelativePath="..\snappy-internal.h" | ||
> | ||
</File> | ||
<File | ||
RelativePath="..\snappy-sinksource.h" | ||
> | ||
</File> | ||
<File | ||
RelativePath="..\snappy-stubs-internal.h" | ||
> | ||
</File> | ||
<File | ||
RelativePath="..\snappy-stubs-public.h" | ||
> | ||
</File> | ||
<File | ||
RelativePath="..\snappy.h" | ||
> | ||
</File> | ||
</Filter> | ||
<Filter | ||
Name="Resource Files" | ||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" | ||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" | ||
> | ||
</Filter> | ||
<File | ||
RelativePath=".\ReadMe.txt" | ||
> | ||
</File> | ||
</Files> | ||
<Globals> | ||
</Globals> | ||
</VisualStudioProject> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop extra newline.