Index: gyp/common_conditions.gypi |
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi |
index f3caddccfedc77b5fc83fd44d4f158ba7710a507..26788e0b6ee4f07131d3d3b7cfa0884d7972b778 100644 |
--- a/gyp/common_conditions.gypi |
+++ b/gyp/common_conditions.gypi |
@@ -193,6 +193,60 @@ |
}, |
], |
+ ['skia_android_framework', { |
+ 'cflags': [ |
+ # Skia does not enforce this usage pattern so we disable it here to avoid |
+ # unecessary log spew when building |
+ '-Wno-unused-parameter', |
+ |
+ # Android's -D_FORTIFY_SOURCE=2 extensions are incompatibile with SkString. |
+ # Revert to -D_FORTIFY_SOURCE=1 |
+ '-U_FORTIFY_SOURCE', |
+ '-D_FORTIFY_SOURCE=1', |
+ ], |
+ 'cflags!': [ |
djsollen
2014/01/21 17:47:37
how do we determine what goes in this list?
scroggo
2014/01/21 19:10:06
Mostly these are flags that ended up in the final
|
+ '-fstrict-aliasing', |
+ '-Wall', |
+ '-Wno-c++11-extensions', |
+ '-fuse-ld=gold', |
+ '-fno-exceptions', |
+ '-fomit-frame-pointer', |
+ '-mno-apcs-frame', |
+ '-g', |
scroggo
2014/01/21 19:10:06
This flag came along with using the default config
|
+ '-mthumb', |
+ '-march=armv7-a', |
+ '-mfpu=neon', |
+ '-mfloat-abi=softfp', |
+ '-msse2', |
+ '-mssse3', |
+ ], |
+ 'cflags_cc!': [ |
+ '-fno-rtti', |
+ ], |
+ 'defines': [ |
+ 'DCT_IFAST_SUPPORTED', |
+ # using freetype's embolden allows us to adjust fake bold settings at |
+ # draw-time, at which point we know which SkTypeface is being drawn |
+ 'SK_USE_FREETYPE_EMBOLDEN', |
+ # Android provides at least FreeType 2.4.0 at runtime. |
+ 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', |
+ # Skia should not use dlopen on Android. |
+ 'SK_CAN_USE_DLOPEN=0', |
+ ], |
+ 'defines!': [ |
+ # Don't hardcode these into the Android.mk |
+ 'SK_DEBUG', |
+ 'SK_DEVELOPER=1', |
+ ], |
+ 'libraries!': [ |
+ '-lstdc++', |
+ '-lm', |
+ ], |
+ 'include_dirs!': [ |
djsollen
2014/01/21 17:47:37
who generates these?
scroggo
2014/01/21 19:10:06
core.gyp. They've been there since the start (see
|
+ 'config', |
+ 'ext', |
+ ], |
+ }], |
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"]', |
{ |