diff options
author | Dehao Chen <dehao@google.com> | 2014-07-28 14:43:39 -0700 |
---|---|---|
committer | Dehao Chen <dehao@google.com> | 2014-08-19 14:37:35 -0700 |
commit | 2e66f5c3106fa1c85694ebc07a52089301dfa2ee (patch) | |
tree | 74b39a24e2b4bcfff8d8349356dcdc32ddd2335d | |
parent | b78c8be66904318d00edbb7a0a41400a2404e682 (diff) | |
download | gyp-lollipop-cts-release.tar.gz |
Add LOCAL_FDO_SUPPORT when generating Android mk files.android-wear-5.0.0_r1android-l-preview_r2android-cts-5.0_r9android-cts-5.0_r8android-cts-5.0_r7android-cts-5.0_r6android-cts-5.0_r5android-cts-5.0_r4android-cts-5.0_r3android-5.0.2_r3android-5.0.2_r1android-5.0.1_r1android-5.0.0_r7android-5.0.0_r6android-5.0.0_r5.1android-5.0.0_r5android-5.0.0_r4android-5.0.0_r3android-5.0.0_r2android-5.0.0_r1lollipop-wear-releaselollipop-releaselollipop-devlollipop-cts-releasel-preview
Change-Id: I4a97503eded335121e2305df4608fb0fe60a9bf5
-rw-r--r-- | pylib/gyp/generator/android.py | 7 |
1 files changed, 7 insertions, 0 deletions
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. |