lounge_lizard 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.gitmodules +3 -0
- data/.rspec +2 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Guardfile +33 -0
- data/LICENSE.txt +21 -0
- data/README.md +50 -0
- data/Rakefile +43 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/circle.yml +14 -0
- data/ext/drafter/CHANGELOG.md +278 -0
- data/ext/drafter/Dockerfile +17 -0
- data/ext/drafter/Makefile +62 -0
- data/ext/drafter/appveyor.yml +17 -0
- data/ext/drafter/bin/drafter +0 -0
- data/ext/drafter/build/Makefile +387 -0
- data/ext/drafter/build/drafter.Makefile +6 -0
- data/ext/drafter/build/drafter.target.mk +159 -0
- data/ext/drafter/build/ext/snowcrash/libmarkdownparser.target.mk +141 -0
- data/ext/drafter/build/ext/snowcrash/libsnowcrash.target.mk +154 -0
- data/ext/drafter/build/ext/snowcrash/libsundown.target.mk +149 -0
- data/ext/drafter/build/ext/snowcrash/perf-libsnowcrash.target.mk +147 -0
- data/ext/drafter/build/ext/snowcrash/snowcrash.Makefile +6 -0
- data/ext/drafter/build/gyp-mac-tool +606 -0
- data/ext/drafter/build/libdrafter.target.mk +186 -0
- data/ext/drafter/build/libsos.target.mk +137 -0
- data/ext/drafter/build/out/Release/drafter +0 -0
- data/ext/drafter/build/out/Release/libdrafter.dylib +0 -0
- data/ext/drafter/build/out/Release/libmarkdownparser.a +0 -0
- data/ext/drafter/build/out/Release/libsnowcrash.a +0 -0
- data/ext/drafter/build/out/Release/libsos.a +0 -0
- data/ext/drafter/build/out/Release/libsundown.a +0 -0
- data/ext/drafter/build/out/Release/obj.target/drafter/src/config.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/drafter/src/main.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/drafter/src/reporting.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/ConversionContext.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/NamedTypesRegistry.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/RefractAPI.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/RefractDataStructure.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/RefractElementFactory.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/RefractSourceMap.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/Render.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/Serialize.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/SerializeAST.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/SerializeResult.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/SerializeSourcemap.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/drafter.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/drafter_private.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/ComparableVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/Element.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/ExpandVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/IsExpandableVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/JSONSchemaVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/PrintVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/Query.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/Registry.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/RenderJSONVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/SerializeCompactVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/SerializeVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/TypeQueryVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/VisitorUtils.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libmarkdownparser/ext/snowcrash/ext/markdown-parser/src/ByteBuffer.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libmarkdownparser/ext/snowcrash/ext/markdown-parser/src/MarkdownNode.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libmarkdownparser/ext/snowcrash/ext/markdown-parser/src/MarkdownParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/Blueprint.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/BlueprintSourcemap.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/HTTP.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/HeadersParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSON.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONOneOfParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONSourcemap.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONTypeSectionParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONValueMemberParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/Section.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/Signature.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/UriTemplateParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/posix/RegexMatch.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/snowcrash.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsos/ext/sos/src/sos.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_href_e.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_html_e.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html_smartypants.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/autolink.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/buffer.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/markdown.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/src_map.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/stack.o +0 -0
- data/ext/drafter/circle.yml +32 -0
- data/ext/drafter/config.gypi +10 -0
- data/ext/drafter/config.mk +5 -0
- data/ext/drafter/configure +224 -0
- data/ext/drafter/drafter.gyp +189 -0
- data/ext/drafter/drafter.xcworkspace/contents.xcworkspacedata +13 -0
- data/ext/drafter/ext/snowcrash/Makefile +58 -0
- data/ext/drafter/ext/snowcrash/appveyor.yml +7 -0
- data/ext/drafter/ext/snowcrash/common.gypi +165 -0
- data/ext/drafter/ext/snowcrash/configure +197 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/Makefile +90 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/CONTRIBUTING.md +10 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/Makefile +84 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/Makefile.win +33 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/examples/smartypants.c +72 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/examples/sundown.c +80 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h +37 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_href_e.c +108 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_html_e.c +84 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html.c +647 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html.h +77 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html_smartypants.c +389 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html_block_names.txt +25 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/autolink.c +297 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/autolink.h +51 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/buffer.c +225 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/buffer.h +96 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/html_blocks.h +206 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/markdown.c +2726 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/markdown.h +147 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/src_map.c +204 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/src_map.h +58 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/stack.c +81 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/stack.h +29 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/sundown.def +20 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/msvc/markdown/markdown.vcproj +188 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/msvc/msvc.sln +38 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/msvc/sundown/sundown.vcproj +206 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/ByteBuffer.cc +160 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/ByteBuffer.h +90 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownNode.cc +152 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownNode.h +103 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownParser.cc +388 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownParser.h +106 -0
- data/ext/drafter/ext/snowcrash/snowcrash.gyp +196 -0
- data/ext/drafter/ext/snowcrash/src/ActionParser.h +560 -0
- data/ext/drafter/ext/snowcrash/src/AssetParser.h +123 -0
- data/ext/drafter/ext/snowcrash/src/AttributesParser.h +123 -0
- data/ext/drafter/ext/snowcrash/src/Blueprint.cc +90 -0
- data/ext/drafter/ext/snowcrash/src/Blueprint.h +489 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintParser.h +845 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintSourcemap.cc +81 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintSourcemap.h +345 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintUtility.h +111 -0
- data/ext/drafter/ext/snowcrash/src/CodeBlockUtility.h +276 -0
- data/ext/drafter/ext/snowcrash/src/DataStructureGroupParser.h +157 -0
- data/ext/drafter/ext/snowcrash/src/HTTP.cc +49 -0
- data/ext/drafter/ext/snowcrash/src/HTTP.h +108 -0
- data/ext/drafter/ext/snowcrash/src/HeadersParser.cc +117 -0
- data/ext/drafter/ext/snowcrash/src/HeadersParser.h +377 -0
- data/ext/drafter/ext/snowcrash/src/MSON.cc +272 -0
- data/ext/drafter/ext/snowcrash/src/MSON.h +405 -0
- data/ext/drafter/ext/snowcrash/src/MSONMixinParser.h +103 -0
- data/ext/drafter/ext/snowcrash/src/MSONNamedTypeParser.h +135 -0
- data/ext/drafter/ext/snowcrash/src/MSONOneOfParser.cc +132 -0
- data/ext/drafter/ext/snowcrash/src/MSONOneOfParser.h +80 -0
- data/ext/drafter/ext/snowcrash/src/MSONParameterParser.h +166 -0
- data/ext/drafter/ext/snowcrash/src/MSONPropertyMemberParser.h +106 -0
- data/ext/drafter/ext/snowcrash/src/MSONSourcemap.cc +141 -0
- data/ext/drafter/ext/snowcrash/src/MSONSourcemap.h +181 -0
- data/ext/drafter/ext/snowcrash/src/MSONTypeSectionParser.cc +209 -0
- data/ext/drafter/ext/snowcrash/src/MSONTypeSectionParser.h +213 -0
- data/ext/drafter/ext/snowcrash/src/MSONUtility.h +506 -0
- data/ext/drafter/ext/snowcrash/src/MSONValueMemberParser.cc +214 -0
- data/ext/drafter/ext/snowcrash/src/MSONValueMemberParser.h +390 -0
- data/ext/drafter/ext/snowcrash/src/ModelTable.h +87 -0
- data/ext/drafter/ext/snowcrash/src/ParameterParser.h +516 -0
- data/ext/drafter/ext/snowcrash/src/ParametersParser.h +222 -0
- data/ext/drafter/ext/snowcrash/src/PayloadParser.h +733 -0
- data/ext/drafter/ext/snowcrash/src/Platform.h +33 -0
- data/ext/drafter/ext/snowcrash/src/RegexMatch.h +32 -0
- data/ext/drafter/ext/snowcrash/src/RelationParser.h +87 -0
- data/ext/drafter/ext/snowcrash/src/ResourceGroupParser.h +297 -0
- data/ext/drafter/ext/snowcrash/src/ResourceParser.h +536 -0
- data/ext/drafter/ext/snowcrash/src/Section.cc +48 -0
- data/ext/drafter/ext/snowcrash/src/Section.h +60 -0
- data/ext/drafter/ext/snowcrash/src/SectionParser.h +246 -0
- data/ext/drafter/ext/snowcrash/src/SectionParserData.h +109 -0
- data/ext/drafter/ext/snowcrash/src/SectionProcessor.h +299 -0
- data/ext/drafter/ext/snowcrash/src/Signature.cc +75 -0
- data/ext/drafter/ext/snowcrash/src/Signature.h +103 -0
- data/ext/drafter/ext/snowcrash/src/SignatureSectionProcessor.h +442 -0
- data/ext/drafter/ext/snowcrash/src/SourceAnnotation.h +166 -0
- data/ext/drafter/ext/snowcrash/src/StringUtility.h +323 -0
- data/ext/drafter/ext/snowcrash/src/UriTemplateParser.cc +195 -0
- data/ext/drafter/ext/snowcrash/src/UriTemplateParser.h +240 -0
- data/ext/drafter/ext/snowcrash/src/ValuesParser.h +111 -0
- data/ext/drafter/ext/snowcrash/src/posix/RegexMatch.cc +99 -0
- data/ext/drafter/ext/snowcrash/src/snowcrash.cc +90 -0
- data/ext/drafter/ext/snowcrash/src/snowcrash.h +44 -0
- data/ext/drafter/ext/snowcrash/src/win/RegexMatch.cc +78 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/AUTHORS +12 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/DEPS +23 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/OWNERS +1 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/PRESUBMIT.py +137 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/buildbot/buildbot_run.py +136 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/buildbot/commit_queue/OWNERS +6 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/buildbot/commit_queue/cq_config.json +15 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/codereview.settings +10 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/data/win/large-pdb-shim.cc +12 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/gyp +8 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/gyp.bat +5 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/gyp_main.py +16 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSNew.py +340 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSProject.py +208 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSSettings.py +1096 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSToolFile.py +58 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUserFile.py +147 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUtil.py +270 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUtil.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSVersion.py +445 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSVersion.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/__init__.py +548 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/__init__.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/common.py +608 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/common.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/easy_xml.py +157 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/flock_tool.py +54 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/__init__.py +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/__init__.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/analyzer.py +741 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/android.py +1069 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/cmake.py +1248 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/dump_dependency_json.py +99 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/eclipse.py +425 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/gypd.py +94 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/gypsh.py +56 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/make.py +2218 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/msvs.py +3467 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/ninja.py +2427 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/ninja.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/xcode.py +1300 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/xcode.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/input.py +2899 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/input.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/mac_tool.py +605 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/msvs_emulation.py +1093 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/msvs_emulation.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/ninja_syntax.py +160 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/ninja_syntax.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/ordered_dict.py +289 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/simple_copy.py +46 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/simple_copy.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/win_tool.py +314 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_emulation.py +1664 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_ninja.py +276 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_ninja.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcodeproj_file.py +2927 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xml_fix.py +69 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylintrc +307 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/samples/samples +81 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/samples/samples.bat +5 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/setup.py +19 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/Xcode/Specifications/gyp.pbfilespec +27 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/Xcode/Specifications/gyp.xclangspec +226 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/emacs/gyp.el +275 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/graphviz.py +100 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/pretty_gyp.py +155 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/pretty_sln.py +169 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/pretty_vcproj.py +329 -0
- data/ext/drafter/ext/snowcrash/vcbuild.bat +139 -0
- data/ext/drafter/ext/sos/Makefile +62 -0
- data/ext/drafter/ext/sos/src/sos.cc +235 -0
- data/ext/drafter/ext/sos/src/sos.h +188 -0
- data/ext/drafter/ext/sos/src/sosJSON.h +121 -0
- data/ext/drafter/ext/sos/src/sosYAML.h +105 -0
- data/ext/drafter/src/ConversionContext.cc +39 -0
- data/ext/drafter/src/ConversionContext.h +34 -0
- data/ext/drafter/src/NamedTypesRegistry.cc +405 -0
- data/ext/drafter/src/NamedTypesRegistry.h +28 -0
- data/ext/drafter/src/NodeInfo.h +143 -0
- data/ext/drafter/src/RefractAPI.cc +579 -0
- data/ext/drafter/src/RefractAPI.h +28 -0
- data/ext/drafter/src/RefractDataStructure.cc +1199 -0
- data/ext/drafter/src/RefractDataStructure.h +26 -0
- data/ext/drafter/src/RefractElementFactory.cc +107 -0
- data/ext/drafter/src/RefractElementFactory.h +67 -0
- data/ext/drafter/src/RefractSourceMap.cc +29 -0
- data/ext/drafter/src/RefractSourceMap.h +57 -0
- data/ext/drafter/src/Render.cc +157 -0
- data/ext/drafter/src/Render.h +40 -0
- data/ext/drafter/src/Serialize.cc +160 -0
- data/ext/drafter/src/Serialize.h +289 -0
- data/ext/drafter/src/SerializeAST.cc +507 -0
- data/ext/drafter/src/SerializeAST.h +29 -0
- data/ext/drafter/src/SerializeResult.cc +170 -0
- data/ext/drafter/src/SerializeResult.h +34 -0
- data/ext/drafter/src/SerializeSourcemap.cc +331 -0
- data/ext/drafter/src/SerializeSourcemap.h +21 -0
- data/ext/drafter/src/Version.h +40 -0
- data/ext/drafter/src/config.cc +91 -0
- data/ext/drafter/src/config.h +38 -0
- data/ext/drafter/src/drafter.cc +137 -0
- data/ext/drafter/src/drafter.h +102 -0
- data/ext/drafter/src/drafter_private.cc +85 -0
- data/ext/drafter/src/drafter_private.h +34 -0
- data/ext/drafter/src/main.cc +137 -0
- data/ext/drafter/src/refract/AppendDecorator.h +58 -0
- data/ext/drafter/src/refract/Build.h +67 -0
- data/ext/drafter/src/refract/ComparableVisitor.cc +43 -0
- data/ext/drafter/src/refract/ComparableVisitor.h +62 -0
- data/ext/drafter/src/refract/Element.cc +409 -0
- data/ext/drafter/src/refract/Element.h +656 -0
- data/ext/drafter/src/refract/ElementFwd.h +37 -0
- data/ext/drafter/src/refract/ElementInserter.h +59 -0
- data/ext/drafter/src/refract/Exception.h +31 -0
- data/ext/drafter/src/refract/ExpandVisitor.cc +359 -0
- data/ext/drafter/src/refract/ExpandVisitor.h +58 -0
- data/ext/drafter/src/refract/FilterVisitor.h +52 -0
- data/ext/drafter/src/refract/IsExpandableVisitor.cc +140 -0
- data/ext/drafter/src/refract/IsExpandableVisitor.h +31 -0
- data/ext/drafter/src/refract/Iterate.h +160 -0
- data/ext/drafter/src/refract/JSONSchemaVisitor.cc +675 -0
- data/ext/drafter/src/refract/JSONSchemaVisitor.h +73 -0
- data/ext/drafter/src/refract/PrintVisitor.cc +164 -0
- data/ext/drafter/src/refract/PrintVisitor.h +50 -0
- data/ext/drafter/src/refract/Query.cc +13 -0
- data/ext/drafter/src/refract/Query.h +38 -0
- data/ext/drafter/src/refract/Registry.cc +114 -0
- data/ext/drafter/src/refract/Registry.h +43 -0
- data/ext/drafter/src/refract/RenderJSONVisitor.cc +255 -0
- data/ext/drafter/src/refract/RenderJSONVisitor.h +51 -0
- data/ext/drafter/src/refract/SerializeCompactVisitor.cc +167 -0
- data/ext/drafter/src/refract/SerializeCompactVisitor.h +56 -0
- data/ext/drafter/src/refract/SerializeVisitor.cc +214 -0
- data/ext/drafter/src/refract/SerializeVisitor.h +55 -0
- data/ext/drafter/src/refract/TypeQueryVisitor.cc +46 -0
- data/ext/drafter/src/refract/TypeQueryVisitor.h +110 -0
- data/ext/drafter/src/refract/Visitor.h +126 -0
- data/ext/drafter/src/refract/VisitorUtils.cc +63 -0
- data/ext/drafter/src/refract/VisitorUtils.h +231 -0
- data/ext/drafter/src/reporting.cc +263 -0
- data/ext/drafter/src/reporting.h +39 -0
- data/ext/drafter/src/stream.h +148 -0
- data/ext/drafter/tools/homebrew/drafter.rb +18 -0
- data/ext/drafter/tools/make-tarball.sh +39 -0
- data/ext/drafter/tools/refract-filter.py +96 -0
- data/ext/drafter/tools/release.sh +17 -0
- data/ext/drafter/vcbuild.bat +203 -0
- data/lib/lounge_lizard/binding.rb +29 -0
- data/lib/lounge_lizard/version.rb +3 -0
- data/lib/lounge_lizard.rb +18 -0
- data/lounge_lizard.gemspec +37 -0
- metadata +547 -0
@@ -0,0 +1,224 @@
|
|
1
|
+
#!/usr/bin/env python
|
2
|
+
#
|
3
|
+
# Attribution Notice
|
4
|
+
# ------------------
|
5
|
+
# This file uses parts of Node.js `configure`.
|
6
|
+
# Please refer to https://github.com/joyent/node.
|
7
|
+
#
|
8
|
+
import sys
|
9
|
+
|
10
|
+
|
11
|
+
if sys.version_info[0] != 2:
|
12
|
+
# Since various Linux distros and OS X doesn't properly follow PEP 394,
|
13
|
+
# We've set the shebang line to `python` and erroring when it isn't
|
14
|
+
# Python 2.
|
15
|
+
print('{} requires Python 2, please install Python 2 and re-run this script.'.format(sys.argv[0]))
|
16
|
+
print('You may be able to do this with `python2 configure`.')
|
17
|
+
sys.exit()
|
18
|
+
|
19
|
+
import optparse
|
20
|
+
import os
|
21
|
+
import pprint
|
22
|
+
import re
|
23
|
+
import shlex
|
24
|
+
import subprocess
|
25
|
+
import sys
|
26
|
+
import platform
|
27
|
+
|
28
|
+
CC = os.environ.get('CC', 'cc')
|
29
|
+
|
30
|
+
root_dir = os.path.dirname(__file__)
|
31
|
+
build_dir = './build'
|
32
|
+
|
33
|
+
# Parse options
|
34
|
+
parser = optparse.OptionParser()
|
35
|
+
parser.add_option("--debug",
|
36
|
+
action="store_true",
|
37
|
+
dest="debug",
|
38
|
+
help="Also build the debug build.")
|
39
|
+
|
40
|
+
parser.add_option("--dest-cpu",
|
41
|
+
action="store",
|
42
|
+
dest="dest_cpu",
|
43
|
+
help="CPU architecture to build for. Valid values are: ia32, x64.")
|
44
|
+
|
45
|
+
parser.add_option("--shared",
|
46
|
+
action="store_true",
|
47
|
+
dest="shared",
|
48
|
+
help="Build and use shared libdrafter instead of static one.")
|
49
|
+
|
50
|
+
parser.add_option("-i", "--include-integration-tests",
|
51
|
+
action="store_true",
|
52
|
+
dest="include_integration_tests",
|
53
|
+
help="Configure for integration testing using Cucumber")
|
54
|
+
|
55
|
+
(options, args) = parser.parse_args()
|
56
|
+
|
57
|
+
def write(filename, data):
|
58
|
+
filename = os.path.join(root_dir, filename)
|
59
|
+
print("creating " + filename)
|
60
|
+
f = open(filename, 'w+')
|
61
|
+
f.write(data)
|
62
|
+
|
63
|
+
def cc_macros():
|
64
|
+
"""Checks predefined macros using the CC command."""
|
65
|
+
|
66
|
+
try:
|
67
|
+
p = subprocess.Popen(shlex.split(CC) + ['-dM', '-E', '-'],
|
68
|
+
stdin=subprocess.PIPE,
|
69
|
+
stdout=subprocess.PIPE,
|
70
|
+
stderr=subprocess.PIPE)
|
71
|
+
except OSError:
|
72
|
+
print('''Configure error: No acceptable C compiler found!
|
73
|
+
|
74
|
+
Please make sure you have a C compiler installed on your system and/or
|
75
|
+
consider adjusting the CC environment variable if you installed
|
76
|
+
it in a non-standard prefix.
|
77
|
+
''')
|
78
|
+
sys.exit()
|
79
|
+
|
80
|
+
p.stdin.write('\n')
|
81
|
+
out = p.communicate()[0]
|
82
|
+
|
83
|
+
out = str(out).split('\n')
|
84
|
+
|
85
|
+
k = {}
|
86
|
+
for line in out:
|
87
|
+
lst = shlex.split(line)
|
88
|
+
if len(lst) > 2:
|
89
|
+
key = lst[1]
|
90
|
+
val = lst[2]
|
91
|
+
k[key] = val
|
92
|
+
return k
|
93
|
+
|
94
|
+
def host_arch_cc():
|
95
|
+
"""Host architecture check using the CC command."""
|
96
|
+
|
97
|
+
k = cc_macros()
|
98
|
+
|
99
|
+
matchup = {
|
100
|
+
'__x86_64__' : 'x64',
|
101
|
+
'__i386__' : 'ia32',
|
102
|
+
'__arm__' : 'arm',
|
103
|
+
}
|
104
|
+
|
105
|
+
rtn = 'ia32' # default
|
106
|
+
|
107
|
+
for i in matchup:
|
108
|
+
if i in k and k[i] != '0':
|
109
|
+
rtn = matchup[i]
|
110
|
+
break
|
111
|
+
|
112
|
+
return rtn
|
113
|
+
|
114
|
+
def host_arch_win():
|
115
|
+
"""Host architecture check using environ vars (better way to do this?)"""
|
116
|
+
|
117
|
+
arch = os.environ.get('PROCESSOR_ARCHITECTURE', 'x86')
|
118
|
+
|
119
|
+
matchup = {
|
120
|
+
'AMD64' : 'x64',
|
121
|
+
'x86' : 'ia32',
|
122
|
+
'arm' : 'arm',
|
123
|
+
}
|
124
|
+
|
125
|
+
return matchup.get(arch, 'ia32')
|
126
|
+
|
127
|
+
def configure_drafter(o):
|
128
|
+
# Build configuration
|
129
|
+
o['default_configuration'] = 'Debug' if options.debug else 'Release'
|
130
|
+
|
131
|
+
# Architecture
|
132
|
+
host_arch = host_arch_win() if os.name == 'nt' else host_arch_cc()
|
133
|
+
target_arch = options.dest_cpu or host_arch
|
134
|
+
o['variables']['host_arch'] = host_arch
|
135
|
+
o['variables']['target_arch'] = target_arch
|
136
|
+
o['variables']['libdrafter_type'] = 'shared_library' if options.shared else 'static_library'
|
137
|
+
|
138
|
+
#
|
139
|
+
# Cucumber testing environment
|
140
|
+
#
|
141
|
+
# TODO: use bundle check
|
142
|
+
if options.include_integration_tests:
|
143
|
+
print("Installing dependencies for integration tests...")
|
144
|
+
try:
|
145
|
+
if sys.platform == 'win32':
|
146
|
+
subprocess.call(["bundle.bat", "install"])
|
147
|
+
else:
|
148
|
+
subprocess.call(["bundle", "install"])
|
149
|
+
except OSError as e:
|
150
|
+
if e.errno == os.errno.ENOENT:
|
151
|
+
raise RuntimeError(
|
152
|
+
"Integration test dependecies rely on Ruby Bundler "
|
153
|
+
"but it cannot be found in the system $PATH. "
|
154
|
+
"Please make sure to install Bundler or/and to "
|
155
|
+
"add it to the $PATH. E.g.: by running `sudo gem install bundler`"
|
156
|
+
)
|
157
|
+
else:
|
158
|
+
raise
|
159
|
+
|
160
|
+
#
|
161
|
+
# config.gypi
|
162
|
+
#
|
163
|
+
output = {
|
164
|
+
'variables': { 'python': sys.executable },
|
165
|
+
'include_dirs': [],
|
166
|
+
'libraries': [],
|
167
|
+
'defines': [],
|
168
|
+
'cflags': [],
|
169
|
+
}
|
170
|
+
|
171
|
+
configure_drafter(output)
|
172
|
+
|
173
|
+
# variables should be a root level element,
|
174
|
+
# move everything else to target_defaults
|
175
|
+
variables = output['variables']
|
176
|
+
del output['variables']
|
177
|
+
output = {
|
178
|
+
'variables': variables,
|
179
|
+
'target_defaults': output
|
180
|
+
}
|
181
|
+
|
182
|
+
write('config.gypi', "# Do not edit. Generated by the configure script.\n" +
|
183
|
+
pprint.pformat(output, indent=2) + "\n")
|
184
|
+
|
185
|
+
#
|
186
|
+
# config.mk
|
187
|
+
#
|
188
|
+
config = {
|
189
|
+
'BUILDTYPE': 'Debug' if options.debug else 'Release',
|
190
|
+
'PYTHON': sys.executable,
|
191
|
+
'BUILD_DIR': build_dir,
|
192
|
+
'INTEGRATION_TESTS': '1' if options.include_integration_tests else ''
|
193
|
+
}
|
194
|
+
config = '\n'.join(map('='.join, config.iteritems())) + '\n'
|
195
|
+
|
196
|
+
write('config.mk',
|
197
|
+
'# Do not edit. Generated by the configure script.\n' + config)
|
198
|
+
|
199
|
+
#
|
200
|
+
# Gyp call
|
201
|
+
#
|
202
|
+
print("creating makefiles")
|
203
|
+
|
204
|
+
gyp_args = ['--generator-output', build_dir, '--depth', '.']
|
205
|
+
if sys.platform == 'win32':
|
206
|
+
# Windows
|
207
|
+
gyp_args.extend(['-f', 'msvs'])
|
208
|
+
else:
|
209
|
+
# Posix systems
|
210
|
+
gyp_args.extend(['-f', 'make'])
|
211
|
+
|
212
|
+
# Include common.gypi and config.gypi
|
213
|
+
if sys.platform == 'win32':
|
214
|
+
options_fn = os.path.join(root_dir, 'config.gypi')
|
215
|
+
else:
|
216
|
+
options_fn = os.path.join(os.path.abspath(root_dir), 'config.gypi')
|
217
|
+
|
218
|
+
if os.path.exists(options_fn):
|
219
|
+
gyp_args.extend(['-I', options_fn])
|
220
|
+
|
221
|
+
subprocess.call([sys.executable, 'ext/snowcrash/tools/gyp/gyp_main.py'] + gyp_args)
|
222
|
+
|
223
|
+
# All done
|
224
|
+
print("All OK.")
|
@@ -0,0 +1,189 @@
|
|
1
|
+
{
|
2
|
+
"includes": [
|
3
|
+
"ext/snowcrash/common.gypi"
|
4
|
+
],
|
5
|
+
|
6
|
+
"targets" : [
|
7
|
+
|
8
|
+
# LIBSOS
|
9
|
+
{
|
10
|
+
'target_name': 'libsos',
|
11
|
+
'type': 'static_library',
|
12
|
+
'direct_dependent_settings' : {
|
13
|
+
'include_dirs': [ 'ext/sos/src' ],
|
14
|
+
},
|
15
|
+
'sources': [
|
16
|
+
'ext/sos/src/sos.cc',
|
17
|
+
'ext/sos/src/sos.h',
|
18
|
+
'ext/sos/src/sosJSON.h',
|
19
|
+
'ext/sos/src/sosYAML.h'
|
20
|
+
]
|
21
|
+
},
|
22
|
+
|
23
|
+
# LIBDRAFTER
|
24
|
+
{
|
25
|
+
"target_name": "libdrafter",
|
26
|
+
'type': '<(libdrafter_type)',
|
27
|
+
"conditions" : [
|
28
|
+
[ 'libdrafter_type=="shared_library"', { 'defines' : [ 'DRAFTER_BUILD_SHARED' ] }, { 'defines' : [ 'DRAFTER_BUILD_STATIC' ] }],
|
29
|
+
],
|
30
|
+
'direct_dependent_settings' : {
|
31
|
+
'include_dirs': [
|
32
|
+
'src',
|
33
|
+
],
|
34
|
+
},
|
35
|
+
'export_dependent_settings': [
|
36
|
+
'libsos',
|
37
|
+
'ext/snowcrash/snowcrash.gyp:libsnowcrash',
|
38
|
+
],
|
39
|
+
"sources": [
|
40
|
+
"src/drafter.h",
|
41
|
+
"src/drafter.cc",
|
42
|
+
"src/drafter_private.h",
|
43
|
+
"src/drafter_private.cc",
|
44
|
+
"src/stream.h",
|
45
|
+
"src/Version.h",
|
46
|
+
|
47
|
+
"src/NodeInfo.h",
|
48
|
+
"src/Serialize.h",
|
49
|
+
"src/Serialize.cc",
|
50
|
+
"src/SerializeAST.h",
|
51
|
+
"src/SerializeAST.cc",
|
52
|
+
"src/SerializeSourcemap.h",
|
53
|
+
"src/SerializeSourcemap.cc",
|
54
|
+
"src/SerializeResult.h",
|
55
|
+
"src/SerializeResult.cc",
|
56
|
+
"src/RefractAPI.h",
|
57
|
+
"src/RefractAPI.cc",
|
58
|
+
"src/RefractDataStructure.h",
|
59
|
+
"src/RefractDataStructure.cc",
|
60
|
+
"src/RefractSourceMap.h",
|
61
|
+
"src/RefractSourceMap.cc",
|
62
|
+
"src/Render.h",
|
63
|
+
"src/Render.cc",
|
64
|
+
"src/NamedTypesRegistry.cc",
|
65
|
+
"src/NamedTypesRegistry.h",
|
66
|
+
"src/RefractElementFactory.h",
|
67
|
+
"src/RefractElementFactory.cc",
|
68
|
+
"src/ConversionContext.cc",
|
69
|
+
"src/ConversionContext.h",
|
70
|
+
|
71
|
+
# librefract parts - will be separated into other project
|
72
|
+
"src/refract/Element.h",
|
73
|
+
"src/refract/Element.cc",
|
74
|
+
"src/refract/ElementFwd.h",
|
75
|
+
|
76
|
+
"src/refract/Visitor.h",
|
77
|
+
|
78
|
+
"src/refract/VisitorUtils.h",
|
79
|
+
"src/refract/VisitorUtils.cc",
|
80
|
+
|
81
|
+
"src/refract/SerializeCompactVisitor.h",
|
82
|
+
"src/refract/SerializeCompactVisitor.cc",
|
83
|
+
"src/refract/SerializeVisitor.h",
|
84
|
+
"src/refract/SerializeVisitor.cc",
|
85
|
+
"src/refract/ComparableVisitor.h",
|
86
|
+
"src/refract/ComparableVisitor.cc",
|
87
|
+
"src/refract/TypeQueryVisitor.h",
|
88
|
+
"src/refract/TypeQueryVisitor.cc",
|
89
|
+
"src/refract/IsExpandableVisitor.h",
|
90
|
+
"src/refract/IsExpandableVisitor.cc",
|
91
|
+
"src/refract/ExpandVisitor.h",
|
92
|
+
"src/refract/ExpandVisitor.cc",
|
93
|
+
"src/refract/RenderJSONVisitor.h",
|
94
|
+
"src/refract/RenderJSONVisitor.cc",
|
95
|
+
"src/refract/PrintVisitor.h",
|
96
|
+
"src/refract/PrintVisitor.cc",
|
97
|
+
"src/refract/JSONSchemaVisitor.h",
|
98
|
+
"src/refract/JSONSchemaVisitor.cc",
|
99
|
+
"src/refract/FilterVisitor.h",
|
100
|
+
|
101
|
+
"src/refract/Registry.h",
|
102
|
+
"src/refract/Registry.cc",
|
103
|
+
|
104
|
+
"src/refract/Build.h",
|
105
|
+
|
106
|
+
"src/refract/AppendDecorator.h",
|
107
|
+
"src/refract/ElementInserter.h",
|
108
|
+
"src/refract/Query.h",
|
109
|
+
"src/refract/Query.cc",
|
110
|
+
"src/refract/Iterate.h",
|
111
|
+
],
|
112
|
+
"dependencies": [
|
113
|
+
"libsos",
|
114
|
+
"ext/snowcrash/snowcrash.gyp:libsnowcrash",
|
115
|
+
],
|
116
|
+
},
|
117
|
+
|
118
|
+
# TESTLIBDRAFTER
|
119
|
+
{
|
120
|
+
'target_name': 'test-libdrafter',
|
121
|
+
'type': 'executable',
|
122
|
+
'include_dirs': [
|
123
|
+
'test/vendor/Catch/include',
|
124
|
+
'test/vendor/dtl/dtl',
|
125
|
+
'src/refract',
|
126
|
+
],
|
127
|
+
'sources': [
|
128
|
+
"test/test-drafter.cc",
|
129
|
+
"test/test-SerializeResultTest.cc",
|
130
|
+
"test/test-SerializeSourceMapTest.cc",
|
131
|
+
"test/test-RefractDataStructureTest.cc",
|
132
|
+
"test/test-RefractAPITest.cc",
|
133
|
+
"test/test-RefractParseResultTest.cc",
|
134
|
+
"test/test-RenderTest.cc",
|
135
|
+
"test/test-RefractSourceMapTest.cc",
|
136
|
+
"test/test-SchemaTest.cc",
|
137
|
+
"test/test-CircularReferenceTest.cc",
|
138
|
+
"test/test-ApplyVisitorTest.cc",
|
139
|
+
"test/test-ExtendElementTest.cc",
|
140
|
+
"test/test-ElementFactoryTest.cc",
|
141
|
+
"test/test-OneOfTest.cc",
|
142
|
+
"test/test-SyntaxIssuesTest.cc",
|
143
|
+
],
|
144
|
+
'dependencies': [
|
145
|
+
"libdrafter",
|
146
|
+
],
|
147
|
+
'conditions': [
|
148
|
+
[ 'OS=="win"', { 'defines' : [ 'WIN' ] } ]
|
149
|
+
],
|
150
|
+
},
|
151
|
+
|
152
|
+
# DRAFTER
|
153
|
+
{
|
154
|
+
"target_name": "drafter",
|
155
|
+
"type": "executable",
|
156
|
+
"conditions" : [
|
157
|
+
[ 'libdrafter_type=="static_library"', { 'defines' : [ 'DRAFTER_BUILD_STATIC' ] }],
|
158
|
+
],
|
159
|
+
"sources": [
|
160
|
+
"src/main.cc",
|
161
|
+
"src/config.cc",
|
162
|
+
"src/config.h",
|
163
|
+
"src/reporting.cc",
|
164
|
+
"src/reporting.h",
|
165
|
+
],
|
166
|
+
"include_dirs": [
|
167
|
+
"ext/cmdline",
|
168
|
+
],
|
169
|
+
"dependencies": [
|
170
|
+
"libdrafter",
|
171
|
+
],
|
172
|
+
},
|
173
|
+
|
174
|
+
# DRAFTER C-API TEST
|
175
|
+
{
|
176
|
+
"target_name": "test-capi",
|
177
|
+
"type": "executable",
|
178
|
+
"conditions" : [
|
179
|
+
[ 'libdrafter_type=="static_library"', { 'defines' : [ 'DRAFTER_BUILD_STATIC' ] }],
|
180
|
+
],
|
181
|
+
"sources": [
|
182
|
+
"test/test-CAPI.c"
|
183
|
+
],
|
184
|
+
"dependencies": [
|
185
|
+
"libdrafter",
|
186
|
+
],
|
187
|
+
},
|
188
|
+
],
|
189
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Workspace
|
3
|
+
version = "1.0">
|
4
|
+
<FileRef
|
5
|
+
location = "group:ext/snowcrash/ext/markdown-parser/markdownparser.xcodeproj">
|
6
|
+
</FileRef>
|
7
|
+
<FileRef
|
8
|
+
location = "group:ext/snowcrash/snowcrash.xcodeproj">
|
9
|
+
</FileRef>
|
10
|
+
<FileRef
|
11
|
+
location = "group:drafter.xcodeproj">
|
12
|
+
</FileRef>
|
13
|
+
</Workspace>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
-include config.mk
|
2
|
+
|
3
|
+
BUILDTYPE ?= Release
|
4
|
+
BUILD_DIR ?= ./build
|
5
|
+
PYTHON ?= python
|
6
|
+
GYP ?= ./tools/gyp/gyp
|
7
|
+
DESTDIR ?= /usr/local/bin
|
8
|
+
|
9
|
+
# Default to verbose builds
|
10
|
+
V ?= 1
|
11
|
+
|
12
|
+
# Targets
|
13
|
+
all: libsnowcrash
|
14
|
+
|
15
|
+
.PHONY: libsnowcrash test-libsnowcrash
|
16
|
+
|
17
|
+
libsnowcrash: config.gypi $(BUILD_DIR)/Makefile
|
18
|
+
$(MAKE) -C $(BUILD_DIR) V=$(V) libsnowcrash
|
19
|
+
|
20
|
+
test-libsnowcrash: config.gypi $(BUILD_DIR)/Makefile
|
21
|
+
$(MAKE) -C $(BUILD_DIR) V=$(V) test-libsnowcrash
|
22
|
+
mkdir -p ./bin
|
23
|
+
cp -f $(BUILD_DIR)/out/$(BUILDTYPE)/test-libsnowcrash ./bin/test-libsnowcrash
|
24
|
+
|
25
|
+
perf-libsnowcrash: config.gypi $(BUILD_DIR)/Makefile
|
26
|
+
$(MAKE) -C $(BUILD_DIR) V=$(V) perf-libsnowcrash
|
27
|
+
mkdir -p ./bin
|
28
|
+
cp -f $(BUILD_DIR)/out/$(BUILDTYPE)/perf-libsnowcrash ./bin/perf-libsnowcrash
|
29
|
+
|
30
|
+
config.gypi: configure
|
31
|
+
$(PYTHON) ./configure
|
32
|
+
|
33
|
+
$(BUILD_DIR)/Makefile:
|
34
|
+
$(GYP) -f make --generator-output $(BUILD_DIR) --depth=.
|
35
|
+
|
36
|
+
$(BUILD_DIR)/out/$(BUILDTYPE)/libsnowcrash.a: libsnowcrash
|
37
|
+
|
38
|
+
clean:
|
39
|
+
rm -rf $(BUILD_DIR)/out
|
40
|
+
rm -rf ./bin
|
41
|
+
|
42
|
+
distclean:
|
43
|
+
rm -rf ./build
|
44
|
+
rm -f ./config.mk
|
45
|
+
rm -f ./config.gypi
|
46
|
+
rm -rf ./bin
|
47
|
+
|
48
|
+
test: test-libsnowcrash
|
49
|
+
$(BUILD_DIR)/out/$(BUILDTYPE)/test-libsnowcrash
|
50
|
+
|
51
|
+
ifdef INTEGRATION_TESTS
|
52
|
+
bundle exec cucumber
|
53
|
+
endif
|
54
|
+
|
55
|
+
perf: perf-libsnowcrash
|
56
|
+
$(BUILD_DIR)/out/$(BUILDTYPE)/perf-libsnowcrash ./test/performance/fixtures/fixture-1.apib
|
57
|
+
|
58
|
+
.PHONY: libsnowcrash test-libsnowcrash perf-libsnowcrash clean distclean test
|
@@ -0,0 +1,165 @@
|
|
1
|
+
#
|
2
|
+
# Common build configuration
|
3
|
+
# ==========================
|
4
|
+
#
|
5
|
+
# GYP include file with common configuration settings.
|
6
|
+
#
|
7
|
+
# Attribution Notice:
|
8
|
+
# This work might use parts of Node.js `common.gypi` (https://github.com/joyent/node).
|
9
|
+
#
|
10
|
+
{
|
11
|
+
'variables': {
|
12
|
+
'target_arch%': 'ia32',
|
13
|
+
'libsnowcrash_type%': 'static_library'
|
14
|
+
},
|
15
|
+
'target_defaults': {
|
16
|
+
'defines': [
|
17
|
+
'BUILDING_SNOWCRASH=1'
|
18
|
+
],
|
19
|
+
'configurations': {
|
20
|
+
'Debug': {
|
21
|
+
'defines': [ 'DEBUG', '_DEBUG' ],
|
22
|
+
'cflags': [ '-g', '-O0' ],
|
23
|
+
'conditions': [
|
24
|
+
['target_arch=="x64"', {
|
25
|
+
'msvs_configuration_platform': 'x64',
|
26
|
+
}],
|
27
|
+
],
|
28
|
+
'msvs_settings': {
|
29
|
+
'VCCLCompilerTool': {
|
30
|
+
'PreprocessorDefinitions': ['_SECURE_SCL=0', '_HAS_ITERATOR_DEBUGGING=0' ], # https://github.com/xbmc/xbmc/pull/1009
|
31
|
+
'RuntimeLibrary': 3, # dll debug
|
32
|
+
'Optimization': 0, # /Od, no optimization
|
33
|
+
'MinimalRebuild': 'false',
|
34
|
+
'OmitFramePointers': 'false',
|
35
|
+
'BasicRuntimeChecks': 3, # /RTC1
|
36
|
+
'RuntimeTypeInfo': 'true', # /GR, determine object type at runtime
|
37
|
+
'DebugInformationFormat': 3, # /Zi, use program database as debugging information
|
38
|
+
'ExceptionHandling': 1
|
39
|
+
},
|
40
|
+
'VCLinkerTool': {
|
41
|
+
'LinkIncremental': 2, # enable incremental linking
|
42
|
+
'GenerateDebugInformation': 'true', # /DEBUG enable line by line debugging
|
43
|
+
'SubSystem': 1 # /SUBSYSTEM:CONSOLE use console as native environment
|
44
|
+
},
|
45
|
+
},
|
46
|
+
'xcode_settings': {
|
47
|
+
'GCC_OPTIMIZATION_LEVEL': '0', # stop gyp from defaulting to -Os
|
48
|
+
}
|
49
|
+
},
|
50
|
+
'Release': {
|
51
|
+
'conditions': [
|
52
|
+
['target_arch=="x64"', {
|
53
|
+
'msvs_configuration_platform': 'x64',
|
54
|
+
}],
|
55
|
+
],
|
56
|
+
'msvs_settings': {
|
57
|
+
'VCCLCompilerTool': {
|
58
|
+
'RuntimeLibrary': 2, # dll release
|
59
|
+
'Optimization': 0, # /Od, no optimizations
|
60
|
+
'FavorSizeOrSpeed': 1, # /Ot, favour speed over size
|
61
|
+
'InlineFunctionExpansion': 2, # /Ob2, inline anything eligible
|
62
|
+
'WholeProgramOptimization': 'true', # /GL, whole program optimization, needed for LTCG
|
63
|
+
'OmitFramePointers': 'true',
|
64
|
+
'EnableFunctionLevelLinking': 'true',
|
65
|
+
'EnableIntrinsicFunctions': 'true',
|
66
|
+
'RuntimeTypeInfo': 'true', # /GR, determine object type at runtime
|
67
|
+
'ExceptionHandling': 1,
|
68
|
+
'AdditionalOptions': [
|
69
|
+
'/MP', # compile across multiple CPUs
|
70
|
+
]
|
71
|
+
},
|
72
|
+
'VCLibrarianTool': {
|
73
|
+
'AdditionalOptions': [
|
74
|
+
'/LTCG', # link time code generation
|
75
|
+
],
|
76
|
+
},
|
77
|
+
'VCLinkerTool': {
|
78
|
+
'LinkTimeCodeGeneration': 1, # link-time code generation
|
79
|
+
'OptimizeReferences': 2, # /OPT:REF
|
80
|
+
'EnableCOMDATFolding': 2, # /OPT:ICF
|
81
|
+
'LinkIncremental': 1, # disable incremental linking
|
82
|
+
'SubSystem': 1 # /SUBSYSTEM:CONSOLE use console as native environment
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
},
|
87
|
+
'conditions': [
|
88
|
+
['OS == "win"', {
|
89
|
+
'msvs_cygwin_shell': 0, # prevent actions from trying to use cygwin
|
90
|
+
'defines': [
|
91
|
+
'WIN32',
|
92
|
+
# we don't really want VC++ warning us about
|
93
|
+
# how dangerous C functions are...
|
94
|
+
'_CRT_SECURE_NO_DEPRECATE',
|
95
|
+
# ... or that C implementations shouldn't use
|
96
|
+
# POSIX names
|
97
|
+
'_CRT_NONSTDC_NO_DEPRECATE'
|
98
|
+
],
|
99
|
+
}],
|
100
|
+
[ 'OS in "linux freebsd openbsd solaris"', {
|
101
|
+
'cflags': [ '-fPIC' ],
|
102
|
+
}],
|
103
|
+
[ 'OS in "linux freebsd openbsd solaris android"', {
|
104
|
+
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-comment' ],
|
105
|
+
'cflags_cc!': [ '-fno-rtti', '-fno-exceptions' ],
|
106
|
+
'cflags_cc': [ '-std=c++11' ],
|
107
|
+
'ldflags': [ '-rdynamic' ],
|
108
|
+
'target_conditions': [
|
109
|
+
['_type=="static_library"', {
|
110
|
+
'standalone_static_library': 1, # disable thin archive which needs binutils >= 2.19
|
111
|
+
}],
|
112
|
+
],
|
113
|
+
'conditions': [
|
114
|
+
[ 'target_arch=="ia32"', {
|
115
|
+
'cflags': [ '-m32' ],
|
116
|
+
'ldflags': [ '-m32' ],
|
117
|
+
}],
|
118
|
+
[ 'target_arch=="x64"', {
|
119
|
+
'cflags': [ '-m64' ],
|
120
|
+
'ldflags': [ '-m64' ],
|
121
|
+
}]
|
122
|
+
]
|
123
|
+
}],
|
124
|
+
['OS=="mac"', {
|
125
|
+
'defines': ['_DARWIN_USE_64_BIT_INODE=1'],
|
126
|
+
'xcode_settings': {
|
127
|
+
'ALWAYS_SEARCH_USER_PATHS': 'NO',
|
128
|
+
'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks
|
129
|
+
'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic (Equivalent to -fPIC)
|
130
|
+
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', # !-fno-exceptions
|
131
|
+
'GCC_ENABLE_CPP_RTTI': 'YES', # !-fno-rtti
|
132
|
+
'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
|
133
|
+
'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
|
134
|
+
'PREBINDING': 'NO', # No -Wl,-prebind
|
135
|
+
'MACOSX_DEPLOYMENT_TARGET': '10.7', # -mmacosx-version-min=10.7
|
136
|
+
'USE_HEADERMAP': 'NO',
|
137
|
+
'OTHER_CFLAGS': [
|
138
|
+
'-fno-strict-aliasing',
|
139
|
+
],
|
140
|
+
'CLANG_CXX_LANGUAGE_STANDARD': 'c++0x',
|
141
|
+
'CLANG_CXX_LIBRARY': 'libc++',
|
142
|
+
'WARNING_CFLAGS': [
|
143
|
+
'-Wall',
|
144
|
+
'-Wendif-labels',
|
145
|
+
'-W',
|
146
|
+
'-Wno-unused-parameter',
|
147
|
+
],
|
148
|
+
},
|
149
|
+
'target_conditions': [
|
150
|
+
['_type!="static_library"', {
|
151
|
+
'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
|
152
|
+
}],
|
153
|
+
],
|
154
|
+
'conditions': [
|
155
|
+
['target_arch=="ia32"', {
|
156
|
+
'xcode_settings': {'ARCHS': ['i386']},
|
157
|
+
}],
|
158
|
+
['target_arch=="x64"', {
|
159
|
+
'xcode_settings': {'ARCHS': ['x86_64']},
|
160
|
+
}],
|
161
|
+
],
|
162
|
+
}]
|
163
|
+
],
|
164
|
+
}
|
165
|
+
}
|