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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ 16 $(call intermediates-dir-for,GYP,third_party_mesa_mesa_headers_gyp,,,$(GYP_VAR_PREFIX))/mesa_headers.stamp \ 17 $(call intermediates-dir-for,GYP,ui_gl_gl_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/gl_jni_headers.stamp 18 19 ### Rules for action "generate_gl_bindings": 20 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_local_path := $(LOCAL_PATH) 21 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_var_prefix := $(GYP_VAR_PREFIX) 22 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 23 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 24 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 25 $(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) 26 @echo "Gyp action: ui_gl_gl_gyp_gl_target_generate_gl_bindings ($@)" 27 $(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" 28 29 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 30 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 31 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 32 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 33 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 34 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 35 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 36 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 37 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 38 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 39 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 40 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 41 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 42 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 43 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 44 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 45 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 46 47 48 GYP_GENERATED_OUTPUTS := \ 49 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc \ 50 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.h \ 51 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_egl.h \ 52 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc \ 53 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.h \ 54 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_gl.h \ 55 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.cc \ 56 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.h \ 57 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_glx.h \ 58 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc \ 59 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.h \ 60 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc \ 61 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.h \ 62 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_osmesa.h \ 63 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.cc \ 64 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.h \ 65 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_wgl.h \ 66 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_gl.h 67 68 # Make sure our deps and generated files are built first. 69 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 70 71 LOCAL_CPP_EXTENSION := .cc 72 $(gyp_intermediate_dir)/gl_bindings_autogen_gl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc 73 mkdir -p $(@D); cp $< $@ 74 $(gyp_intermediate_dir)/gl_bindings_autogen_osmesa.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc 75 mkdir -p $(@D); cp $< $@ 76 $(gyp_intermediate_dir)/gl_bindings_autogen_egl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc 77 mkdir -p $(@D); cp $< $@ 78 LOCAL_GENERATED_SOURCES := \ 79 $(gyp_intermediate_dir)/gl_bindings_autogen_gl.cc \ 80 $(gyp_intermediate_dir)/gl_bindings_autogen_osmesa.cc \ 81 $(gyp_intermediate_dir)/gl_bindings_autogen_egl.cc 82 83 GYP_COPIED_SOURCE_ORIGIN_DIRS := \ 84 $(gyp_shared_intermediate_dir)/ui/gl 85 86 LOCAL_SRC_FILES := \ 87 ui/gl/android/gl_jni_registrar.cc \ 88 ui/gl/android/scoped_java_surface.cc \ 89 ui/gl/android/surface_texture.cc \ 90 ui/gl/android/surface_texture_listener.cc \ 91 ui/gl/android/surface_texture_tracker.cc \ 92 ui/gl/gl_bindings_skia_in_process.cc \ 93 ui/gl/gl_context.cc \ 94 ui/gl/gl_context_android.cc \ 95 ui/gl/gl_context_osmesa.cc \ 96 ui/gl/gl_context_stub.cc \ 97 ui/gl/gl_context_stub_with_extensions.cc \ 98 ui/gl/gl_fence.cc \ 99 ui/gl/gl_fence_arb.cc \ 100 ui/gl/gl_fence_nv.cc \ 101 ui/gl/gl_gl_api_implementation.cc \ 102 ui/gl/gl_image.cc \ 103 ui/gl/gl_image_memory.cc \ 104 ui/gl/gl_image_ref_counted_memory.cc \ 105 ui/gl/gl_image_shared_memory.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 --param=ssp-buffer-size=4 \ 136 -Werror \ 137 -fno-strict-aliasing \ 138 -Wall \ 139 -Wno-unused-parameter \ 140 -Wno-missing-field-initializers \ 141 -fvisibility=hidden \ 142 -pipe \ 143 -fPIC \ 144 -Wno-unused-local-typedefs \ 145 -msse2 \ 146 -mfpmath=sse \ 147 -mmmx \ 148 -m32 \ 149 -ffunction-sections \ 150 -funwind-tables \ 151 -g \ 152 -fno-short-enums \ 153 -finline-limit=64 \ 154 -Wa,--noexecstack \ 155 -U_FORTIFY_SOURCE \ 156 -Wno-extra \ 157 -Wno-ignored-qualifiers \ 158 -Wno-type-limits \ 159 -Wno-unused-but-set-variable \ 160 -fno-stack-protector \ 161 -Os \ 162 -g \ 163 -gdwarf-4 \ 164 -fdata-sections \ 165 -ffunction-sections \ 166 -fomit-frame-pointer \ 167 -funwind-tables 168 169 MY_DEFS_Debug := \ 170 '-DV8_DEPRECATION_WARNINGS' \ 171 '-D_FILE_OFFSET_BITS=64' \ 172 '-DNO_TCMALLOC' \ 173 '-DDISABLE_NACL' \ 174 '-DCHROMIUM_BUILD' \ 175 '-DUSE_LIBJPEG_TURBO=1' \ 176 '-DENABLE_WEBRTC=1' \ 177 '-DUSE_PROPRIETARY_CODECS' \ 178 '-DENABLE_BROWSER_CDMS' \ 179 '-DENABLE_CONFIGURATION_POLICY' \ 180 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 181 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 182 '-DENABLE_EGLIMAGE=1' \ 183 '-DCLD_VERSION=1' \ 184 '-DENABLE_PRINTING=1' \ 185 '-DENABLE_MANAGED_USERS=1' \ 186 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 187 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 188 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 189 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 190 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 191 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 192 '-DVIDEO_HOLE=1' \ 193 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 194 '-DGL_IMPLEMENTATION' \ 195 '-DGL_GLEXT_PROTOTYPES' \ 196 '-DEGL_EGLEXT_PROTOTYPES' \ 197 '-DSK_ENABLE_INST_COUNT=0' \ 198 '-DSK_SUPPORT_GPU=1' \ 199 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 200 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 201 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 202 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 203 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 204 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 205 '-DSK_BUILD_FOR_ANDROID' \ 206 '-DSK_USE_POSIX_THREADS' \ 207 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 208 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 209 '-DMESA_EGL_NO_X11_HEADERS' \ 210 '-DU_USING_ICU_NAMESPACE=0' \ 211 '-DU_ENABLE_DYLOAD=0' \ 212 '-DUSE_OPENSSL=1' \ 213 '-DUSE_OPENSSL_CERTS=1' \ 214 '-D__STDC_CONSTANT_MACROS' \ 215 '-D__STDC_FORMAT_MACROS' \ 216 '-DANDROID' \ 217 '-D__GNU_SOURCE=1' \ 218 '-DUSE_STLPORT=1' \ 219 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 220 '-DCHROME_BUILD_ID=""' \ 221 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 222 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 223 '-D_DEBUG' 224 225 226 # Include paths placed before CFLAGS/CPPFLAGS 227 LOCAL_C_INCLUDES_Debug := \ 228 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 229 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 230 $(gyp_shared_intermediate_dir) \ 231 $(LOCAL_PATH)/third_party/swiftshader/include \ 232 $(LOCAL_PATH)/third_party/khronos \ 233 $(gyp_shared_intermediate_dir)/ui/gl \ 234 $(LOCAL_PATH)/gpu \ 235 $(LOCAL_PATH) \ 236 $(LOCAL_PATH)/skia/config \ 237 $(LOCAL_PATH)/third_party/skia/src/core \ 238 $(LOCAL_PATH)/third_party/skia/include/core \ 239 $(LOCAL_PATH)/third_party/skia/include/effects \ 240 $(LOCAL_PATH)/third_party/skia/include/pdf \ 241 $(LOCAL_PATH)/third_party/skia/include/gpu \ 242 $(LOCAL_PATH)/third_party/skia/include/lazy \ 243 $(LOCAL_PATH)/third_party/skia/include/pathops \ 244 $(LOCAL_PATH)/third_party/skia/include/pipe \ 245 $(LOCAL_PATH)/third_party/skia/include/ports \ 246 $(LOCAL_PATH)/third_party/skia/include/utils \ 247 $(LOCAL_PATH)/skia/ext \ 248 $(LOCAL_PATH)/third_party/mesa/src/include \ 249 $(PWD)/external/icu/icu4c/source/common \ 250 $(PWD)/external/icu/icu4c/source/i18n \ 251 $(PWD)/frameworks/wilhelm/include \ 252 $(PWD)/bionic \ 253 $(PWD)/external/stlport/stlport 254 255 256 # Flags passed to only C++ (and not C) files. 257 LOCAL_CPPFLAGS_Debug := \ 258 -fno-exceptions \ 259 -fno-rtti \ 260 -fno-threadsafe-statics \ 261 -fvisibility-inlines-hidden \ 262 -Wsign-compare \ 263 -std=gnu++11 \ 264 -Wno-narrowing \ 265 -Wno-literal-suffix \ 266 -Wno-non-virtual-dtor \ 267 -Wno-sign-promo 268 269 270 # Flags passed to both C and C++ files. 271 MY_CFLAGS_Release := \ 272 --param=ssp-buffer-size=4 \ 273 -Werror \ 274 -fno-strict-aliasing \ 275 -Wall \ 276 -Wno-unused-parameter \ 277 -Wno-missing-field-initializers \ 278 -fvisibility=hidden \ 279 -pipe \ 280 -fPIC \ 281 -Wno-unused-local-typedefs \ 282 -msse2 \ 283 -mfpmath=sse \ 284 -mmmx \ 285 -m32 \ 286 -ffunction-sections \ 287 -funwind-tables \ 288 -g \ 289 -fno-short-enums \ 290 -finline-limit=64 \ 291 -Wa,--noexecstack \ 292 -U_FORTIFY_SOURCE \ 293 -Wno-extra \ 294 -Wno-ignored-qualifiers \ 295 -Wno-type-limits \ 296 -Wno-unused-but-set-variable \ 297 -fno-stack-protector \ 298 -Os \ 299 -fno-ident \ 300 -fdata-sections \ 301 -ffunction-sections \ 302 -fomit-frame-pointer \ 303 -funwind-tables 304 305 MY_DEFS_Release := \ 306 '-DV8_DEPRECATION_WARNINGS' \ 307 '-D_FILE_OFFSET_BITS=64' \ 308 '-DNO_TCMALLOC' \ 309 '-DDISABLE_NACL' \ 310 '-DCHROMIUM_BUILD' \ 311 '-DUSE_LIBJPEG_TURBO=1' \ 312 '-DENABLE_WEBRTC=1' \ 313 '-DUSE_PROPRIETARY_CODECS' \ 314 '-DENABLE_BROWSER_CDMS' \ 315 '-DENABLE_CONFIGURATION_POLICY' \ 316 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 317 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 318 '-DENABLE_EGLIMAGE=1' \ 319 '-DCLD_VERSION=1' \ 320 '-DENABLE_PRINTING=1' \ 321 '-DENABLE_MANAGED_USERS=1' \ 322 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 323 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 324 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 325 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 326 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 327 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 328 '-DVIDEO_HOLE=1' \ 329 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 330 '-DGL_IMPLEMENTATION' \ 331 '-DGL_GLEXT_PROTOTYPES' \ 332 '-DEGL_EGLEXT_PROTOTYPES' \ 333 '-DSK_ENABLE_INST_COUNT=0' \ 334 '-DSK_SUPPORT_GPU=1' \ 335 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 336 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 337 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 338 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 339 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 340 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 341 '-DSK_BUILD_FOR_ANDROID' \ 342 '-DSK_USE_POSIX_THREADS' \ 343 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 344 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 345 '-DMESA_EGL_NO_X11_HEADERS' \ 346 '-DU_USING_ICU_NAMESPACE=0' \ 347 '-DU_ENABLE_DYLOAD=0' \ 348 '-DUSE_OPENSSL=1' \ 349 '-DUSE_OPENSSL_CERTS=1' \ 350 '-D__STDC_CONSTANT_MACROS' \ 351 '-D__STDC_FORMAT_MACROS' \ 352 '-DANDROID' \ 353 '-D__GNU_SOURCE=1' \ 354 '-DUSE_STLPORT=1' \ 355 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 356 '-DCHROME_BUILD_ID=""' \ 357 '-DNDEBUG' \ 358 '-DNVALGRIND' \ 359 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 360 '-D_FORTIFY_SOURCE=2' 361 362 363 # Include paths placed before CFLAGS/CPPFLAGS 364 LOCAL_C_INCLUDES_Release := \ 365 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 366 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 367 $(gyp_shared_intermediate_dir) \ 368 $(LOCAL_PATH)/third_party/swiftshader/include \ 369 $(LOCAL_PATH)/third_party/khronos \ 370 $(gyp_shared_intermediate_dir)/ui/gl \ 371 $(LOCAL_PATH)/gpu \ 372 $(LOCAL_PATH) \ 373 $(LOCAL_PATH)/skia/config \ 374 $(LOCAL_PATH)/third_party/skia/src/core \ 375 $(LOCAL_PATH)/third_party/skia/include/core \ 376 $(LOCAL_PATH)/third_party/skia/include/effects \ 377 $(LOCAL_PATH)/third_party/skia/include/pdf \ 378 $(LOCAL_PATH)/third_party/skia/include/gpu \ 379 $(LOCAL_PATH)/third_party/skia/include/lazy \ 380 $(LOCAL_PATH)/third_party/skia/include/pathops \ 381 $(LOCAL_PATH)/third_party/skia/include/pipe \ 382 $(LOCAL_PATH)/third_party/skia/include/ports \ 383 $(LOCAL_PATH)/third_party/skia/include/utils \ 384 $(LOCAL_PATH)/skia/ext \ 385 $(LOCAL_PATH)/third_party/mesa/src/include \ 386 $(PWD)/external/icu/icu4c/source/common \ 387 $(PWD)/external/icu/icu4c/source/i18n \ 388 $(PWD)/frameworks/wilhelm/include \ 389 $(PWD)/bionic \ 390 $(PWD)/external/stlport/stlport 391 392 393 # Flags passed to only C++ (and not C) files. 394 LOCAL_CPPFLAGS_Release := \ 395 -fno-exceptions \ 396 -fno-rtti \ 397 -fno-threadsafe-statics \ 398 -fvisibility-inlines-hidden \ 399 -Wsign-compare \ 400 -std=gnu++11 \ 401 -Wno-narrowing \ 402 -Wno-literal-suffix \ 403 -Wno-non-virtual-dtor \ 404 -Wno-sign-promo 405 406 407 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 408 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 409 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 410 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 411 ### Rules for final target. 412 413 LOCAL_SHARED_LIBRARIES := \ 414 libstlport \ 415 libdl 416 417 # Add target alias to "gyp_all_modules" target. 418 .PHONY: gyp_all_modules 419 gyp_all_modules: ui_gl_gl_gyp 420 421 # Alias gyp target name. 422 .PHONY: gl 423 gl: ui_gl_gl_gyp 424 425 include $(BUILD_STATIC_LIBRARY) 426