9 visibility = [ '//visibility:public' ],
11 'src/base/commandlineflags.h',
12 'src/base/googleinit.h',
16 'src/signalhandler.cc',
17 'src/stacktrace_*-inl.h',
28 'src/glog/log_severity.h',
34 # Disable warnings that exists in glog.
35 '-Wno-invalid-noreturn',
37 '-Wno-unused-const-variable',
38 '-Wno-unused-function',
39 '-Wno-unused-local-typedefs',
40 '-Wno-unused-variable',
41 # Inject a C++ namespace.
42 "-D_START_GOOGLE_NAMESPACE_='namespace %s {'" % namespace,
43 "-D_END_GOOGLE_NAMESPACE_='}'",
44 "-DGOOGLE_NAMESPACE='%s'" % namespace,
45 # Allows src/base/mutex.h to include pthread.h.
47 # Allows src/logging.cc to determine the host name.
48 '-DHAVE_SYS_UTSNAME_H',
49 # For src/utilities.cc.
50 '-DHAVE_SYS_SYSCALL_H',
54 # Enable dumping stacktrace upon sigaction.
59 # Use gflags to parse CLI arguments.
60 # NOTE: These parenthesis are necessary.
62 ] if with_gflags else []) + ([
63 # Use linunwind to get stacktrace.
65 ] if with_libunwind else []),
69 '//third_party/gflags',
70 ] if with_gflags else []) + ([
71 '//third_party/libunwind',
72 ] if with_libunwind else []),
77 name = 'internal_headers',
87 ] if PACKAGE_NAME else [],
99 sed -e 's/@ac_cv_have_unistd_h@/1/g' \
100 -e 's/@ac_cv_have_stdint_h@/1/g' \
101 -e 's/@ac_cv_have_systypes_h@/1/g' \
102 -e 's/@ac_cv_have_libgflags_h@/1/g' \
103 -e 's/@ac_cv_have_uint16_t@/1/g' \
104 -e 's/@ac_cv_have___builtin_expect@/1/g' \
105 -e 's/@ac_cv_have_.*@/0/g' \
106 -e 's/@ac_google_start_namespace@/namespace google {/g' \
107 -e 's/@ac_google_end_namespace@/}/g' \
108 -e 's/@ac_google_namespace@/google/g' \
109 -e 's/@ac_cv___attribute___noinline@/__attribute__((noinline))/g' \
110 -e 's/@ac_cv___attribute___noreturn@/__attribute__((noreturn))/g' \
111 -e 's/@ac_cv___attribute___printf_4_5@/__attribute__((__format__ (__printf__, 4, 5)))/g'
120 'src/config.h.cmake.in',
123 '/'.join([PACKAGE_NAME, 'config.h']) if PACKAGE_NAME else 'config.h',
125 cmd = "awk '{ gsub(/^#cmakedefine/, \"//cmakedefine\"); print; }' $(<) > $(@)",
132 'src/glog/%s.h.in' % f,
135 '/'.join([PACKAGE_NAME, 'glog/%s.h' % f]) \
136 if PACKAGE_NAME else 'glog/%s.h' % f,
138 cmd = '$(location :gen_sh) < $(<) > $(@)',