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 := webkit_common_gpu_webkit_gpu_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_WebKit_public_blink_minimal_gyp,,,$(GYP_VAR_PREFIX))/blink_minimal.stamp \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a 18 19 GYP_GENERATED_OUTPUTS := 20 21 # Make sure our deps and generated files are built first. 22 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24 LOCAL_CPP_EXTENSION := .cc 25 LOCAL_GENERATED_SOURCES := 26 27 GYP_COPIED_SOURCE_ORIGIN_DIRS := 28 29 LOCAL_SRC_FILES := \ 30 webkit/common/gpu/context_provider_in_process.cc \ 31 webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc \ 32 webkit/common/gpu/webgraphicscontext3d_impl.cc \ 33 webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc 34 35 36 # Flags passed to both C and C++ files. 37 MY_CFLAGS_Debug := \ 38 -fstack-protector \ 39 --param=ssp-buffer-size=4 \ 40 -Werror \ 41 -fno-strict-aliasing \ 42 -Wall \ 43 -Wno-unused-parameter \ 44 -Wno-missing-field-initializers \ 45 -fvisibility=hidden \ 46 -pipe \ 47 -fPIC \ 48 -Wno-unused-local-typedefs \ 49 -m64 \ 50 -march=x86-64 \ 51 -ffunction-sections \ 52 -funwind-tables \ 53 -g \ 54 -fstack-protector \ 55 -fno-short-enums \ 56 -finline-limit=64 \ 57 -Wa,--noexecstack \ 58 -U_FORTIFY_SOURCE \ 59 -Wno-extra \ 60 -Wno-ignored-qualifiers \ 61 -Wno-type-limits \ 62 -Wno-unused-but-set-variable \ 63 -Os \ 64 -g \ 65 -gdwarf-4 \ 66 -fdata-sections \ 67 -ffunction-sections \ 68 -fomit-frame-pointer \ 69 -funwind-tables 70 71 MY_DEFS_Debug := \ 72 '-DV8_DEPRECATION_WARNINGS' \ 73 '-D_FILE_OFFSET_BITS=64' \ 74 '-DNO_TCMALLOC' \ 75 '-DDISABLE_NACL' \ 76 '-DCHROMIUM_BUILD' \ 77 '-DUSE_LIBJPEG_TURBO=1' \ 78 '-DENABLE_WEBRTC=1' \ 79 '-DUSE_PROPRIETARY_CODECS' \ 80 '-DENABLE_BROWSER_CDMS' \ 81 '-DENABLE_CONFIGURATION_POLICY' \ 82 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 83 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 84 '-DENABLE_EGLIMAGE=1' \ 85 '-DCLD_VERSION=1' \ 86 '-DENABLE_PRINTING=1' \ 87 '-DENABLE_MANAGED_USERS=1' \ 88 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 89 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 90 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 91 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 92 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 93 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 94 '-DVIDEO_HOLE=1' \ 95 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 96 '-DWEBKIT_GPU_IMPLEMENTATION' \ 97 '-DSK_ENABLE_INST_COUNT=0' \ 98 '-DSK_SUPPORT_GPU=1' \ 99 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 100 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 101 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 102 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 103 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 104 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 105 '-DSK_BUILD_FOR_ANDROID' \ 106 '-DSK_USE_POSIX_THREADS' \ 107 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 108 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 109 '-DMESA_EGL_NO_X11_HEADERS' \ 110 '-DU_USING_ICU_NAMESPACE=0' \ 111 '-DU_ENABLE_DYLOAD=0' \ 112 '-DUSE_OPENSSL=1' \ 113 '-DUSE_OPENSSL_CERTS=1' \ 114 '-D__STDC_CONSTANT_MACROS' \ 115 '-D__STDC_FORMAT_MACROS' \ 116 '-DANDROID' \ 117 '-D__GNU_SOURCE=1' \ 118 '-DUSE_STLPORT=1' \ 119 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 120 '-DCHROME_BUILD_ID=""' \ 121 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 122 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 123 '-D_DEBUG' 124 125 126 # Include paths placed before CFLAGS/CPPFLAGS 127 LOCAL_C_INCLUDES_Debug := \ 128 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 129 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 130 $(gyp_shared_intermediate_dir) \ 131 $(LOCAL_PATH) \ 132 $(LOCAL_PATH)/third_party/khronos \ 133 $(LOCAL_PATH)/gpu \ 134 $(LOCAL_PATH)/skia/config \ 135 $(LOCAL_PATH)/third_party/WebKit/Source \ 136 $(LOCAL_PATH)/third_party/skia/src/core \ 137 $(LOCAL_PATH)/third_party/skia/include/core \ 138 $(LOCAL_PATH)/third_party/skia/include/effects \ 139 $(LOCAL_PATH)/third_party/skia/include/pdf \ 140 $(LOCAL_PATH)/third_party/skia/include/gpu \ 141 $(LOCAL_PATH)/third_party/skia/include/lazy \ 142 $(LOCAL_PATH)/third_party/skia/include/pathops \ 143 $(LOCAL_PATH)/third_party/skia/include/pipe \ 144 $(LOCAL_PATH)/third_party/skia/include/ports \ 145 $(LOCAL_PATH)/third_party/skia/include/utils \ 146 $(LOCAL_PATH)/skia/ext \ 147 $(gyp_shared_intermediate_dir)/ui/gl \ 148 $(LOCAL_PATH)/third_party/mesa/src/include \ 149 $(PWD)/external/icu/icu4c/source/common \ 150 $(PWD)/external/icu/icu4c/source/i18n \ 151 $(PWD)/frameworks/wilhelm/include \ 152 $(PWD)/bionic \ 153 $(PWD)/external/stlport/stlport 154 155 156 # Flags passed to only C++ (and not C) files. 157 LOCAL_CPPFLAGS_Debug := \ 158 -fno-exceptions \ 159 -fno-rtti \ 160 -fno-threadsafe-statics \ 161 -fvisibility-inlines-hidden \ 162 -Wsign-compare \ 163 -std=gnu++11 \ 164 -Wno-narrowing \ 165 -Wno-literal-suffix \ 166 -Wno-non-virtual-dtor \ 167 -Wno-sign-promo 168 169 170 # Flags passed to both C and C++ files. 171 MY_CFLAGS_Release := \ 172 -fstack-protector \ 173 --param=ssp-buffer-size=4 \ 174 -Werror \ 175 -fno-strict-aliasing \ 176 -Wall \ 177 -Wno-unused-parameter \ 178 -Wno-missing-field-initializers \ 179 -fvisibility=hidden \ 180 -pipe \ 181 -fPIC \ 182 -Wno-unused-local-typedefs \ 183 -m64 \ 184 -march=x86-64 \ 185 -ffunction-sections \ 186 -funwind-tables \ 187 -g \ 188 -fstack-protector \ 189 -fno-short-enums \ 190 -finline-limit=64 \ 191 -Wa,--noexecstack \ 192 -U_FORTIFY_SOURCE \ 193 -Wno-extra \ 194 -Wno-ignored-qualifiers \ 195 -Wno-type-limits \ 196 -Wno-unused-but-set-variable \ 197 -Os \ 198 -fno-ident \ 199 -fdata-sections \ 200 -ffunction-sections \ 201 -fomit-frame-pointer \ 202 -funwind-tables 203 204 MY_DEFS_Release := \ 205 '-DV8_DEPRECATION_WARNINGS' \ 206 '-D_FILE_OFFSET_BITS=64' \ 207 '-DNO_TCMALLOC' \ 208 '-DDISABLE_NACL' \ 209 '-DCHROMIUM_BUILD' \ 210 '-DUSE_LIBJPEG_TURBO=1' \ 211 '-DENABLE_WEBRTC=1' \ 212 '-DUSE_PROPRIETARY_CODECS' \ 213 '-DENABLE_BROWSER_CDMS' \ 214 '-DENABLE_CONFIGURATION_POLICY' \ 215 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 216 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 217 '-DENABLE_EGLIMAGE=1' \ 218 '-DCLD_VERSION=1' \ 219 '-DENABLE_PRINTING=1' \ 220 '-DENABLE_MANAGED_USERS=1' \ 221 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 222 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 223 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 224 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 225 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 226 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 227 '-DVIDEO_HOLE=1' \ 228 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 229 '-DWEBKIT_GPU_IMPLEMENTATION' \ 230 '-DSK_ENABLE_INST_COUNT=0' \ 231 '-DSK_SUPPORT_GPU=1' \ 232 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 233 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 234 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 235 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 236 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 237 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 238 '-DSK_BUILD_FOR_ANDROID' \ 239 '-DSK_USE_POSIX_THREADS' \ 240 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 241 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 242 '-DMESA_EGL_NO_X11_HEADERS' \ 243 '-DU_USING_ICU_NAMESPACE=0' \ 244 '-DU_ENABLE_DYLOAD=0' \ 245 '-DUSE_OPENSSL=1' \ 246 '-DUSE_OPENSSL_CERTS=1' \ 247 '-D__STDC_CONSTANT_MACROS' \ 248 '-D__STDC_FORMAT_MACROS' \ 249 '-DANDROID' \ 250 '-D__GNU_SOURCE=1' \ 251 '-DUSE_STLPORT=1' \ 252 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 253 '-DCHROME_BUILD_ID=""' \ 254 '-DNDEBUG' \ 255 '-DNVALGRIND' \ 256 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 257 '-D_FORTIFY_SOURCE=2' 258 259 260 # Include paths placed before CFLAGS/CPPFLAGS 261 LOCAL_C_INCLUDES_Release := \ 262 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 263 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 264 $(gyp_shared_intermediate_dir) \ 265 $(LOCAL_PATH) \ 266 $(LOCAL_PATH)/third_party/khronos \ 267 $(LOCAL_PATH)/gpu \ 268 $(LOCAL_PATH)/skia/config \ 269 $(LOCAL_PATH)/third_party/WebKit/Source \ 270 $(LOCAL_PATH)/third_party/skia/src/core \ 271 $(LOCAL_PATH)/third_party/skia/include/core \ 272 $(LOCAL_PATH)/third_party/skia/include/effects \ 273 $(LOCAL_PATH)/third_party/skia/include/pdf \ 274 $(LOCAL_PATH)/third_party/skia/include/gpu \ 275 $(LOCAL_PATH)/third_party/skia/include/lazy \ 276 $(LOCAL_PATH)/third_party/skia/include/pathops \ 277 $(LOCAL_PATH)/third_party/skia/include/pipe \ 278 $(LOCAL_PATH)/third_party/skia/include/ports \ 279 $(LOCAL_PATH)/third_party/skia/include/utils \ 280 $(LOCAL_PATH)/skia/ext \ 281 $(gyp_shared_intermediate_dir)/ui/gl \ 282 $(LOCAL_PATH)/third_party/mesa/src/include \ 283 $(PWD)/external/icu/icu4c/source/common \ 284 $(PWD)/external/icu/icu4c/source/i18n \ 285 $(PWD)/frameworks/wilhelm/include \ 286 $(PWD)/bionic \ 287 $(PWD)/external/stlport/stlport 288 289 290 # Flags passed to only C++ (and not C) files. 291 LOCAL_CPPFLAGS_Release := \ 292 -fno-exceptions \ 293 -fno-rtti \ 294 -fno-threadsafe-statics \ 295 -fvisibility-inlines-hidden \ 296 -Wsign-compare \ 297 -std=gnu++11 \ 298 -Wno-narrowing \ 299 -Wno-literal-suffix \ 300 -Wno-non-virtual-dtor \ 301 -Wno-sign-promo 302 303 304 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 305 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 306 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 307 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 308 ### Rules for final target. 309 310 LOCAL_SHARED_LIBRARIES := \ 311 libstlport \ 312 libdl 313 314 # Add target alias to "gyp_all_modules" target. 315 .PHONY: gyp_all_modules 316 gyp_all_modules: webkit_common_gpu_webkit_gpu_gyp 317 318 # Alias gyp target name. 319 .PHONY: webkit_gpu 320 webkit_gpu: webkit_common_gpu_webkit_gpu_gyp 321 322 include $(BUILD_STATIC_LIBRARY) 323