sbilk...@gmail.com
unread,May 20, 2015, 12:20:36 AM5/20/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bazel-...@googlegroups.com
Hi,
I've used bazel when I was working at Google. I'm trying to get things started on my C++ project and would appreciate some help.
The Google C++ styleguide says to use <> includes over "". Yet no where in your samples do I see how to set the include dirs for ALL rules. I know we can add it on a rule or BUILD file basis but how to do it for the entire project?
A more general problem is how do you recommend setting up different config files to define different builds? For example one file would look like:
development config file:
macros: DEBUG
include dirs: xxx yyy
compiler: gcc
testing development config file 1:
macros:
include dirs: xxx yyy
compiler: gcc
testing development config file 2:
macros:
include dirs: xxx yyy
compiler: clang
The objective is to have different config files for different targets (Unix, Windows, embeded devices), compilers (gcc, clang, emscripten), debug/release, etc.
Any help would be useful. Thanks.