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