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