Skip to content

C development knowhow

Craig Tiller edited this page May 20, 2015 · 9 revisions

Getting your repo to a state where it can build

Getting the submodules

$ git submodule update --init

Install needed ubuntu packages

$ apt-get install libgflags-dev libgtest-dev php5-dev npm node-gyp

Install protobuf (manual for now)

$ cd third_party/protobuf
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install

Add a symlink from nodejs to node

Build and run tests

$ ./tools/run_tests/run_tests.py -c opt -l c++

Build and run tests from several languages

$ ./tools/run_tests/run_tests.py -c opt -l c c++ node python ruby csharp

Build and run tests many times

$ ./tools/run_tests/run_tests.py -c opt -l python -n 100