| 1 |
nuget { |
| 2 |
//Usage: Write-NuGetPackage rapidjson.autopkg -defines:MYVERSION=1.1.0 |
| 3 |
//Be sure you are running Powershell 3.0 and have the CoApp powershell extensions installed properly. |
| 4 |
nuspec { |
| 5 |
id = rapidjson; |
| 6 |
version : ${MYVERSION}; |
| 7 |
title: "rapidjson"; |
| 8 |
authors: {"https://github.com/Tencent/rapidjson/releases/tag/v1.1.0"}; |
| 9 |
owners: {"@lsantos (github)"}; |
| 10 |
licenseUrl: "https://github.com/Tencent/rapidjson/blob/master/license.txt"; |
| 11 |
projectUrl: "https://github.com/Tencent/rapidjson/"; |
| 12 |
iconUrl: "https://cdn1.iconfinder.com/data/icons/fatcow/32x32/json.png"; |
| 13 |
requireLicenseAcceptance:false; |
| 14 |
summary: @"A fast JSON parser/generator for C++ with both SAX/DOM style API"; |
| 15 |
|
| 16 |
// if you need to span several lines you can prefix a string with an @ symbol (exactly like c# does). |
| 17 |
description: @"Rapidjson is an attempt to create the fastest JSON parser and generator. |
| 18 |
|
| 19 |
- Small but complete. Supports both SAX and DOM style API. SAX parser only a few hundred lines of code. |
| 20 |
- Fast. In the order of magnitude of strlen(). Optionally supports SSE2/SSE4.2 for acceleration. |
| 21 |
- Self-contained. Minimal dependency on standard libraries. No BOOST, not even STL. |
| 22 |
- Compact. Each JSON value is 16 or 20 bytes for 32 or 64-bit machines respectively (excluding text string storage). With the custom memory allocator, parser allocates memory compactly during parsing. |
| 23 |
- Full RFC4627 compliance. Supports UTF-8, UTF-16 and UTF-32. |
| 24 |
- Support both in-situ parsing (directly decode strings into the source JSON text) and non-destructive parsing (decode strings into new buffers). |
| 25 |
- Parse number to int/unsigned/int64_t/uint64_t/double depending on input |
| 26 |
- Support custom memory allocation. Also, the default memory pool allocator can also be supplied with a user buffer (such as a buffer allocated on user's heap or - programme stack) to minimize allocation. |
| 27 |
|
| 28 |
As the name implies, rapidjson is inspired by rapidxml."; |
| 29 |
|
| 30 |
releaseNotes: @" |
| 31 |
Added |
| 32 |
Add Value::XXXMember(...) overloads for std::string (#335) |
| 33 |
|
| 34 |
Fixed |
| 35 |
Include rapidjson.h for all internal/error headers. |
| 36 |
Parsing some numbers incorrectly in full-precision mode (kFullPrecisionParseFlag) (#342) |
| 37 |
Fix alignment of 64bit platforms (#328) |
| 38 |
Fix MemoryPoolAllocator::Clear() to clear user-buffer (0691502) |
| 39 |
|
| 40 |
Changed |
| 41 |
CMakeLists for include as a thirdparty in projects (#334, #337) |
| 42 |
Change Document::ParseStream() to use stack allocator for Reader (ffbe386)"; |
| 43 |
|
| 44 |
copyright: "Copyright 2015"; |
| 45 |
tags: { native, coapp, JSON, nativepackage }; |
| 46 |
language: en-US; |
| 47 |
}; |
| 48 |
|
| 49 |
dependencies { |
| 50 |
packages : { |
| 51 |
//TODO: Add dependencies here in [pkg.name]/[version] form per newline |
| 52 |
//zlib/[1.2.8], |
| 53 |
}; |
| 54 |
} |
| 55 |
|
| 56 |
// the files that go into the content folders |
| 57 |
files { |
| 58 |
#defines { |
| 59 |
SDK_ROOT = .\; |
| 60 |
} |
| 61 |
|
| 62 |
// grab all the files in the include folder |
| 63 |
// the folder that contains all the .h files will |
| 64 |
// automatically get added to the Includes path. |
| 65 |
nestedinclude += { |
| 66 |
#destination = ${d_include}rapidjson; |
| 67 |
"${SDK_ROOT}include\rapidjson\**\*.h" |
| 68 |
}; |
| 69 |
}; |
| 70 |
|
| 71 |
targets { |
| 72 |
// We're trying to be standard about these sorts of thing. (Will help with config.h later :D) |
| 73 |
//Defines += HAS_EQCORE; |
| 74 |
// Fix creating the package with Raggles' fork of CoApp |
| 75 |
Includes += "$(MSBuildThisFileDirectory)../..${d_include}"; |
| 76 |
}; |
| 77 |
} |