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