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