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 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \ 15 $(call intermediates-dir-for,GYP,third_party_mesa_mesa_headers_gyp)/mesa_headers.stamp \ 16 $(call intermediates-dir-for,GYP,ui_gl_gl_jni_headers_gyp)/gl_jni_headers.stamp 17 18 ### Rules for action "generate_gl_bindings": 19 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_local_path := $(LOCAL_PATH) 20 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 21 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 22 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 23 $(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) 24 @echo "Gyp action: ui_gl_gl_gyp_gl_target_generate_gl_bindings ($@)" 25 $(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" "$(gyp_shared_intermediate_dir)/ui/gl" 26 27 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 28 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 29 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 30 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 31 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 32 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 33 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 34 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 35 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 36 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 37 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 38 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 39 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 40 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 41 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 42 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 43 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 44 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 45 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 46 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 47 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 48 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 49 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 50 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 51 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ; 52 53 54 GYP_GENERATED_OUTPUTS := \ 55 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc \ 56 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.h \ 57 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_egl.h \ 58 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc \ 59 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.h \ 60 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_gl.h \ 61 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.cc \ 62 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.h \ 63 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_glx.h \ 64 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc \ 65 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc \ 66 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.h \ 67 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_osmesa.h \ 68 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.cc \ 69 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.h \ 70 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_wgl.h \ 71 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_egl.h \ 72 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_gl.h \ 73 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_glx.h \ 74 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_osmesa.h \ 75 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_wgl.h \ 76 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_egl.h \ 77 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_gl.h \ 78 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_glx.h \ 79 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_osmesa.h \ 80 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_wgl.h 81 82 # Make sure our deps and generated files are built first. 83 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 84 85 LOCAL_CPP_EXTENSION := .cc 86 $(gyp_intermediate_dir)/gl_bindings_autogen_gl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc 87 mkdir -p $(@D); cp $< $@ 88 $(gyp_intermediate_dir)/gl_bindings_autogen_mock.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc 89 mkdir -p $(@D); cp $< $@ 90 $(gyp_intermediate_dir)/gl_bindings_autogen_osmesa.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc 91 mkdir -p $(@D); cp $< $@ 92 $(gyp_intermediate_dir)/gl_bindings_autogen_egl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc 93 mkdir -p $(@D); cp $< $@ 94 LOCAL_GENERATED_SOURCES := \ 95 $(gyp_intermediate_dir)/gl_bindings_autogen_gl.cc \ 96 $(gyp_intermediate_dir)/gl_bindings_autogen_mock.cc \ 97 $(gyp_intermediate_dir)/gl_bindings_autogen_osmesa.cc \ 98 $(gyp_intermediate_dir)/gl_bindings_autogen_egl.cc 99 100 GYP_COPIED_SOURCE_ORIGIN_DIRS := \ 101 $(gyp_shared_intermediate_dir)/ui/gl 102 103 LOCAL_SRC_FILES := \ 104 ui/gl/android/gl_jni_registrar.cc \ 105 ui/gl/android/scoped_java_surface.cc \ 106 ui/gl/android/surface_texture.cc \ 107 ui/gl/android/surface_texture_listener.cc \ 108 ui/gl/gl_bindings_skia_in_process.cc \ 109 ui/gl/gl_context.cc \ 110 ui/gl/gl_context_android.cc \ 111 ui/gl/gl_context_stub.cc \ 112 ui/gl/gl_fence.cc \ 113 ui/gl/gl_gl_api_implementation.cc \ 114 ui/gl/gl_image.cc \ 115 ui/gl/gl_image_android.cc \ 116 ui/gl/gl_image_shm.cc \ 117 ui/gl/gl_image_stub.cc \ 118 ui/gl/gl_implementation.cc \ 119 ui/gl/gl_implementation_android.cc \ 120 ui/gl/gl_interface.cc \ 121 ui/gl/gl_osmesa_api_implementation.cc \ 122 ui/gl/gl_share_group.cc \ 123 ui/gl/gl_state_restorer.cc \ 124 ui/gl/gl_surface.cc \ 125 ui/gl/gl_surface_stub.cc \ 126 ui/gl/gl_surface_osmesa.cc \ 127 ui/gl/gl_switches.cc \ 128 ui/gl/gpu_switching_manager.cc \ 129 ui/gl/scoped_binders.cc \ 130 ui/gl/scoped_make_current.cc \ 131 ui/gl/sync_control_vsync_provider.cc \ 132 ui/gl/egl_util.cc \ 133 ui/gl/gl_context_egl.cc \ 134 ui/gl/gl_surface_egl.cc \ 135 ui/gl/gl_egl_api_implementation.cc \ 136 ui/gl/gl_image_egl.cc 137 138 139 # Flags passed to both C and C++ files. 140 MY_CFLAGS_Debug := \ 141 -fstack-protector \ 142 --param=ssp-buffer-size=4 \ 143 -Werror \ 144 -fno-exceptions \ 145 -fno-strict-aliasing \ 146 -Wall \ 147 -Wno-unused-parameter \ 148 -Wno-missing-field-initializers \ 149 -fvisibility=hidden \ 150 -pipe \ 151 -fPIC \ 152 -Wno-unknown-pragmas \ 153 -fno-tree-sra \ 154 -fuse-ld=gold \ 155 -Wno-psabi \ 156 -ffunction-sections \ 157 -funwind-tables \ 158 -g \ 159 -fstack-protector \ 160 -fno-short-enums \ 161 -finline-limit=64 \ 162 -Wa,--noexecstack \ 163 -U_FORTIFY_SOURCE \ 164 -Wno-extra \ 165 -Wno-ignored-qualifiers \ 166 -Wno-type-limits \ 167 -Os \ 168 -g \ 169 -fomit-frame-pointer \ 170 -fdata-sections \ 171 -ffunction-sections 172 173 MY_DEFS_Debug := \ 174 '-DV8_DEPRECATION_WARNINGS' \ 175 '-D_FILE_OFFSET_BITS=64' \ 176 '-DNO_TCMALLOC' \ 177 '-DDISABLE_NACL' \ 178 '-DCHROMIUM_BUILD' \ 179 '-DUSE_LIBJPEG_TURBO=1' \ 180 '-DUSE_PROPRIETARY_CODECS' \ 181 '-DENABLE_CONFIGURATION_POLICY' \ 182 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 183 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 184 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 185 '-DUSE_OPENSSL=1' \ 186 '-DENABLE_EGLIMAGE=1' \ 187 '-DCLD_VERSION=1' \ 188 '-DENABLE_PRINTING=1' \ 189 '-DENABLE_MANAGED_USERS=1' \ 190 '-DGL_IMPLEMENTATION' \ 191 '-DGL_GLEXT_PROTOTYPES' \ 192 '-DEGL_EGLEXT_PROTOTYPES' \ 193 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 194 '-DMESA_EGL_NO_X11_HEADERS' \ 195 '-DU_USING_ICU_NAMESPACE=0' \ 196 '-D__STDC_CONSTANT_MACROS' \ 197 '-D__STDC_FORMAT_MACROS' \ 198 '-DANDROID' \ 199 '-D__GNU_SOURCE=1' \ 200 '-DUSE_STLPORT=1' \ 201 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 202 '-DCHROME_BUILD_ID=""' \ 203 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 204 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 205 '-D_DEBUG' 206 207 208 # Include paths placed before CFLAGS/CPPFLAGS 209 LOCAL_C_INCLUDES_Debug := \ 210 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 211 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 212 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 213 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 214 $(LOCAL_PATH)/third_party/swiftshader/include \ 215 $(LOCAL_PATH)/third_party/mesa/src/include \ 216 $(gyp_shared_intermediate_dir)/ui/gl \ 217 $(LOCAL_PATH)/third_party/khronos \ 218 $(LOCAL_PATH)/gpu \ 219 $(LOCAL_PATH) \ 220 $(LOCAL_PATH)/skia/config \ 221 $(PWD)/external/skia/include \ 222 $(PWD)/external/skia/include/core \ 223 $(LOCAL_PATH)/third_party/skia/src/core \ 224 $(LOCAL_PATH)/skia/ext \ 225 $(PWD)/external/icu4c/common \ 226 $(PWD)/external/icu4c/i18n \ 227 $(PWD)/frameworks/wilhelm/include \ 228 $(PWD)/bionic \ 229 $(PWD)/external/stlport/stlport 230 231 232 # Flags passed to only C++ (and not C) files. 233 LOCAL_CPPFLAGS_Debug := \ 234 -fno-rtti \ 235 -fno-threadsafe-statics \ 236 -fvisibility-inlines-hidden \ 237 -Wsign-compare \ 238 -Wno-abi \ 239 -Wno-error=c++0x-compat \ 240 -Wno-non-virtual-dtor \ 241 -Wno-sign-promo 242 243 244 # Flags passed to both C and C++ files. 245 MY_CFLAGS_Release := \ 246 -fstack-protector \ 247 --param=ssp-buffer-size=4 \ 248 -Werror \ 249 -fno-exceptions \ 250 -fno-strict-aliasing \ 251 -Wall \ 252 -Wno-unused-parameter \ 253 -Wno-missing-field-initializers \ 254 -fvisibility=hidden \ 255 -pipe \ 256 -fPIC \ 257 -Wno-unknown-pragmas \ 258 -fno-tree-sra \ 259 -fuse-ld=gold \ 260 -Wno-psabi \ 261 -ffunction-sections \ 262 -funwind-tables \ 263 -g \ 264 -fstack-protector \ 265 -fno-short-enums \ 266 -finline-limit=64 \ 267 -Wa,--noexecstack \ 268 -U_FORTIFY_SOURCE \ 269 -Wno-extra \ 270 -Wno-ignored-qualifiers \ 271 -Wno-type-limits \ 272 -Os \ 273 -fno-ident \ 274 -fdata-sections \ 275 -ffunction-sections \ 276 -fomit-frame-pointer 277 278 MY_DEFS_Release := \ 279 '-DV8_DEPRECATION_WARNINGS' \ 280 '-D_FILE_OFFSET_BITS=64' \ 281 '-DNO_TCMALLOC' \ 282 '-DDISABLE_NACL' \ 283 '-DCHROMIUM_BUILD' \ 284 '-DUSE_LIBJPEG_TURBO=1' \ 285 '-DUSE_PROPRIETARY_CODECS' \ 286 '-DENABLE_CONFIGURATION_POLICY' \ 287 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 288 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 289 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 290 '-DUSE_OPENSSL=1' \ 291 '-DENABLE_EGLIMAGE=1' \ 292 '-DCLD_VERSION=1' \ 293 '-DENABLE_PRINTING=1' \ 294 '-DENABLE_MANAGED_USERS=1' \ 295 '-DGL_IMPLEMENTATION' \ 296 '-DGL_GLEXT_PROTOTYPES' \ 297 '-DEGL_EGLEXT_PROTOTYPES' \ 298 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 299 '-DMESA_EGL_NO_X11_HEADERS' \ 300 '-DU_USING_ICU_NAMESPACE=0' \ 301 '-D__STDC_CONSTANT_MACROS' \ 302 '-D__STDC_FORMAT_MACROS' \ 303 '-DANDROID' \ 304 '-D__GNU_SOURCE=1' \ 305 '-DUSE_STLPORT=1' \ 306 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 307 '-DCHROME_BUILD_ID=""' \ 308 '-DNDEBUG' \ 309 '-DNVALGRIND' \ 310 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 311 '-D_FORTIFY_SOURCE=2' 312 313 314 # Include paths placed before CFLAGS/CPPFLAGS 315 LOCAL_C_INCLUDES_Release := \ 316 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 317 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 318 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 319 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 320 $(LOCAL_PATH)/third_party/swiftshader/include \ 321 $(LOCAL_PATH)/third_party/mesa/src/include \ 322 $(gyp_shared_intermediate_dir)/ui/gl \ 323 $(LOCAL_PATH)/third_party/khronos \ 324 $(LOCAL_PATH)/gpu \ 325 $(LOCAL_PATH) \ 326 $(LOCAL_PATH)/skia/config \ 327 $(PWD)/external/skia/include \ 328 $(PWD)/external/skia/include/core \ 329 $(LOCAL_PATH)/third_party/skia/src/core \ 330 $(LOCAL_PATH)/skia/ext \ 331 $(PWD)/external/icu4c/common \ 332 $(PWD)/external/icu4c/i18n \ 333 $(PWD)/frameworks/wilhelm/include \ 334 $(PWD)/bionic \ 335 $(PWD)/external/stlport/stlport 336 337 338 # Flags passed to only C++ (and not C) files. 339 LOCAL_CPPFLAGS_Release := \ 340 -fno-rtti \ 341 -fno-threadsafe-statics \ 342 -fvisibility-inlines-hidden \ 343 -Wsign-compare \ 344 -Wno-abi \ 345 -Wno-error=c++0x-compat \ 346 -Wno-non-virtual-dtor \ 347 -Wno-sign-promo 348 349 350 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 351 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 352 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 353 ### Rules for final target. 354 355 LOCAL_LDFLAGS_Debug := \ 356 -Wl,-z,now \ 357 -Wl,-z,relro \ 358 -Wl,-z,noexecstack \ 359 -fPIC \ 360 -Wl,-z,relro \ 361 -Wl,-z,now \ 362 -fuse-ld=gold \ 363 -nostdlib \ 364 -Wl,--no-undefined \ 365 -Wl,--exclude-libs=ALL \ 366 -Wl,--icf=safe \ 367 -Wl,--fatal-warnings \ 368 -Wl,--gc-sections \ 369 -Wl,--warn-shared-textrel \ 370 -Wl,-O1 \ 371 -Wl,--as-needed 372 373 374 LOCAL_LDFLAGS_Release := \ 375 -Wl,-z,now \ 376 -Wl,-z,relro \ 377 -Wl,-z,noexecstack \ 378 -fPIC \ 379 -Wl,-z,relro \ 380 -Wl,-z,now \ 381 -fuse-ld=gold \ 382 -nostdlib \ 383 -Wl,--no-undefined \ 384 -Wl,--exclude-libs=ALL \ 385 -Wl,--icf=safe \ 386 -Wl,-O1 \ 387 -Wl,--as-needed \ 388 -Wl,--gc-sections \ 389 -Wl,--fatal-warnings \ 390 -Wl,--warn-shared-textrel 391 392 393 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 394 395 LOCAL_STATIC_LIBRARIES := 396 397 # Enable grouping to fix circular references 398 LOCAL_GROUP_STATIC_LIBRARIES := true 399 400 LOCAL_SHARED_LIBRARIES := \ 401 libskia \ 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