Skip to content

Commit

Permalink
Added initial nuget prototype. Added nuget output to .gitignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHenson committed Jun 14, 2016
1 parent d10fe4f commit 4e0bd94
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,6 @@ code-generation/generator/target/

#config output
aws-cpp-sdk-core/include/aws/core/SDKConfig.h

#nuget
*.nupkg
126 changes: 126 additions & 0 deletions aws-cpp-sdk-core/nuget/aws-cpp-sdk-core.autopkg
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
configurations {
Toolset {
key : "PlatformToolset";
choices: { v140, v120 };
};
}

nuget {
// The nuspec file metadata.
nuspec {

// Unique package identifier
id = AWSSDKCPP-Core;

// Version number. Follows NuGet standards. (currently SemVer 1.0)
version : 0.12.9.13;

// Display name for package.
title: AWS SDK for C++ (Core Runtime);

// List of package authors. Braces may be ommited if only one author.
authors: Amazon Web Services;

// URL link to the license this package is released under.
licenseUrl: "http://aws.amazon.com/apache2.0/";

// URL to the project website (if any).
projectUrl: "http://github.com/aws/aws-sdk-cpp";

// URL to an image to be used for package icons.
iconUrl: "http://media.amazonwebservices.com/aws_singlebox_01.png";

// If the license this package is being released
// under has use restrictions, set this to "true".
requireLicenseAcceptance:false;

// Brief summary of the package contents. Keep it short!
summary: "v120 and v140 binary packages along with header files. No custom memory management. Standard Compiler flags used. For more info, see https://github.com/aws/aws-sdk-cpp/blob/master/README.md";

// Extended description of the package contents.
description: "The AWS SDK for C++ provides a modern C++ (version C++ 11 or later) interface for Amazon Web Services (AWS). It is meant to be performant and fully functioning with low- and high-level SDKs, while minimizing dependencies and providing platform portability (Windows, OSX, Linux, and mobile).";

// Copyright notice.
copyright: Copyright 2016;

// Tags of arbitrary text for categorizing and filtering.
tags: { AWS, Amazon, cloud, aws-sdk-cpp, native };

};

files {
// File location information. This node is critical for all packages, and is
// where much of the effort is. All file paths are relative to this .autopkg
// file's location.

// This node is frequently divided by multiple condition statements or rules.
// Below is an example of how a typical package might be described.
// For the below examples, we assume that this file is in
// <src_root>\contrib\coapp\
// and that the compiled libraries are in a semi-logical directory tree in
// <src_root>\output\.

// All .h and .hpp files in <src_root>\include, but not in subdirectories.
// Included for all conditions.
nestedInclude: {
#destination = ${d_include}\aws\core;
"..\include\aws\core\**\*.h"
};

// Include these specific files in the libpath and "copy to output" path only
// under these pivot conditions.
[x64,release,v140,dynamic] { // x64, dll (dynamic linking)
lib+= { ..\bin\windows\intel64\vs2015\release\aws-cpp-sdk-core.lib };
bin+= { ..\bin\windows\intel64\vs2015\release\aws-cpp-sdk-core.dll };
}

[x64,release,v120,dynamic] { // x64, dll (dynamic linking)
lib+= { ..\bin\windows\intel64\vs2013\release\aws-cpp-sdk-core.lib };
bin+= { ..\bin\windows\intel64\vs2013\release\aws-cpp-sdk-core.dll };
}

[x64,debug,v140,dynamic] { // x64, dll (dynamic linking)
lib+= { ..\bin\windows\intel64\vs2015\debug\aws-cpp-sdk-core.lib };
bin+= { ..\bin\windows\intel64\vs2015\debug\aws-cpp-sdk-core.dll };
}

[x64,debug,v120,dynamic] { // x64, dll (dynamic linking)
lib+= { ..\bin\windows\intel64\vs2013\debug\aws-cpp-sdk-core.lib };
bin+= { ..\bin\windows\intel64\vs2013\debug\aws-cpp-sdk-core.dll };
}

[x64,release,v140,static] { // x64, static linking
lib+= { ..\lib\windows\intel64\vs2015\release\aws-cpp-sdk-core.lib };
}

[x64,release,v120,static] { // x64, static linking
lib+= { ..\lib\windows\intel64\vs2013\release\aws-cpp-sdk-core.lib };
}

[x64,debug,v140,static] { // x64, static linking
lib+= { ..\lib\windows\intel64\vs2015\debug\aws-cpp-sdk-core.lib };
}

[x64,debug,v120,static] { // x64, static linking
lib+= { ..\lib\windows\intel64\vs2013\debug\aws-cpp-sdk-core.lib };
}
};

targets {
// Additional declarations to insert into consuming projects after most of the
// project settings. (These may NOT be modified in visual studio by a developer
// consuming this package.)
// This node is often used to set defines that are required that must be set by
// the consuming project in order to correctly link to the libraries in this
// package. Such defines may be set either globally or only set under specific
// conditions.
[dynamic]
Defines += USE_IMPORT_EXPORT;

Libraries += winhttp.lib;
Libraries += wininet.lib;
Libraries += bcrypt.lib;
Libraries += userenv.lib;
}
}

0 comments on commit 4e0bd94

Please sign in to comment.