commit | 928ef7f2c02f18d9945dd750884dffbdebef1b98 | [log] [tgz] |
---|---|---|
author | Joshua Haberman <jhaberman@gmail.com> | Wed Mar 27 12:52:33 2019 -0700 |
committer | GitHub <noreply@github.com> | Wed Mar 27 12:52:33 2019 -0700 |
tree | d3b71619bfa0b8a91854045c01ce8b5cd15ae403 | |
parent | 00f96cb9475228ecacd9be1660f4f8d9d7b24038 [diff] |
Removed reflection and other extraneous things from the core library. (#158) * Removed reflection and other extraneous things from the core library. * Added missing files and ran buildifier. * New CMakeLists.txt. * Made table its own cc_library() for internal usage.
μpb is a small protobuf implementation written in C.
API and ABI are both subject to change! Please do not distribute as a shared library for this reason (for now at least).
The core libraries are pure C99 and have no dependencies.
$ make
This will create a separate C library for each core library in lib/
. They are built separately to help your binaries slim, so you don't need to link in things you neither want or need.
Other useful targets:
$ make tests $ make test
The public C/C++ API is defined by all of the .h files in upb/
except .int.h
files (which are internal-only).
Lua bindings provide μpb's functionality to Lua programs. The bindings target Lua 5.1, Lua 5.2, LuaJIT, and (soon) Lua 5.3.
To build the Lua bindings, the Lua libraries must be installed. Once they are installed, run:
$ make lua
Note that if the Lua headers are not in a standard place, you may need to pass custom flags:
$ make lua USER_CPPFLAGS=`pkg-config lua5.2 --cflags`
To test the Lua bindings:
$ make testlua
Author: Josh Haberman (jhaberman@gmail.com, haberman@google.com)