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