1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := ui_gl_gl_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := \ 15 $(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ 17 $(call intermediates-dir-for,GYP,third_party_mesa_mesa_headers_gyp,,,$(GYP_VAR_PREFIX))/mesa_headers.stamp \ 18 $(call intermediates-dir-for,GYP,ui_gl_gl_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/gl_jni_headers.stamp 19 20 ### Rules for action "generate_gl_bindings": 21 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_local_path := $(LOCAL_PATH) 22 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_var_prefix := $(GYP_VAR_PREFIX) 23 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 24 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 25 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 26 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: $(LOCAL_PATH)/ui/gl/generate_bindings.py $(LOCAL_PATH)/third_party/mesa/src/include/GL/glext.h $(LOCAL_PATH)/third_party/khronos/GLES2/gl2ext.h $(LOCAL_PATH)/ui/gl/GL/glextchromium.h $(LOCAL_PATH)/gpu/GLES2/gl2chromium.h $(LOCAL_PATH)/gpu/GLES2/gl2extchromium.h $(LOCAL_PATH)/third_party/khronos/EGL/eglext.h $(LOCAL_PATH)/ui/gl/EGL/eglextchromium.h $(LOCAL_PATH)/third_party/mesa/src/include/GL/wglext.h $(LOCAL_PATH)/third_party/mesa/src/include/GL/glx.h $(LOCAL_PATH)/third_party/mesa/src/include/GL/glxext.h $(GYP_TARGET_DEPENDENCIES) 27 @echo "Gyp action: ui_gl_gl_gyp_gl_target_generate_gl_bindings ($@)" 28 $(hide)cd $(gyp_local_path)/ui/gl; mkdir -p $(gyp_shared_intermediate_dir)/ui/gl; python generate_bindings.py "--header-paths=../../third_party/khronos:../../third_party/mesa/src/include:.:../../gpu" "$(gyp_shared_intermediate_dir)/ui/gl" 29 30 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 31 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 32 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 33 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 34 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 35 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 36 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 37 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 38 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 39 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 40 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 41 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 42 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 43 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 44 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 45 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 46 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 47 48 49 GYP_GENERATED_OUTPUTS := \ 50 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc \ 51 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.h \ 52 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_egl.h \ 53 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc \ 54 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.h \ 55 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_gl.h \ 56 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.cc \ 57 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.h \ 58 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_glx.h \ 59 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc \ 60 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.h \ 61 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc \ 62 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.h \ 63 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_osmesa.h \ 64 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.cc \ 65 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.h \ 66 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_wgl.h \ 67 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_gl.h 68 69 # Make sure our deps and generated files are built first. 70 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 71 72 LOCAL_CPP_EXTENSION := .cc 73 $(gyp_intermediate_dir)/gl_bindings_autogen_gl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc 74 mkdir -p $(@D); cp $< $@ 75 $(gyp_intermediate_dir)/gl_bindings_autogen_osmesa.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc 76 mkdir -p $(@D); cp $< $@ 77 $(gyp_intermediate_dir)/gl_bindings_autogen_egl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc 78 mkdir -p $(@D); cp $< $@ 79 LOCAL_GENERATED_SOURCES := \ 80 $(gyp_intermediate_dir)/gl_bindings_autogen_gl.cc \ 81 $(gyp_intermediate_dir)/gl_bindings_autogen_osmesa.cc \ 82 $(gyp_intermediate_dir)/gl_bindings_autogen_egl.cc 83 84 GYP_COPIED_SOURCE_ORIGIN_DIRS := \ 85 $(gyp_shared_intermediate_dir)/ui/gl 86 87 LOCAL_SRC_FILES := \ 88 ui/gl/android/gl_jni_registrar.cc \ 89 ui/gl/android/scoped_java_surface.cc \ 90 ui/gl/android/surface_texture.cc \ 91 ui/gl/android/surface_texture_listener.cc \ 92 ui/gl/android/surface_texture_tracker.cc \ 93 ui/gl/gl_bindings_skia_in_process.cc \ 94 ui/gl/gl_context.cc \ 95 ui/gl/gl_context_android.cc \ 96 ui/gl/gl_context_osmesa.cc \ 97 ui/gl/gl_context_stub.cc \ 98 ui/gl/gl_context_stub_with_extensions.cc \ 99 ui/gl/gl_fence.cc \ 100 ui/gl/gl_fence_arb.cc \ 101 ui/gl/gl_fence_nv.cc \ 102 ui/gl/gl_gl_api_implementation.cc \ 103 ui/gl/gl_image.cc \ 104 ui/gl/gl_image_android.cc \ 105 ui/gl/gl_image_shm.cc \ 106 ui/gl/gl_image_stub.cc \ 107 ui/gl/gl_implementation.cc \ 108 ui/gl/gl_implementation_android.cc \ 109 ui/gl/gl_osmesa_api_implementation.cc \ 110 ui/gl/gl_share_group.cc \ 111 ui/gl/gl_state_restorer.cc \ 112 ui/gl/gl_surface.cc \ 113 ui/gl/gl_surface_android.cc \ 114 ui/gl/gl_surface_stub.cc \ 115 ui/gl/gl_surface_osmesa.cc \ 116 ui/gl/gl_switches.cc \ 117 ui/gl/gl_version_info.cc \ 118 ui/gl/gpu_switching_manager.cc \ 119 ui/gl/scoped_binders.cc \ 120 ui/gl/scoped_make_current.cc \ 121 ui/gl/sync_control_vsync_provider.cc \ 122 ui/gl/egl_util.cc \ 123 ui/gl/gl_context_egl.cc \ 124 ui/gl/gl_fence_egl.cc \ 125 ui/gl/gl_image_egl.cc \ 126 ui/gl/gl_surface_egl.cc \ 127 ui/gl/gl_egl_api_implementation.cc \ 128 ui/gl/gl_implementation_osmesa.cc \ 129 ui/gl/gl_image_android_native_buffer.cc \ 130 ui/gl/gl_image_surface_texture.cc 131 132 133 # Flags passed to both C and C++ files. 134 MY_CFLAGS_Debug := \ 135 -fstack-protector \ 136 --param=ssp-buffer-size=4 \ 137 -Werror \ 138 -fno-exceptions \ 139 -fno-strict-aliasing \ 140 -Wall \ 141 -Wno-unused-parameter \ 142 -Wno-missing-field-initializers \ 143 -fvisibility=hidden \ 144 -pipe \ 145 -fPIC \ 146 -Wno-unused-local-typedefs \ 147 -fno-tree-sra \ 148 -fno-partial-inlining \ 149 -fno-early-inlining \ 150 -fno-tree-copy-prop \ 151 -fno-tree-loop-optimize \ 152 -fno-move-loop-invariants \ 153 -fno-caller-saves \ 154 -Wno-psabi \ 155 -ffunction-sections \ 156 -funwind-tables \ 157 -g \ 158 -fstack-protector \ 159 -fno-short-enums \ 160 -finline-limit=64 \ 161 -Wa,--noexecstack \ 162 -U_FORTIFY_SOURCE \ 163 -Wno-extra \ 164 -Wno-ignored-qualifiers \ 165 -Wno-type-limits \ 166 -Wno-unused-but-set-variable \ 167 -Os \ 168 -g \ 169 -fdata-sections \ 170 -ffunction-sections \ 171 -fomit-frame-pointer \ 172 -funwind-tables 173 174 MY_DEFS_Debug := \ 175 '-DV8_DEPRECATION_WARNINGS' \ 176 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 177 '-D_FILE_OFFSET_BITS=64' \ 178 '-DNO_TCMALLOC' \ 179 '-DDISABLE_NACL' \ 180 '-DCHROMIUM_BUILD' \ 181 '-DUSE_LIBJPEG_TURBO=1' \ 182 '-DENABLE_WEBRTC=1' \ 183 '-DUSE_PROPRIETARY_CODECS' \ 184 '-DENABLE_BROWSER_CDMS' \ 185 '-DENABLE_CONFIGURATION_POLICY' \ 186 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 187 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 188 '-DENABLE_EGLIMAGE=1' \ 189 '-DCLD_VERSION=1' \ 190 '-DENABLE_PRINTING=1' \ 191 '-DENABLE_MANAGED_USERS=1' \ 192 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 193 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 194 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 195 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 196 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 197 '-DVIDEO_HOLE=1' \ 198 '-DGL_IMPLEMENTATION' \ 199 '-DGL_GLEXT_PROTOTYPES' \ 200 '-DEGL_EGLEXT_PROTOTYPES' \ 201 '-DSK_ENABLE_INST_COUNT=0' \ 202 '-DSK_SUPPORT_GPU=1' \ 203 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 204 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 205 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 206 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 207 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 208 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 209 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 210 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 211 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 212 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 213 '-DSK_IGNORE_ETC1_SUPPORT' \ 214 '-DSK_IGNORE_GPU_DITHER' \ 215 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 216 '-DSK_BUILD_FOR_ANDROID' \ 217 '-DSK_USE_POSIX_THREADS' \ 218 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 219 '-DMESA_EGL_NO_X11_HEADERS' \ 220 '-DU_USING_ICU_NAMESPACE=0' \ 221 '-DUSE_OPENSSL=1' \ 222 '-DUSE_OPENSSL_CERTS=1' \ 223 '-D__STDC_CONSTANT_MACROS' \ 224 '-D__STDC_FORMAT_MACROS' \ 225 '-DANDROID' \ 226 '-D__GNU_SOURCE=1' \ 227 '-DUSE_STLPORT=1' \ 228 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 229 '-DCHROME_BUILD_ID=""' \ 230 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 231 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 232 '-D_DEBUG' 233 234 235 # Include paths placed before CFLAGS/CPPFLAGS 236 LOCAL_C_INCLUDES_Debug := \ 237 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 238 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 239 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 240 $(gyp_shared_intermediate_dir) \ 241 $(LOCAL_PATH)/third_party/swiftshader/include \ 242 $(LOCAL_PATH)/third_party/khronos \ 243 $(LOCAL_PATH)/third_party/mesa/src/include \ 244 $(gyp_shared_intermediate_dir)/ui/gl \ 245 $(LOCAL_PATH)/gpu \ 246 $(LOCAL_PATH) \ 247 $(LOCAL_PATH)/skia/config \ 248 $(LOCAL_PATH)/third_party/skia/src/core \ 249 $(LOCAL_PATH)/third_party/skia/include/core \ 250 $(LOCAL_PATH)/third_party/skia/include/effects \ 251 $(LOCAL_PATH)/third_party/skia/include/pdf \ 252 $(LOCAL_PATH)/third_party/skia/include/gpu \ 253 $(LOCAL_PATH)/third_party/skia/include/lazy \ 254 $(LOCAL_PATH)/third_party/skia/include/pathops \ 255 $(LOCAL_PATH)/third_party/skia/include/pipe \ 256 $(LOCAL_PATH)/third_party/skia/include/ports \ 257 $(LOCAL_PATH)/third_party/skia/include/utils \ 258 $(LOCAL_PATH)/skia/ext \ 259 $(PWD)/external/icu/icu4c/source/common \ 260 $(PWD)/external/icu/icu4c/source/i18n \ 261 $(PWD)/frameworks/wilhelm/include \ 262 $(PWD)/bionic \ 263 $(PWD)/external/stlport/stlport 264 265 266 # Flags passed to only C++ (and not C) files. 267 LOCAL_CPPFLAGS_Debug := \ 268 -fno-rtti \ 269 -fno-threadsafe-statics \ 270 -fvisibility-inlines-hidden \ 271 -Wsign-compare \ 272 -Wno-abi \ 273 -Wno-non-virtual-dtor \ 274 -Wno-sign-promo 275 276 277 LOCAL_FDO_SUPPORT_Debug := false 278 279 # Flags passed to both C and C++ files. 280 MY_CFLAGS_Release := \ 281 -fstack-protector \ 282 --param=ssp-buffer-size=4 \ 283 -Werror \ 284 -fno-exceptions \ 285 -fno-strict-aliasing \ 286 -Wall \ 287 -Wno-unused-parameter \ 288 -Wno-missing-field-initializers \ 289 -fvisibility=hidden \ 290 -pipe \ 291 -fPIC \ 292 -Wno-unused-local-typedefs \ 293 -fno-tree-sra \ 294 -fno-partial-inlining \ 295 -fno-early-inlining \ 296 -fno-tree-copy-prop \ 297 -fno-tree-loop-optimize \ 298 -fno-move-loop-invariants \ 299 -fno-caller-saves \ 300 -Wno-psabi \ 301 -ffunction-sections \ 302 -funwind-tables \ 303 -g \ 304 -fstack-protector \ 305 -fno-short-enums \ 306 -finline-limit=64 \ 307 -Wa,--noexecstack \ 308 -U_FORTIFY_SOURCE \ 309 -Wno-extra \ 310 -Wno-ignored-qualifiers \ 311 -Wno-type-limits \ 312 -Wno-unused-but-set-variable \ 313 -Os \ 314 -fno-ident \ 315 -fdata-sections \ 316 -ffunction-sections \ 317 -fomit-frame-pointer \ 318 -funwind-tables 319 320 MY_DEFS_Release := \ 321 '-DV8_DEPRECATION_WARNINGS' \ 322 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 323 '-D_FILE_OFFSET_BITS=64' \ 324 '-DNO_TCMALLOC' \ 325 '-DDISABLE_NACL' \ 326 '-DCHROMIUM_BUILD' \ 327 '-DUSE_LIBJPEG_TURBO=1' \ 328 '-DENABLE_WEBRTC=1' \ 329 '-DUSE_PROPRIETARY_CODECS' \ 330 '-DENABLE_BROWSER_CDMS' \ 331 '-DENABLE_CONFIGURATION_POLICY' \ 332 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 333 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 334 '-DENABLE_EGLIMAGE=1' \ 335 '-DCLD_VERSION=1' \ 336 '-DENABLE_PRINTING=1' \ 337 '-DENABLE_MANAGED_USERS=1' \ 338 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 339 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 340 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 341 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 342 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 343 '-DVIDEO_HOLE=1' \ 344 '-DGL_IMPLEMENTATION' \ 345 '-DGL_GLEXT_PROTOTYPES' \ 346 '-DEGL_EGLEXT_PROTOTYPES' \ 347 '-DSK_ENABLE_INST_COUNT=0' \ 348 '-DSK_SUPPORT_GPU=1' \ 349 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 350 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 351 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 352 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 353 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 354 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 355 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 356 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 357 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 358 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 359 '-DSK_IGNORE_ETC1_SUPPORT' \ 360 '-DSK_IGNORE_GPU_DITHER' \ 361 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 362 '-DSK_BUILD_FOR_ANDROID' \ 363 '-DSK_USE_POSIX_THREADS' \ 364 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 365 '-DMESA_EGL_NO_X11_HEADERS' \ 366 '-DU_USING_ICU_NAMESPACE=0' \ 367 '-DUSE_OPENSSL=1' \ 368 '-DUSE_OPENSSL_CERTS=1' \ 369 '-D__STDC_CONSTANT_MACROS' \ 370 '-D__STDC_FORMAT_MACROS' \ 371 '-DANDROID' \ 372 '-D__GNU_SOURCE=1' \ 373 '-DUSE_STLPORT=1' \ 374 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 375 '-DCHROME_BUILD_ID=""' \ 376 '-DNDEBUG' \ 377 '-DNVALGRIND' \ 378 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 379 '-D_FORTIFY_SOURCE=2' 380 381 382 # Include paths placed before CFLAGS/CPPFLAGS 383 LOCAL_C_INCLUDES_Release := \ 384 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 385 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 386 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 387 $(gyp_shared_intermediate_dir) \ 388 $(LOCAL_PATH)/third_party/swiftshader/include \ 389 $(LOCAL_PATH)/third_party/khronos \ 390 $(LOCAL_PATH)/third_party/mesa/src/include \ 391 $(gyp_shared_intermediate_dir)/ui/gl \ 392 $(LOCAL_PATH)/gpu \ 393 $(LOCAL_PATH) \ 394 $(LOCAL_PATH)/skia/config \ 395 $(LOCAL_PATH)/third_party/skia/src/core \ 396 $(LOCAL_PATH)/third_party/skia/include/core \ 397 $(LOCAL_PATH)/third_party/skia/include/effects \ 398 $(LOCAL_PATH)/third_party/skia/include/pdf \ 399 $(LOCAL_PATH)/third_party/skia/include/gpu \ 400 $(LOCAL_PATH)/third_party/skia/include/lazy \ 401 $(LOCAL_PATH)/third_party/skia/include/pathops \ 402 $(LOCAL_PATH)/third_party/skia/include/pipe \ 403 $(LOCAL_PATH)/third_party/skia/include/ports \ 404 $(LOCAL_PATH)/third_party/skia/include/utils \ 405 $(LOCAL_PATH)/skia/ext \ 406 $(PWD)/external/icu/icu4c/source/common \ 407 $(PWD)/external/icu/icu4c/source/i18n \ 408 $(PWD)/frameworks/wilhelm/include \ 409 $(PWD)/bionic \ 410 $(PWD)/external/stlport/stlport 411 412 413 # Flags passed to only C++ (and not C) files. 414 LOCAL_CPPFLAGS_Release := \ 415 -fno-rtti \ 416 -fno-threadsafe-statics \ 417 -fvisibility-inlines-hidden \ 418 -Wsign-compare \ 419 -Wno-abi \ 420 -Wno-non-virtual-dtor \ 421 -Wno-sign-promo 422 423 424 LOCAL_FDO_SUPPORT_Release := false 425 426 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 427 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 428 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 429 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 430 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 431 ### Rules for final target. 432 433 LOCAL_LDFLAGS_Debug := \ 434 -Wl,-z,now \ 435 -Wl,-z,relro \ 436 -Wl,--fatal-warnings \ 437 -Wl,-z,noexecstack \ 438 -fPIC \ 439 -Wl,-z,relro \ 440 -Wl,-z,now \ 441 -fuse-ld=gold \ 442 -nostdlib \ 443 -Wl,--no-undefined \ 444 -Wl,--exclude-libs=ALL \ 445 -Wl,--icf=safe \ 446 -Wl,--warn-shared-textrel \ 447 -Wl,-O1 \ 448 -Wl,--as-needed 449 450 451 LOCAL_LDFLAGS_Release := \ 452 -Wl,-z,now \ 453 -Wl,-z,relro \ 454 -Wl,--fatal-warnings \ 455 -Wl,-z,noexecstack \ 456 -fPIC \ 457 -Wl,-z,relro \ 458 -Wl,-z,now \ 459 -fuse-ld=gold \ 460 -nostdlib \ 461 -Wl,--no-undefined \ 462 -Wl,--exclude-libs=ALL \ 463 -Wl,--icf=safe \ 464 -Wl,-O1 \ 465 -Wl,--as-needed \ 466 -Wl,--gc-sections \ 467 -Wl,--warn-shared-textrel 468 469 470 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 471 472 LOCAL_STATIC_LIBRARIES := \ 473 skia_skia_library_gyp 474 475 # Enable grouping to fix circular references 476 LOCAL_GROUP_STATIC_LIBRARIES := true 477 478 LOCAL_SHARED_LIBRARIES := \ 479 libstlport \ 480 libdl 481 482 # Add target alias to "gyp_all_modules" target. 483 .PHONY: gyp_all_modules 484 gyp_all_modules: ui_gl_gl_gyp 485 486 # Alias gyp target name. 487 .PHONY: gl 488 gl: ui_gl_gl_gyp 489 490 include $(BUILD_STATIC_LIBRARY) 491