configurations 
{
    // This node contains custom pivot information.
    Toolset 
    {
        key : "PlatformToolset"; // this is CoApp pre-defined key
        choices: { v140 };
    };
};
nuget {
    nuspec {
        id = libcouchbase.v140.windesktop.static.rt-dyn;
        version : 2.5.8.1;
        title : "Couchbase C SDK Library v140";
        authors : "Couchbase";
        owners : "Couchbase";
        licenseUrl : "https://github.com/couchbase/libcouchbase/blob/master/LICENSE";
        projectUrl: "https://github.com/couchbase/libcouchbase";
        iconUrl: "http://www.couchbase.com/images/couchbase_favicon_0.ico";
        requireLicenseAcceptance: false;
        summary: @"Couchbase C SDK vc140 libraries";

        description: @"The Couchbase C SDK provides a fast, callback-based API for interacting with your Couchbase cluster.
It operates as a single threaded asynchronous I/O library that can be optionally integrated with an existing asynchronous application.
It can also run standalone within a traditional synchronous or threaded application as well.
The SDK is cross-platform and can be used on Linux, Mac OS X, or Windows.";

        releaseNotes: "http://developer.couchbase.com/documentation/server/current/sdks/c-2.4/release-notes.html";

        copyright: "Copyright 2016 COUCHBASE All rights reserved.";

        tags: { native, c, cpp, couchbase };
    };

    files {
		#defines {
			SDK_ROOT = ..\..\;
		};
		nestedInclude: {
			#destination : ${d_include}libcouchbase;
			"${SDK_ROOT}include\libcouchbase\**\*.h*";
		};
		nestedInclude += {
			#destination : ${d_include}libcouchbase;
			"${SDK_ROOT}build_v140_x64\generated\libcouchbase\*.h"
		};
		
        [x64,v140,release] { 
            lib: { ${SDK_ROOT}build_v140_x64\lib\RelWithDebInfo\libcouchbase.lib };
			bin: { ${SDK_ROOT}build_v140_x64\bin\RelWithDebInfo\libcouchbase.dll };
			symbols: { ${SDK_ROOT}build_v140_x64\bin\RelWithDebInfo\libcouchbase.pdb };
        };

        [x64,v140,debug] { 
            lib: { ${SDK_ROOT}build_v140_x64\lib\Debug\libcouchbase_d.lib };
			bin: { ${SDK_ROOT}build_v140_x64\bin\Debug\libcouchbase_d.dll };
			symbols: { ${SDK_ROOT}build_v140_x64\bin\Debug\libcouchbase_d.pdb };
        };

        [win32,v140,release] { 
            lib: { ${SDK_ROOT}build_v140_x86\lib\RelWithDebInfo\libcouchbase.lib };
			bin: { ${SDK_ROOT}build_v140_x86\bin\RelWithDebInfo\libcouchbase.dll };
			symbols: { ${SDK_ROOT}build_v140_x86\bin\RelWithDebInfo\libcouchbase.pdb };
        };

        [win32,v140,debug] { 
            lib: { ${SDK_ROOT}build_v140_x86\lib\Debug\libcouchbase_d.lib };
			bin: { ${SDK_ROOT}build_v140_x86\bin\Debug\libcouchbase_d.dll };
			symbols: { ${SDK_ROOT}build_v140_x86\bin\Debug\libcouchbase_d.pdb };
        };
    };

	targets {
		Defines += HAS_LIBCOUCHBASE;
	};
}