Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 1 | # This file is generated by gyp; do not edit. |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Torne (Richard Coles) | 5267f70 | 2013-06-11 10:57:24 +0100 | [diff] [blame] | 6 | LOCAL_MODULE := third_party_WebKit_Source_core_webcore_platform_geometry_gyp |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 7 | LOCAL_MODULE_SUFFIX := .a |
| 8 | LOCAL_MODULE_TAGS := optional |
| 9 | gyp_intermediate_dir := $(call local-intermediates-dir) |
| 10 | gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) |
| 11 | |
| 12 | # Make sure our deps are built first. |
| 13 | GYP_TARGET_DEPENDENCIES := \ |
Torne (Richard Coles) | 5267f70 | 2013-06-11 10:57:24 +0100 | [diff] [blame] | 14 | $(call intermediates-dir-for,GYP,third_party_WebKit_Source_core_webcore_prerequisites_gyp)/webcore_prerequisites.stamp \ |
Ben Murdoch | 8375017 | 2013-07-24 10:36:59 +0100 | [diff] [blame] | 15 | $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp)/skia_skia_library_gyp.a |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 16 | |
| 17 | GYP_GENERATED_OUTPUTS := |
| 18 | |
| 19 | # Make sure our deps and generated files are built first. |
| 20 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 21 | |
| 22 | LOCAL_GENERATED_SOURCES := |
| 23 | |
| 24 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 25 | |
| 26 | LOCAL_SRC_FILES := \ |
| 27 | third_party/WebKit/Source/core/platform/graphics/FloatPoint.cpp \ |
| 28 | third_party/WebKit/Source/core/platform/graphics/FloatPolygon.cpp \ |
| 29 | third_party/WebKit/Source/core/platform/graphics/FloatPoint3D.cpp \ |
| 30 | third_party/WebKit/Source/core/platform/graphics/FloatQuad.cpp \ |
| 31 | third_party/WebKit/Source/core/platform/graphics/FloatRect.cpp \ |
| 32 | third_party/WebKit/Source/core/platform/graphics/FloatSize.cpp \ |
| 33 | third_party/WebKit/Source/core/platform/graphics/IntRect.cpp \ |
| 34 | third_party/WebKit/Source/core/platform/graphics/LayoutRect.cpp \ |
| 35 | third_party/WebKit/Source/core/platform/graphics/Region.cpp \ |
| 36 | third_party/WebKit/Source/core/platform/graphics/transforms/TransformationMatrix.cpp \ |
| 37 | third_party/WebKit/Source/core/platform/graphics/transforms/AffineTransform.cpp |
| 38 | |
| 39 | |
| 40 | # Flags passed to both C and C++ files. |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 41 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 42 | --param=ssp-buffer-size=4 \ |
| 43 | -fno-exceptions \ |
| 44 | -fno-strict-aliasing \ |
| 45 | -Wno-unused-parameter \ |
| 46 | -Wno-missing-field-initializers \ |
| 47 | -fvisibility=hidden \ |
| 48 | -pipe \ |
| 49 | -fPIC \ |
| 50 | -Wno-format \ |
| 51 | -m32 \ |
| 52 | -mmmx \ |
| 53 | -march=pentium4 \ |
| 54 | -msse2 \ |
| 55 | -mfpmath=sse \ |
| 56 | -fuse-ld=gold \ |
| 57 | -ffunction-sections \ |
| 58 | -funwind-tables \ |
| 59 | -g \ |
| 60 | -fno-short-enums \ |
| 61 | -finline-limit=64 \ |
| 62 | -Wa,--noexecstack \ |
| 63 | -U_FORTIFY_SOURCE \ |
| 64 | -Wno-extra \ |
| 65 | -Wno-ignored-qualifiers \ |
| 66 | -Wno-type-limits \ |
| 67 | -Wno-address \ |
| 68 | -Wno-format-security \ |
| 69 | -Wno-return-type \ |
| 70 | -Wno-sequence-point \ |
| 71 | -fno-stack-protector \ |
| 72 | -Os \ |
| 73 | -g \ |
| 74 | -fomit-frame-pointer \ |
| 75 | -fdata-sections \ |
| 76 | -ffunction-sections |
| 77 | |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 78 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 79 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 80 | '-D_FILE_OFFSET_BITS=64' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 81 | '-DNO_TCMALLOC' \ |
Ben Murdoch | e69819b | 2013-07-17 14:56:49 +0100 | [diff] [blame] | 82 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 83 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 84 | '-DDISABLE_NACL' \ |
| 85 | '-DCHROMIUM_BUILD' \ |
| 86 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 87 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | 8375017 | 2013-07-24 10:36:59 +0100 | [diff] [blame] | 88 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 89 | '-DENABLE_GPU=1' \ |
| 90 | '-DUSE_OPENSSL=1' \ |
| 91 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 92 | '-DWEBCORE_NAVIGATOR_VENDOR="Google Inc."' \ |
| 93 | '-DWEBKIT_IMPLEMENTATION=1' \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 94 | '-DINSIDE_WEBKIT' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 95 | '-DENABLE_CSS3_TEXT=0' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 96 | '-DENABLE_CSS_EXCLUSIONS=1' \ |
| 97 | '-DENABLE_CSS_REGIONS=1' \ |
| 98 | '-DENABLE_CUSTOM_SCHEME_HANDLER=0' \ |
Torne (Richard Coles) | 93ac45c | 2013-05-29 14:40:20 +0100 | [diff] [blame] | 99 | '-DENABLE_ENCRYPTED_MEDIA_V2=1' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 100 | '-DENABLE_SVG_FONTS=1' \ |
| 101 | '-DENABLE_TOUCH_ICON_LOADING=1' \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 102 | '-DENABLE_GDI_FONTS_ON_WINDOWS=1' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 103 | '-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \ |
| 104 | '-DENABLE_CALENDAR_PICKER=0' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 105 | '-DENABLE_FAST_MOBILE_SCROLLING=1' \ |
| 106 | '-DENABLE_INPUT_SPEECH=0' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 107 | '-DENABLE_LEGACY_NOTIFICATIONS=0' \ |
| 108 | '-DENABLE_MEDIA_CAPTURE=1' \ |
| 109 | '-DENABLE_NOTIFICATIONS=0' \ |
| 110 | '-DENABLE_ORIENTATION_EVENTS=1' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 111 | '-DENABLE_PRINTING=0' \ |
| 112 | '-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \ |
| 113 | '-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 114 | '-DENABLE_OPENTYPE_VERTICAL=1' \ |
| 115 | '-DWTF_USE_HARFBUZZ=1' \ |
| 116 | '-DU_USING_ICU_NAMESPACE=0' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 117 | '-DSK_ENABLE_INST_COUNT=0' \ |
Ben Murdoch | 8375017 | 2013-07-24 10:36:59 +0100 | [diff] [blame] | 118 | '-DSK_SUPPORT_GPU=1' \ |
| 119 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
Torne (Richard Coles) | e524955 | 2013-05-15 11:35:13 +0100 | [diff] [blame] | 120 | '-DSK_BUILD_FOR_ANDROID' \ |
Ben Murdoch | 8375017 | 2013-07-24 10:36:59 +0100 | [diff] [blame] | 121 | '-DUSE_CHROMIUM_SKIA' \ |
| 122 | '-DSK_USE_POSIX_THREADS' \ |
Ben Murdoch | 3c9e4ae | 2013-08-12 14:20:44 +0100 | [diff] [blame^] | 123 | '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 124 | '-DCHROME_PNG_WRITE_SUPPORT' \ |
| 125 | '-DPNG_USER_CONFIG' \ |
| 126 | '-DLIBXML_STATIC' \ |
| 127 | '-DLIBXSLT_STATIC' \ |
| 128 | '-DUSE_SYSTEM_LIBJPEG' \ |
| 129 | '-DANDROID' \ |
| 130 | '-D__GNU_SOURCE=1' \ |
| 131 | '-DUSE_STLPORT=1' \ |
| 132 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 133 | '-DCHROME_BUILD_ID=""' \ |
| 134 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 135 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 136 | '-D_DEBUG' |
| 137 | |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 138 | |
| 139 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 140 | LOCAL_C_INCLUDES_Debug := \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 141 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Ben Murdoch | 3464d02 | 2013-07-25 10:06:57 +0100 | [diff] [blame] | 142 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| 143 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 144 | $(LOCAL_PATH)/third_party/khronos \ |
| 145 | $(LOCAL_PATH)/gpu \ |
| 146 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 5267f70 | 2013-06-11 10:57:24 +0100 | [diff] [blame] | 147 | $(LOCAL_PATH)/third_party/WebKit \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 148 | $(LOCAL_PATH)/third_party/WebKit/Source \ |
Torne (Richard Coles) | f5e4ad5 | 2013-08-05 13:57:57 +0100 | [diff] [blame] | 149 | $(gyp_shared_intermediate_dir)/blink \ |
| 150 | $(gyp_shared_intermediate_dir)/blink/bindings \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 151 | $(LOCAL_PATH)/third_party/angle_dx11/include/GLSLANG \ |
Torne (Richard Coles) | 93ac45c | 2013-05-29 14:40:20 +0100 | [diff] [blame] | 152 | $(PWD)/external/icu4c/common \ |
| 153 | $(PWD)/external/icu4c/i18n \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 154 | $(LOCAL_PATH)/third_party/skia/src/core \ |
Ben Murdoch | 8375017 | 2013-07-24 10:36:59 +0100 | [diff] [blame] | 155 | $(LOCAL_PATH)/skia/config \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 156 | $(LOCAL_PATH)/third_party/skia/include/config \ |
| 157 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 158 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 159 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 160 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
| 161 | $(LOCAL_PATH)/third_party/skia/include/gpu/gl \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 162 | $(LOCAL_PATH)/third_party/skia/include/lazy \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 163 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| 164 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 165 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 166 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
| 167 | $(LOCAL_PATH)/skia/ext \ |
| 168 | $(LOCAL_PATH)/third_party/iccjpeg \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 169 | $(LOCAL_PATH)/third_party/libpng \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 170 | $(LOCAL_PATH)/third_party/libwebp \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 171 | $(LOCAL_PATH)/third_party/libxml/linux/include \ |
| 172 | $(LOCAL_PATH)/third_party/libxml/src/include \ |
| 173 | $(LOCAL_PATH)/third_party/libxslt \ |
| 174 | $(LOCAL_PATH)/third_party/npapi \ |
| 175 | $(LOCAL_PATH)/third_party/npapi/bindings \ |
| 176 | $(LOCAL_PATH)/third_party/ots/include \ |
| 177 | $(LOCAL_PATH)/third_party/qcms/src \ |
| 178 | $(LOCAL_PATH)/third_party/sqlite \ |
| 179 | $(LOCAL_PATH)/third_party/zlib \ |
| 180 | $(LOCAL_PATH)/v8/include \ |
Torne (Richard Coles) | 93ac45c | 2013-05-29 14:40:20 +0100 | [diff] [blame] | 181 | $(PWD)/external/jpeg \ |
| 182 | $(PWD)/frameworks/wilhelm/include \ |
| 183 | $(PWD)/bionic \ |
| 184 | $(PWD)/external/stlport/stlport |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 185 | |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 186 | |
| 187 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 188 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 189 | -fno-rtti \ |
| 190 | -fno-threadsafe-statics \ |
| 191 | -fvisibility-inlines-hidden \ |
| 192 | -Wno-c++0x-compat \ |
| 193 | -Wno-deprecated \ |
| 194 | -Wno-error=c++0x-compat \ |
| 195 | -Wno-non-virtual-dtor \ |
| 196 | -Wno-sign-promo \ |
| 197 | -Wno-non-virtual-dtor |
| 198 | |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 199 | |
| 200 | # Flags passed to both C and C++ files. |
| 201 | MY_CFLAGS_Release := \ |
| 202 | --param=ssp-buffer-size=4 \ |
| 203 | -fno-exceptions \ |
| 204 | -fno-strict-aliasing \ |
| 205 | -Wno-unused-parameter \ |
| 206 | -Wno-missing-field-initializers \ |
| 207 | -fvisibility=hidden \ |
| 208 | -pipe \ |
| 209 | -fPIC \ |
| 210 | -Wno-format \ |
| 211 | -m32 \ |
| 212 | -mmmx \ |
| 213 | -march=pentium4 \ |
| 214 | -msse2 \ |
| 215 | -mfpmath=sse \ |
| 216 | -fuse-ld=gold \ |
| 217 | -ffunction-sections \ |
| 218 | -funwind-tables \ |
| 219 | -g \ |
| 220 | -fno-short-enums \ |
| 221 | -finline-limit=64 \ |
| 222 | -Wa,--noexecstack \ |
| 223 | -U_FORTIFY_SOURCE \ |
| 224 | -Wno-extra \ |
| 225 | -Wno-ignored-qualifiers \ |
| 226 | -Wno-type-limits \ |
| 227 | -Wno-address \ |
| 228 | -Wno-format-security \ |
| 229 | -Wno-return-type \ |
| 230 | -Wno-sequence-point \ |
| 231 | -fno-stack-protector \ |
| 232 | -Os \ |
| 233 | -fno-ident \ |
| 234 | -fdata-sections \ |
| 235 | -ffunction-sections \ |
| 236 | -fomit-frame-pointer \ |
| 237 | -fno-unwind-tables \ |
| 238 | -fno-asynchronous-unwind-tables |
| 239 | |
| 240 | MY_DEFS_Release := \ |
| 241 | '-DANGLE_DX11' \ |
| 242 | '-D_FILE_OFFSET_BITS=64' \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 243 | '-DNO_TCMALLOC' \ |
Ben Murdoch | e69819b | 2013-07-17 14:56:49 +0100 | [diff] [blame] | 244 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 245 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 246 | '-DDISABLE_NACL' \ |
| 247 | '-DCHROMIUM_BUILD' \ |
| 248 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 249 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | 8375017 | 2013-07-24 10:36:59 +0100 | [diff] [blame] | 250 | '-DENABLE_CONFIGURATION_POLICY' \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 251 | '-DENABLE_GPU=1' \ |
| 252 | '-DUSE_OPENSSL=1' \ |
| 253 | '-DENABLE_EGLIMAGE=1' \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 254 | '-DWEBCORE_NAVIGATOR_VENDOR="Google Inc."' \ |
| 255 | '-DWEBKIT_IMPLEMENTATION=1' \ |
| 256 | '-DINSIDE_WEBKIT' \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 257 | '-DENABLE_CSS3_TEXT=0' \ |
| 258 | '-DENABLE_CSS_EXCLUSIONS=1' \ |
| 259 | '-DENABLE_CSS_REGIONS=1' \ |
| 260 | '-DENABLE_CUSTOM_SCHEME_HANDLER=0' \ |
| 261 | '-DENABLE_ENCRYPTED_MEDIA_V2=1' \ |
| 262 | '-DENABLE_SVG_FONTS=1' \ |
| 263 | '-DENABLE_TOUCH_ICON_LOADING=1' \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 264 | '-DENABLE_GDI_FONTS_ON_WINDOWS=1' \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 265 | '-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \ |
| 266 | '-DENABLE_CALENDAR_PICKER=0' \ |
| 267 | '-DENABLE_FAST_MOBILE_SCROLLING=1' \ |
| 268 | '-DENABLE_INPUT_SPEECH=0' \ |
| 269 | '-DENABLE_LEGACY_NOTIFICATIONS=0' \ |
| 270 | '-DENABLE_MEDIA_CAPTURE=1' \ |
| 271 | '-DENABLE_NOTIFICATIONS=0' \ |
| 272 | '-DENABLE_ORIENTATION_EVENTS=1' \ |
| 273 | '-DENABLE_PRINTING=0' \ |
| 274 | '-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \ |
| 275 | '-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 276 | '-DENABLE_OPENTYPE_VERTICAL=1' \ |
| 277 | '-DWTF_USE_HARFBUZZ=1' \ |
| 278 | '-DU_USING_ICU_NAMESPACE=0' \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 279 | '-DSK_ENABLE_INST_COUNT=0' \ |
Ben Murdoch | 8375017 | 2013-07-24 10:36:59 +0100 | [diff] [blame] | 280 | '-DSK_SUPPORT_GPU=1' \ |
| 281 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 282 | '-DSK_BUILD_FOR_ANDROID' \ |
Ben Murdoch | 8375017 | 2013-07-24 10:36:59 +0100 | [diff] [blame] | 283 | '-DUSE_CHROMIUM_SKIA' \ |
| 284 | '-DSK_USE_POSIX_THREADS' \ |
Ben Murdoch | 3c9e4ae | 2013-08-12 14:20:44 +0100 | [diff] [blame^] | 285 | '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 286 | '-DCHROME_PNG_WRITE_SUPPORT' \ |
| 287 | '-DPNG_USER_CONFIG' \ |
| 288 | '-DLIBXML_STATIC' \ |
| 289 | '-DLIBXSLT_STATIC' \ |
| 290 | '-DUSE_SYSTEM_LIBJPEG' \ |
| 291 | '-DANDROID' \ |
| 292 | '-D__GNU_SOURCE=1' \ |
| 293 | '-DUSE_STLPORT=1' \ |
| 294 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 295 | '-DCHROME_BUILD_ID=""' \ |
| 296 | '-DNDEBUG' \ |
| 297 | '-DNVALGRIND' \ |
| 298 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' |
| 299 | |
| 300 | |
| 301 | # Include paths placed before CFLAGS/CPPFLAGS |
| 302 | LOCAL_C_INCLUDES_Release := \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 303 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Ben Murdoch | 3464d02 | 2013-07-25 10:06:57 +0100 | [diff] [blame] | 304 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| 305 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 306 | $(LOCAL_PATH)/third_party/khronos \ |
| 307 | $(LOCAL_PATH)/gpu \ |
| 308 | $(LOCAL_PATH) \ |
| 309 | $(LOCAL_PATH)/third_party/WebKit \ |
| 310 | $(LOCAL_PATH)/third_party/WebKit/Source \ |
Torne (Richard Coles) | f5e4ad5 | 2013-08-05 13:57:57 +0100 | [diff] [blame] | 311 | $(gyp_shared_intermediate_dir)/blink \ |
| 312 | $(gyp_shared_intermediate_dir)/blink/bindings \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 313 | $(LOCAL_PATH)/third_party/angle_dx11/include/GLSLANG \ |
| 314 | $(PWD)/external/icu4c/common \ |
| 315 | $(PWD)/external/icu4c/i18n \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 316 | $(LOCAL_PATH)/third_party/skia/src/core \ |
Ben Murdoch | 8375017 | 2013-07-24 10:36:59 +0100 | [diff] [blame] | 317 | $(LOCAL_PATH)/skia/config \ |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 318 | $(LOCAL_PATH)/third_party/skia/include/config \ |
| 319 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 320 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 321 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 322 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
| 323 | $(LOCAL_PATH)/third_party/skia/include/gpu/gl \ |
| 324 | $(LOCAL_PATH)/third_party/skia/include/lazy \ |
| 325 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| 326 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 327 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 328 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
| 329 | $(LOCAL_PATH)/skia/ext \ |
| 330 | $(LOCAL_PATH)/third_party/iccjpeg \ |
| 331 | $(LOCAL_PATH)/third_party/libpng \ |
| 332 | $(LOCAL_PATH)/third_party/libwebp \ |
| 333 | $(LOCAL_PATH)/third_party/libxml/linux/include \ |
| 334 | $(LOCAL_PATH)/third_party/libxml/src/include \ |
| 335 | $(LOCAL_PATH)/third_party/libxslt \ |
| 336 | $(LOCAL_PATH)/third_party/npapi \ |
| 337 | $(LOCAL_PATH)/third_party/npapi/bindings \ |
| 338 | $(LOCAL_PATH)/third_party/ots/include \ |
| 339 | $(LOCAL_PATH)/third_party/qcms/src \ |
| 340 | $(LOCAL_PATH)/third_party/sqlite \ |
| 341 | $(LOCAL_PATH)/third_party/zlib \ |
| 342 | $(LOCAL_PATH)/v8/include \ |
| 343 | $(PWD)/external/jpeg \ |
| 344 | $(PWD)/frameworks/wilhelm/include \ |
| 345 | $(PWD)/bionic \ |
| 346 | $(PWD)/external/stlport/stlport |
| 347 | |
| 348 | |
| 349 | # Flags passed to only C++ (and not C) files. |
| 350 | LOCAL_CPPFLAGS_Release := \ |
| 351 | -fno-rtti \ |
| 352 | -fno-threadsafe-statics \ |
| 353 | -fvisibility-inlines-hidden \ |
| 354 | -Wno-c++0x-compat \ |
| 355 | -Wno-deprecated \ |
| 356 | -Wno-error=c++0x-compat \ |
| 357 | -Wno-non-virtual-dtor \ |
| 358 | -Wno-sign-promo \ |
| 359 | -Wno-non-virtual-dtor |
| 360 | |
| 361 | |
| 362 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 363 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 364 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 365 | ### Rules for final target. |
| 366 | |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 367 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 368 | -Wl,-z,now \ |
| 369 | -Wl,-z,relro \ |
| 370 | -Wl,-z,noexecstack \ |
| 371 | -fPIC \ |
| 372 | -m32 \ |
| 373 | -fuse-ld=gold \ |
| 374 | -nostdlib \ |
| 375 | -Wl,--no-undefined \ |
| 376 | -Wl,--exclude-libs=ALL \ |
| 377 | -Wl,--gc-sections \ |
| 378 | -Wl,-O1 \ |
| 379 | -Wl,--as-needed |
| 380 | |
| 381 | |
Ben Murdoch | 591b958 | 2013-07-10 11:41:44 +0100 | [diff] [blame] | 382 | LOCAL_LDFLAGS_Release := \ |
| 383 | -Wl,-z,now \ |
| 384 | -Wl,-z,relro \ |
| 385 | -Wl,-z,noexecstack \ |
| 386 | -fPIC \ |
| 387 | -m32 \ |
| 388 | -fuse-ld=gold \ |
| 389 | -nostdlib \ |
| 390 | -Wl,--no-undefined \ |
| 391 | -Wl,--exclude-libs=ALL \ |
| 392 | -Wl,-O1 \ |
| 393 | -Wl,--as-needed \ |
| 394 | -Wl,--gc-sections |
| 395 | |
| 396 | |
| 397 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 398 | |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 399 | LOCAL_STATIC_LIBRARIES := \ |
Ben Murdoch | 8375017 | 2013-07-24 10:36:59 +0100 | [diff] [blame] | 400 | skia_skia_library_gyp |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 401 | |
| 402 | # Enable grouping to fix circular references |
| 403 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 404 | |
| 405 | LOCAL_SHARED_LIBRARIES := \ |
| 406 | libstlport \ |
| 407 | libdl |
| 408 | |
| 409 | # Add target alias to "gyp_all_modules" target. |
| 410 | .PHONY: gyp_all_modules |
Torne (Richard Coles) | 5267f70 | 2013-06-11 10:57:24 +0100 | [diff] [blame] | 411 | gyp_all_modules: third_party_WebKit_Source_core_webcore_platform_geometry_gyp |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 412 | |
| 413 | # Alias gyp target name. |
| 414 | .PHONY: webcore_platform_geometry |
Torne (Richard Coles) | 5267f70 | 2013-06-11 10:57:24 +0100 | [diff] [blame] | 415 | webcore_platform_geometry: third_party_WebKit_Source_core_webcore_platform_geometry_gyp |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 416 | |
| 417 | include $(BUILD_STATIC_LIBRARY) |