Guest User

libcouchbase autopkg template

a guest
Apr 15th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.20 KB | None | 0 0
  1. //To execute from the command line: PS> Write-NuGetPackage .\couchbase.autopkg -define:BUILDVERSION=1
  2.  
  3. ######BEGIN FILE############################3
  4.  
  5. nuget {
  6.         nuspec {
  7.                 id = CouchbaseCSDK;
  8.                 version : 2.5.6.${BUILDVERSION};
  9.                 title: "Couchbase C/C++ SDK";
  10.                 authors: {"Couchbase Folks"};
  11.                 owners: {"Couchbase Folks"};
  12.                 licenseUrl: "http://www.apache.org/licenses/LICENSE-2.0";
  13.                 projectUrl: "http://developer.couchbase.com/documentation/server/4.1/sdks/c-2.4/c-intro.html";
  14.                 iconUrl: "http://developer.couchbase.com/images/couchbase_favicon_0.ico";
  15.                 requireLicenseAcceptance:false;
  16.                 summary:"";
  17.  
  18.                 // if you need to span several lines you can prefix a string with an @ symbol (exactly like c# does).
  19.                 description: @"";
  20.                 releaseNotes: @"http://developer.couchbase.com/documentation/server/4.1/sdks/c-2.4/release-notes.html";
  21.                 copyright: "Copyright 2016 Couchbase Folks";
  22.                 tags: { native, coapp, http, couchbase };
  23.                 language: en-US;
  24.         };
  25.  
  26.         dependencies {
  27.                 packages : {
  28.                         //TODO:  Add dependecies here in [pkg.name]/[version] form per newline
  29.                         //zlib/[1.2.8],                        
  30.                 };
  31.         }
  32.  
  33.         // the files that go into the content folders
  34.         files {
  35.                 #defines {
  36.                         SDK_ROOT         = .\;                        
  37.                 }
  38.  
  39.                 // grab all the files in the include folder
  40.                 // the folder that contains all the .h files will
  41.                 // automatically get added to the Includes path.
  42.                 include: {
  43.                         "${SDK_ROOT}include\**\*.h",
  44.                 };
  45.  
  46.                 // Documents that we want to ship with the package.
  47.                 docs: {  "${SDK_ROOT}share\**\*.*" };
  48.  
  49.                 // these declarations of lib, symbols and bin folders only apply
  50.                 // to the project when:
  51.                 //              $(Platform) == x64 | x86
  52.                 //      $(PlatformToolset) == v120
  53.                 //              $(Configuration) == Release
  54.                 //              $(Linkage) = Dynamic | Static
  55.  
  56.                 //${SDK_2012}x64\Release\EQCore\eqcore.pdb
  57.                 [v110,x64,release,desktop] {
  58.                         lib: { ${SDK_ROOT}lib\libcouchbase.lib };
  59.                 }
  60.  
  61.                 [v110,x86,release,desktop] {
  62.                         lib: { ${SDK_ROOT}lib_x86\libcouchbase.lib };
  63.                 }
  64.  
  65.                 [v110,x64,debug,desktop] {
  66.                 //${SDK_2012}x64\Debug\EQCore\eqcore.pdb
  67.                         lib: { ${SDK_ROOT}lib\libcouchbase_d.lib };
  68.                 }
  69.  
  70.                 [v110,x86,debug,desktop] {
  71.                 //${SDK_2012}Win32\Release\EQCore\eqcore.pdb
  72.                         lib: { ${SDK_ROOT}lib_x86\libcouchbase_d.lib };
  73.                 }
  74.         };
  75.  
  76.         targets {
  77.                 // We're trying to be standard about these sorts of thing. (Will help with config.h later :D)
  78.                Defines += HAS_COUCHBASE;
  79.        };
  80. }
Add Comment
Please, Sign In to add comment