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