aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/cacheFactory.js
AgeCommit message (Expand)Author
2013-10-22style: make jshint happyVojta Jina
2013-07-27docs(*): fixed typos and ngdoc parameter namesCarl Danley
2013-07-23docs(cacheFactory): correct typosSpencer
2013-07-17docs($templateCache): add examples of usageSpencer
2013-07-01docs($cacheFactory): show that you can access existing cachesItamar Rogel
2013-06-17chore(minErr): replace ngError with minErrKen Sheedlo
2013-05-24feat(ngError): add error message compression and better error messagesIgor Minar
2012-11-25feat($cacheFactory): cache.put now returns the added valueJP Sugarbroad
2012-11-24fix($cacheFactory): return undefined when removing non-existent entryJeremy Tymes
2012-09-11docs($cacheFactory): fix backquotes on method descriptionsDaniel Luz
2012-06-12docs(*): simplify doc urlsIgor Minar
2012-05-04chore(docs): re-skin main documentationMisko Hevery
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery
877fc811acfb34f62713a35ba4742452" end def install gccversion = `g++ -dumpversion`.strip libs = buildpath/"libs/linux-gcc-#{gccversion}/" scons "platform=linux-gcc" system "install_name_tool", "-id", lib/"libjsoncpp.dylib", libs/"libjson_linux-gcc-#{gccversion}_libmt.dylib" lib.install libs/"libjson_linux-gcc-#{gccversion}_libmt.dylib" => "libjsoncpp.dylib" lib.install libs/"libjson_linux-gcc-#{gccversion}_libmt.a" =>"libjsoncpp.a" (include/"jsoncpp").install buildpath/"include/json" (lib/"pkgconfig/jsoncpp.pc").write <<-EOS.undent prefix=#{prefix} exec_prefix=${prefix} libdir=#{lib} includedir=#{include} Name: jsoncpp Description: API for manipulating JSON Version: #{version} URL: https://github.com/open-source-parsers/jsoncpp Libs: -L${libdir} -ljsoncpp Cflags: -I${includedir}/jsoncpp/ EOS end test do (testpath/"test.cpp").write <<-EOS.undent #include <json/json.h> int main() { Json::Value root; Json::Reader reader; return reader.parse("[1, 2, 3]", root) ? 0: 1; } EOS system ENV.cxx, "test.cpp", "-o", "test", "-I#{include}/jsoncpp", "-L#{lib}", "-ljsoncpp" system "./test" end end