Skip to content

Add a Bazel build file for lightstep-tracer-cpp.#85

Merged
rnburn merged 1 commit intolightstep:masterfrom
jmillikin-stripe:bazel
Nov 10, 2017
Merged

Add a Bazel build file for lightstep-tracer-cpp.#85
rnburn merged 1 commit intolightstep:masterfrom
jmillikin-stripe:bazel

Conversation

@jmillikin-stripe
Copy link
Contributor

This lets projects that use the Bazel build system (http://bazel.build)
more easily depend on Lightstep's C++ tracer.

To generate config.h and version.h, the config shells out to cmake
instead of duplicating the existing version definitions from CMakeLists.txt.

The unprefixed collector.pb.h includes and vendoring of googleapis gave
me some trouble, so I used local_repository to treat those as separate
Bazel workspaces. We should be able to clean that up when
lightstep-tracer-common gets its own BUILD files.

This lets projects that use the Bazel build system (http://bazel.build)
more easily depend on Lightstep's C++ tracer.

To generate `config.h` and `version.h`, the config shells out to `cmake`
instead of duplicating the existing version definitions from `CMakeLists.txt`.

The unprefixed `collector.pb.h` includes and vendoring of `googleapis` gave
me some trouble, so I used `local_repository` to treat those as separate
Bazel workspaces. We should be able to clean that up when
`lightstep-tracer-common` gets its own BUILD files.
@rnburn
Copy link
Contributor

rnburn commented Nov 10, 2017

Thank you. I'll do some rearranging to make this more bazel-friendly.

@rnburn rnburn merged commit e248a11 into lightstep:master Nov 10, 2017
@jmillikin-stripe jmillikin-stripe deleted the bazel branch November 10, 2017 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants