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