1. 15 Apr, 2017 1 commit
  2. 12 Apr, 2017 1 commit
  3. 11 Apr, 2017 1 commit
  4. 10 Apr, 2017 1 commit
    • Kenton Varda's avatar
      Move a couple things from libkj-test into libkj proper. · ca7304b5
      Kenton Varda authored
      This allows functions which use KJ_EXPECT and other test macros to be built without linking libkj-test, which pulls in a possibly-unwanted main() function.
      
      In particular, afl-testcase.c++ could not link in -fno-exceptions mode without this change.
      ca7304b5
  5. 07 Apr, 2017 3 commits
  6. 04 Apr, 2017 1 commit
  7. 17 Mar, 2017 1 commit
  8. 24 Jan, 2017 1 commit
    • Harris Hancock's avatar
      Move RawSchema, RawBrandedSchema to raw-schema.h · ecb0c9d6
      Harris Hancock authored
      This is necessary to resolve an MSVC compile error in capability.h:
      
      struct RawSchema;
      extern const RawSchema NULL_INTERFACE_SCHEMA;
      constexpr RawSchema const* schema = &NULL_INTERFACE_SCHEMA;
      
      causes MSVC to complain that `schema` is not initialized by a constant
      expression. Providing the full definition of RawSchema resolves this
      spurious error, so I moved it out of generated-header-support.h and into
      its own raw-schema.h.
      ecb0c9d6
  9. 23 Jan, 2017 1 commit
  10. 22 Jan, 2017 1 commit
  11. 12 Dec, 2016 1 commit
  12. 07 Nov, 2016 1 commit
  13. 29 Mar, 2016 1 commit
  14. 15 Feb, 2016 1 commit
  15. 28 Sep, 2015 1 commit
  16. 08 Jul, 2015 1 commit
  17. 22 Jun, 2015 1 commit
  18. 26 May, 2015 1 commit
    • Kenton Varda's avatar
      sed -r is a GNU extension, apparently, and due to stars aligning, this didn't… · 25be62be
      Kenton Varda authored
      sed -r is a GNU extension, apparently, and due to stars aligning, this didn't break the build, but led to a totally bogus soname on non-GNU systems. Argh.
      
      Apparently most systems (including GNU, undocumentedly) support -E instead, but perhaps the safest thing is to use a basic regular expression. Unfortunately on many systems ? and + are not available in basic regexes, but using * instead happens to work in our case.
      
      Thanks to @neverpanic for catching this.
      
      Fixes #210
      25be62be
  19. 16 May, 2015 1 commit
  20. 09 May, 2015 1 commit
  21. 02 Mar, 2015 1 commit
  22. 25 Feb, 2015 1 commit
  23. 01 Jan, 2015 1 commit
  24. 30 Dec, 2014 1 commit
  25. 15 Dec, 2014 1 commit
    • Kenton Varda's avatar
      Add missing file to Makefile.am. · cc53e84d
      Kenton Varda authored
      Failed to notice this because only the cmake build refers to it, and this only makes cmake fail on installation, which was never quite tested.
      cc53e84d
  26. 14 Dec, 2014 1 commit
  27. 12 Dec, 2014 1 commit
  28. 23 Nov, 2014 2 commits
  29. 22 Nov, 2014 2 commits
  30. 14 Nov, 2014 1 commit
  31. 06 Nov, 2014 1 commit
  32. 26 Oct, 2014 2 commits
    • Philip Quinn's avatar
      Fix install/uninstall automake hooks for CAPNP_LITE builds. · 7b7282eb
      Philip Quinn authored
      The command-line tools aren't built in LITE_MODE, so there's nothing
      to create a symlink to.
      7b7282eb
    • Kenton Varda's avatar
      Implement "lite mode", where reflection is disabled. · c772a700
      Kenton Varda authored
      To use, pass --disable-reflection to the configure script.
      
      This produces a smaller runtime library. However, using it for this purpose is not recommended. The main purpose of lite mode is to define a subset of Cap'n Proto which might plausibly compile under MSVC. MSVC still lacks full support for constexpr and expression SFINAE; luckily, most of our use of these things relates to reflection, and not all users need reflection.
      
      Cap'n Proto lite mode inherits its name from Protocol Buffers' lite mode. However, there are some key differences:
      
      - Protobuf generated code included global constructors related to registering descriptors and extensions. For many people, this was the main reason to use lite mode: to get rid of these global constructors and achieve faster startup times. Cap'n Proto, on the other hand, never had global constructors in the first place.
      
      - Schemas are actually still available in lite mode, though only in their raw (Cap'n Proto structure) form. Only the schema API (which wraps the raw schemas in a more convenient interface) and reflection API (which offers a convenient way to use the schemas) are unavailable.
      
      - Lite mode is enabled in an application by defining CAPNP_LITE rather than by specifying an annotation in the schema file. This better-reflects real-world usage patterns, where you typically want to enable lite mode application-wide anyway.
      
      - We do not build the lite mode library by default. You must request it by passing --disable-reflection to the configure script. Before you can do that, you must have a prebuilt Cap'n Proto compiler binary available, since the compiler can't be built without reflection.
      
      - Relatedly, the lite mode library is built with the same name as the full library. This library is not intended to be installed. If anything it should be statically linked. But, mostly the option only exists on non-MSVC platform to give us a way to test that we haven't broken lite mode.
      c772a700
  33. 20 Oct, 2014 1 commit
    • Kenton Varda's avatar
      Fix build for C++11. · 4692a669
      Kenton Varda authored
      1) Apparently mixing member defaults and initializer lists is a C++14 thing.
      2) My test script compiles with -Werror which errors out on calls to now-deprecated getDependency().
      4692a669
  34. 13 Jul, 2014 1 commit
  35. 07 Apr, 2014 1 commit