From 2e66f5c3106fa1c85694ebc07a52089301dfa2ee Mon Sep 17 00:00:00 2001 From: Dehao Chen Date: Mon, 28 Jul 2014 14:43:39 -0700 Subject: Add LOCAL_FDO_SUPPORT when generating Android mk files. Change-Id: I4a97503eded335121e2305df4608fb0fe60a9bf5 --- pylib/gyp/generator/android.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pylib/gyp/generator/android.py b/pylib/gyp/generator/android.py index e6bdfbb7..38af5936 100644 --- a/pylib/gyp/generator/android.py +++ b/pylib/gyp/generator/android.py @@ -503,9 +503,16 @@ class AndroidMkWriter(object): self.WriteLn('\n# Flags passed to only C++ (and not C) files.') self.WriteList(config.get('cflags_cc'), 'LOCAL_CPPFLAGS_%s' % configname) + if int(config.get('android_enable_fdo', 0)): + use_fdo = 'true' + else: + use_fdo = 'false' + self.WriteLn('\nLOCAL_FDO_SUPPORT_%s := %s' % (configname, use_fdo)) self.WriteLn('\nLOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) ' '$(MY_DEFS_$(GYP_CONFIGURATION))') + self.WriteLn( + 'LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))') # Undefine ANDROID for host modules # TODO: the source code should not use macro ANDROID to tell if it's host # or target module. -- cgit v1.2.3