diff options
author | Alex Deymo <deymo@google.com> | 2015-11-16 16:34:39 -0300 |
---|---|---|
committer | Alex Deymo <deymo@google.com> | 2015-11-16 17:12:38 -0300 |
commit | 94afaa4bf4e5266fe057664238e241d4b638d5ff (patch) | |
tree | c7c5f2d8461b1f32a16d3c8a072f2476d2a19bb4 /libbrillo.gypi | |
parent | 7710dc069dbf07c4b9e08cf5d30fe748b2a72bf7 (diff) | |
download | platform_external_libbrillo-94afaa4bf4e5266fe057664238e241d4b638d5ff.tar.gz platform_external_libbrillo-94afaa4bf4e5266fe057664238e241d4b638d5ff.tar.bz2 platform_external_libbrillo-94afaa4bf4e5266fe057664238e241d4b638d5ff.zip |
Make libbrillo-dbus compilation optional based on dbus USE flag.
On branches where DBus is not available we need to disable the
compilation of all the targets requiring DBus.
Bug: 25197634
Test: `mmma external/libbrillo` with the BRILLO_USE_DBUS := 0 in the .mk
Test: FEATURES=test emerge-link libbrillo
Change-Id: I4924c93e65ef14c732eea6ee7a73beb118538585
Diffstat (limited to 'libbrillo.gypi')
-rw-r--r-- | libbrillo.gypi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbrillo.gypi b/libbrillo.gypi index e90252b..d0b3504 100644 --- a/libbrillo.gypi +++ b/libbrillo.gypi @@ -4,10 +4,14 @@ 'deps': [ 'libchrome-<(libbase_ver)' ], + 'USE_dbus%': '1', }, 'include_dirs': [ '../libbrillo', ], + 'defines': [ + 'USE_DBUS=<(USE_dbus)', + ], }, 'targets': [ { @@ -45,6 +49,8 @@ }, }, 'libraries': ['-lmodp_b64'], + #TODO(deymo): Split DBus code from libbrillo-core the same way is split in + # the Android.mk, based on the <(USE_dbus) variable. 'sources': [ 'brillo/any.cc', 'brillo/asynchronous_signal_handler.cc', |