rapidjson.autopkg 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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/miloyip/rapidjson/releases/tag/v1.1.0"};
  9. owners: {"@lsantos (github)"};
  10. licenseUrl: "https://github.com/miloyip/rapidjson/blob/master/license.txt";
  11. projectUrl: "https://github.com/miloyip/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. // if you need to span several lines you can prefix a string with an @ symbol (exactly like c# does).
  16. description: @"Rapidjson is an attempt to create the fastest JSON parser and generator.
  17. - Small but complete. Supports both SAX and DOM style API. SAX parser only a few hundred lines of code.
  18. - Fast. In the order of magnitude of strlen(). Optionally supports SSE2/SSE4.2 for acceleration.
  19. - Self-contained. Minimal dependency on standard libraries. No BOOST, not even STL.
  20. - 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.
  21. - Full RFC4627 compliance. Supports UTF-8, UTF-16 and UTF-32.
  22. - Support both in-situ parsing (directly decode strings into the source JSON text) and non-destructive parsing (decode strings into new buffers).
  23. - Parse number to int/unsigned/int64_t/uint64_t/double depending on input
  24. - 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.
  25. As the name implies, rapidjson is inspired by rapidxml.";
  26. releaseNotes: @"
  27. Added
  28. Add Value::XXXMember(...) overloads for std::string (#335)
  29. Fixed
  30. Include rapidjson.h for all internal/error headers.
  31. Parsing some numbers incorrectly in full-precision mode (kFullPrecisionParseFlag) (#342)
  32. Fix alignment of 64bit platforms (#328)
  33. Fix MemoryPoolAllocator::Clear() to clear user-buffer (0691502)
  34. Changed
  35. CMakeLists for include as a thirdparty in projects (#334, #337)
  36. Change Document::ParseStream() to use stack allocator for Reader (ffbe386)";
  37. copyright: "Copyright 2015";
  38. tags: { native, coapp, JSON, nativepackage };
  39. language: en-US;
  40. };
  41. dependencies {
  42. packages : {
  43. //TODO: Add dependecies here in [pkg.name]/[version] form per newline
  44. //zlib/[1.2.8],
  45. };
  46. }
  47. // the files that go into the content folders
  48. files {
  49. #defines {
  50. SDK_ROOT = .\;
  51. }
  52. // grab all the files in the include folder
  53. // the folder that contains all the .h files will
  54. // automatically get added to the Includes path.
  55. nestedinclude += {
  56. #destination = ${d_include}rapidjson;
  57. "${SDK_ROOT}include\rapidjson\**\*.h"
  58. };
  59. };
  60. targets {
  61. // We're trying to be standard about these sorts of thing. (Will help with config.h later :D)
  62. //Defines += HAS_EQCORE;
  63. // Fix creating the package with Raggles' fork of CoApp
  64. Includes += "$(MSBuildThisFileDirectory)../..${d_include}";
  65. };
  66. }