-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added initial nuget prototype. Added nuget output to .gitignore.
- Loading branch information
1 parent
d10fe4f
commit 4e0bd94
Showing
2 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,3 +74,6 @@ code-generation/generator/target/ | |
|
||
#config output | ||
aws-cpp-sdk-core/include/aws/core/SDKConfig.h | ||
|
||
#nuget | ||
*.nupkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
|