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 -fstack-protector \ 136 --param=ssp-buffer-size=4 \ 137 \ 138 -fno-strict-aliasing \ 139 -Wall \ 140 -Wno-unused-parameter \ 141 -Wno-missing-field-initializers \ 142 -fvisibility=hidden \ 143 -pipe \ 144 -fPIC \ 145 -Wno-unused-local-typedefs \ 146 -ffunction-sections \ 147 -funwind-tables \ 148 -g \ 149 -fstack-protector \ 150 -fno-short-enums \ 151 -finline-limit=64 \ 152 -Wa,--noexecstack \ 153 -U_FORTIFY_SOURCE \ 154 -Wno-extra \ 155 -Wno-ignored-qualifiers \ 156 -Wno-type-limits \ 157 -Wno-unused-but-set-variable \ 158 -Os \ 159 -g \ 160 -gdwarf-4 \ 161 -fdata-sections \ 162 -ffunction-sections \ 163 -fomit-frame-pointer \ 164 -funwind-tables 165 166 MY_DEFS_Debug := \ 167 '-DV8_DEPRECATION_WARNINGS' \ 168 '-D_FILE_OFFSET_BITS=64' \ 169 '-DNO_TCMALLOC' \ 170 '-DDISABLE_NACL' \ 171 '-DCHROMIUM_BUILD' \ 172 '-DUSE_LIBJPEG_TURBO=1' \ 173 '-DENABLE_WEBRTC=1' \ 174 '-DUSE_PROPRIETARY_CODECS' \ 175 '-DENABLE_BROWSER_CDMS' \ 176 '-DENABLE_CONFIGURATION_POLICY' \ 177 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 178 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 179 '-DENABLE_EGLIMAGE=1' \ 180 '-DCLD_VERSION=1' \ 181 '-DENABLE_PRINTING=1' \ 182 '-DENABLE_MANAGED_USERS=1' \ 183 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 184 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 185 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 186 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 187 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 188 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 189 '-DVIDEO_HOLE=1' \ 190 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 191 '-DGL_IMPLEMENTATION' \ 192 '-DGL_GLEXT_PROTOTYPES' \ 193 '-DEGL_EGLEXT_PROTOTYPES' \ 194 '-DSK_ENABLE_INST_COUNT=0' \ 195 '-DSK_SUPPORT_GPU=1' \ 196 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 197 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 198 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 199 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 200 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 201 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 202 '-DSK_BUILD_FOR_ANDROID' \ 203 '-DSK_USE_POSIX_THREADS' \ 204 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 205 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 206 '-DMESA_EGL_NO_X11_HEADERS' \ 207 '-DU_USING_ICU_NAMESPACE=0' \ 208 '-DU_ENABLE_DYLOAD=0' \ 209 '-DUSE_OPENSSL=1' \ 210 '-DUSE_OPENSSL_CERTS=1' \ 211 '-D__STDC_CONSTANT_MACROS' \ 212 '-D__STDC_FORMAT_MACROS' \ 213 '-DANDROID' \ 214 '-D__GNU_SOURCE=1' \ 215 '-DUSE_STLPORT=1' \ 216 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 217 '-DCHROME_BUILD_ID=""' \ 218 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 219 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 220 '-D_DEBUG' 221 222 223 # Include paths placed before CFLAGS/CPPFLAGS 224 LOCAL_C_INCLUDES_Debug := \ 225 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 226 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 227 $(gyp_shared_intermediate_dir) \ 228 $(LOCAL_PATH)/third_party/swiftshader/include \ 229 $(LOCAL_PATH)/third_party/khronos \ 230 $(gyp_shared_intermediate_dir)/ui/gl \ 231 $(LOCAL_PATH)/gpu \ 232 $(LOCAL_PATH) \ 233 $(LOCAL_PATH)/skia/config \ 234 $(LOCAL_PATH)/third_party/skia/src/core \ 235 $(LOCAL_PATH)/third_party/skia/include/core \ 236 $(LOCAL_PATH)/third_party/skia/include/effects \ 237 $(LOCAL_PATH)/third_party/skia/include/pdf \ 238 $(LOCAL_PATH)/third_party/skia/include/gpu \ 239 $(LOCAL_PATH)/third_party/skia/include/lazy \ 240 $(LOCAL_PATH)/third_party/skia/include/pathops \ 241 $(LOCAL_PATH)/third_party/skia/include/pipe \ 242 $(LOCAL_PATH)/third_party/skia/include/ports \ 243 $(LOCAL_PATH)/third_party/skia/include/utils \ 244 $(LOCAL_PATH)/skia/ext \ 245 $(LOCAL_PATH)/third_party/mesa/src/include \ 246 $(PWD)/external/icu/icu4c/source/common \ 247 $(PWD)/external/icu/icu4c/source/i18n \ 248 $(PWD)/frameworks/wilhelm/include \ 249 $(PWD)/bionic \ 250 $(PWD)/external/stlport/stlport 251 252 253 # Flags passed to only C++ (and not C) files. 254 LOCAL_CPPFLAGS_Debug := \ 255 -fno-exceptions \ 256 -fno-rtti \ 257 -fno-threadsafe-statics \ 258 -fvisibility-inlines-hidden \ 259 -Wsign-compare \ 260 -Wno-uninitialized \ 261 -std=gnu++11 \ 262 -Wno-narrowing \ 263 -Wno-literal-suffix \ 264 -Wno-non-virtual-dtor \ 265 -Wno-sign-promo 266 267 268 # Flags passed to both C and C++ files. 269 MY_CFLAGS_Release := \ 270 -fstack-protector \ 271 --param=ssp-buffer-size=4 \ 272 \ 273 -fno-strict-aliasing \ 274 -Wall \ 275 -Wno-unused-parameter \ 276 -Wno-missing-field-initializers \ 277 -fvisibility=hidden \ 278 -pipe \ 279 -fPIC \ 280 -Wno-unused-local-typedefs \ 281 -ffunction-sections \ 282 -funwind-tables \ 283 -g \ 284 -fstack-protector \ 285 -fno-short-enums \ 286 -finline-limit=64 \ 287 -Wa,--noexecstack \ 288 -U_FORTIFY_SOURCE \ 289 -Wno-extra \ 290 -Wno-ignored-qualifiers \ 291 -Wno-type-limits \ 292 -Wno-unused-but-set-variable \ 293 -Os \ 294 -fno-ident \ 295 -fdata-sections \ 296 -ffunction-sections \ 297 -fomit-frame-pointer \ 298 -funwind-tables 299 300 MY_DEFS_Release := \ 301 '-DV8_DEPRECATION_WARNINGS' \ 302 '-D_FILE_OFFSET_BITS=64' \ 303 '-DNO_TCMALLOC' \ 304 '-DDISABLE_NACL' \ 305 '-DCHROMIUM_BUILD' \ 306 '-DUSE_LIBJPEG_TURBO=1' \ 307 '-DENABLE_WEBRTC=1' \ 308 '-DUSE_PROPRIETARY_CODECS' \ 309 '-DENABLE_BROWSER_CDMS' \ 310 '-DENABLE_CONFIGURATION_POLICY' \ 311 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 312 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 313 '-DENABLE_EGLIMAGE=1' \ 314 '-DCLD_VERSION=1' \ 315 '-DENABLE_PRINTING=1' \ 316 '-DENABLE_MANAGED_USERS=1' \ 317 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 318 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 319 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 320 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 321 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 322 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 323 '-DVIDEO_HOLE=1' \ 324 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 325 '-DGL_IMPLEMENTATION' \ 326 '-DGL_GLEXT_PROTOTYPES' \ 327 '-DEGL_EGLEXT_PROTOTYPES' \ 328 '-DSK_ENABLE_INST_COUNT=0' \ 329 '-DSK_SUPPORT_GPU=1' \ 330 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 331 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 332 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 333 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 334 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 335 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 336 '-DSK_BUILD_FOR_ANDROID' \ 337 '-DSK_USE_POSIX_THREADS' \ 338 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 339 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 340 '-DMESA_EGL_NO_X11_HEADERS' \ 341 '-DU_USING_ICU_NAMESPACE=0' \ 342 '-DU_ENABLE_DYLOAD=0' \ 343 '-DUSE_OPENSSL=1' \ 344 '-DUSE_OPENSSL_CERTS=1' \ 345 '-D__STDC_CONSTANT_MACROS' \ 346 '-D__STDC_FORMAT_MACROS' \ 347 '-DANDROID' \ 348 '-D__GNU_SOURCE=1' \ 349 '-DUSE_STLPORT=1' \ 350 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 351 '-DCHROME_BUILD_ID=""' \ 352 '-DNDEBUG' \ 353 '-DNVALGRIND' \ 354 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 355 '-D_FORTIFY_SOURCE=2' 356 357 358 # Include paths placed before CFLAGS/CPPFLAGS 359 LOCAL_C_INCLUDES_Release := \ 360 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 361 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 362 $(gyp_shared_intermediate_dir) \ 363 $(LOCAL_PATH)/third_party/swiftshader/include \ 364 $(LOCAL_PATH)/third_party/khronos \ 365 $(gyp_shared_intermediate_dir)/ui/gl \ 366 $(LOCAL_PATH)/gpu \ 367 $(LOCAL_PATH) \ 368 $(LOCAL_PATH)/skia/config \ 369 $(LOCAL_PATH)/third_party/skia/src/core \ 370 $(LOCAL_PATH)/third_party/skia/include/core \ 371 $(LOCAL_PATH)/third_party/skia/include/effects \ 372 $(LOCAL_PATH)/third_party/skia/include/pdf \ 373 $(LOCAL_PATH)/third_party/skia/include/gpu \ 374 $(LOCAL_PATH)/third_party/skia/include/lazy \ 375 $(LOCAL_PATH)/third_party/skia/include/pathops \ 376 $(LOCAL_PATH)/third_party/skia/include/pipe \ 377 $(LOCAL_PATH)/third_party/skia/include/ports \ 378 $(LOCAL_PATH)/third_party/skia/include/utils \ 379 $(LOCAL_PATH)/skia/ext \ 380 $(LOCAL_PATH)/third_party/mesa/src/include \ 381 $(PWD)/external/icu/icu4c/source/common \ 382 $(PWD)/external/icu/icu4c/source/i18n \ 383 $(PWD)/frameworks/wilhelm/include \ 384 $(PWD)/bionic \ 385 $(PWD)/external/stlport/stlport 386 387 388 # Flags passed to only C++ (and not C) files. 389 LOCAL_CPPFLAGS_Release := \ 390 -fno-exceptions \ 391 -fno-rtti \ 392 -fno-threadsafe-statics \ 393 -fvisibility-inlines-hidden \ 394 -Wsign-compare \ 395 -Wno-uninitialized \ 396 -std=gnu++11 \ 397 -Wno-narrowing \ 398 -Wno-literal-suffix \ 399 -Wno-non-virtual-dtor \ 400 -Wno-sign-promo 401 402 403 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 404 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 405 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 406 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 407 ### Rules for final target. 408 409 LOCAL_SHARED_LIBRARIES := \ 410 libstlport \ 411 libdl 412 413 # Add target alias to "gyp_all_modules" target. 414 .PHONY: gyp_all_modules 415 gyp_all_modules: ui_gl_gl_gyp 416 417 # Alias gyp target name. 418 .PHONY: gl 419 gl: ui_gl_gl_gyp 420 421 include $(BUILD_STATIC_LIBRARY) 422