diff options
author | Daniel Erat <derat@google.com> | 2015-10-19 17:23:34 -0600 |
---|---|---|
committer | Daniel Erat <derat@google.com> | 2015-10-20 15:24:54 +0000 |
commit | 9fbd8a51e5bbe2d162973597c65fc52bda5fb18f (patch) | |
tree | 9b9291c3b9dfd5ea5d23387dd37c6069b915278a | |
parent | 9ff2f22addaf7705f45b26f3cfd0e4321d586005 (diff) | |
download | brillo-9fbd8a51e5bbe2d162973597c65fc52bda5fb18f.tar.gz |
Define __BRILLO__ globally.
Set -D__BRILLO__ globally when compiling C/C++ code.
Bug: 25086315
Change-Id: I5fe57a62254bc66ed9774228e2b3b63e36303eb7
-rw-r--r-- | brillo_base.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/brillo_base.mk b/brillo_base.mk index afbd8bf..45a7c70 100644 --- a/brillo_base.mk +++ b/brillo_base.mk @@ -263,8 +263,13 @@ PRODUCT_COPY_FILES += \ BOARD_SEPOLICY_DIRS := $(BOARD_SEPOLICY_DIRS) device/generic/brillo/sepolicy -# Define that identifies Brillo targets. +# Define a make variable and a C define that identify Brillo targets. __BRILLO__ +# should only be used to differentiate between Brillo and non-Brillo-but-Android +# environments. Use __ANDROID__ instead to test if something is being built in +# an Android-derived environment (including Brillo) as opposed to an +# entirely different environment (e.g. Chrome OS). BRILLO := 1 +COMMON_GLOBAL_CFLAGS += -D__BRILLO__ # Generate Breakpad symbols. BREAKPAD_GENERATE_SYMBOLS := true |