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