Commit Graph

56 Commits

Author SHA1 Message Date
Rodrigo Queiro
3106945d8d Add workaround for Bazel build on macOS
This works around https://github.com/bazelbuild/bazel/issues/3979,
and so closes #282.
2018-01-16 17:06:15 +01:00
Rodrigo Queiro
3efe9e4025 Add an example using glog from Bazel 2018-01-04 11:35:53 +01:00
Rodrigo Queiro
2a593235ba Update gflags to latest master
This means that gflags no longer leaks config.h, so I had to fix a bug
in glog.bzl where config.h is generated at the wrong path.

I also switched to the best-practice for depending on git repositories,
ie using http_archive with a mirror.
2017-12-19 15:50:12 +01:00
Zhongming Qu
ea458f60b9 Remove an empty textual_hdrs field. 2017-12-14 01:03:19 -08:00
Zhongming Qu
e6e2e1372a Hide certain header files from the cc_library().
This commit addresses a few issues:

    1.  No longer leak config.h in a way similar to
            https://github.com/gflags/gflags/issues/233
        The solution of prefixing the path by 'glog_internal' is modified from
            https://github.com/gflags/gflags/issues/234

    2.  No longer expose internal headers.

    3.  Replace PACKAGE_NAME with native.package_name()

    4.  Uers can choose namespaces via the newly added 'namespace' keyword.

    5.  Replace glob with explicitly listing of files.

    6.  Make the genrules more compact using pythonic list construction.
2017-12-14 00:58:33 -08:00
Zhongming Qu
921651e97c Build with Bazel. 2017-12-14 00:58:33 -08:00