1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := cc_cc_surfaces_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_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 17GYP_GENERATED_OUTPUTS := 18 19# Make sure our deps and generated files are built first. 20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22LOCAL_CPP_EXTENSION := .cc 23LOCAL_GENERATED_SOURCES := 24 25GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27LOCAL_SRC_FILES := \ 28 cc/surfaces/display.cc \ 29 cc/surfaces/surface.cc \ 30 cc/surfaces/surface_aggregator.cc \ 31 cc/surfaces/surface_factory.cc \ 32 cc/surfaces/surface_id_allocator.cc \ 33 cc/surfaces/surface_manager.cc \ 34 cc/surfaces/surface_resource_holder.cc 35 36 37# Flags passed to both C and C++ files. 38MY_CFLAGS_Debug := \ 39 --param=ssp-buffer-size=4 \ 40 -Werror \ 41 -fno-strict-aliasing \ 42 -Wall \ 43 -Wno-unused-parameter \ 44 -Wno-missing-field-initializers \ 45 -fvisibility=hidden \ 46 -pipe \ 47 -fPIC \ 48 -Wno-unused-local-typedefs \ 49 -ffunction-sections \ 50 -funwind-tables \ 51 -g \ 52 -fno-short-enums \ 53 -finline-limit=64 \ 54 -Wa,--noexecstack \ 55 -U_FORTIFY_SOURCE \ 56 -Wno-extra \ 57 -Wno-ignored-qualifiers \ 58 -Wno-type-limits \ 59 -Wno-unused-but-set-variable \ 60 -Os \ 61 -g \ 62 -gdwarf-4 \ 63 -fdata-sections \ 64 -ffunction-sections \ 65 -funwind-tables 66 67MY_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 '-DCC_SURFACES_IMPLEMENTATION=1' \ 93 '-DSK_ENABLE_INST_COUNT=0' \ 94 '-DSK_SUPPORT_GPU=1' \ 95 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 96 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 97 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 98 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 99 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 100 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 101 '-DSK_BUILD_FOR_ANDROID' \ 102 '-DSK_USE_POSIX_THREADS' \ 103 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 104 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 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 122LOCAL_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/skia/src/core \ 131 $(LOCAL_PATH)/third_party/skia/include/core \ 132 $(LOCAL_PATH)/third_party/skia/include/effects \ 133 $(LOCAL_PATH)/third_party/skia/include/pdf \ 134 $(LOCAL_PATH)/third_party/skia/include/gpu \ 135 $(LOCAL_PATH)/third_party/skia/include/lazy \ 136 $(LOCAL_PATH)/third_party/skia/include/pathops \ 137 $(LOCAL_PATH)/third_party/skia/include/pipe \ 138 $(LOCAL_PATH)/third_party/skia/include/ports \ 139 $(LOCAL_PATH)/third_party/skia/include/utils \ 140 $(LOCAL_PATH)/skia/ext \ 141 $(PWD)/external/icu/icu4c/source/common \ 142 $(PWD)/external/icu/icu4c/source/i18n \ 143 $(PWD)/frameworks/wilhelm/include \ 144 $(PWD)/bionic \ 145 $(PWD)/external/stlport/stlport 146 147 148# Flags passed to only C++ (and not C) files. 149LOCAL_CPPFLAGS_Debug := \ 150 -fno-exceptions \ 151 -fno-rtti \ 152 -fno-threadsafe-statics \ 153 -fvisibility-inlines-hidden \ 154 -Wsign-compare \ 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. 163MY_CFLAGS_Release := \ 164 --param=ssp-buffer-size=4 \ 165 -Werror \ 166 -fno-strict-aliasing \ 167 -Wall \ 168 -Wno-unused-parameter \ 169 -Wno-missing-field-initializers \ 170 -fvisibility=hidden \ 171 -pipe \ 172 -fPIC \ 173 -Wno-unused-local-typedefs \ 174 -ffunction-sections \ 175 -funwind-tables \ 176 -g \ 177 -fno-short-enums \ 178 -finline-limit=64 \ 179 -Wa,--noexecstack \ 180 -U_FORTIFY_SOURCE \ 181 -Wno-extra \ 182 -Wno-ignored-qualifiers \ 183 -Wno-type-limits \ 184 -Wno-unused-but-set-variable \ 185 -fno-ident \ 186 -fdata-sections \ 187 -ffunction-sections \ 188 -funwind-tables \ 189 -O2 190 191MY_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 '-DCC_SURFACES_IMPLEMENTATION=1' \ 217 '-DSK_ENABLE_INST_COUNT=0' \ 218 '-DSK_SUPPORT_GPU=1' \ 219 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 220 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 221 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 222 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 223 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 224 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 225 '-DSK_BUILD_FOR_ANDROID' \ 226 '-DSK_USE_POSIX_THREADS' \ 227 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 228 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 229 '-DU_USING_ICU_NAMESPACE=0' \ 230 '-DU_ENABLE_DYLOAD=0' \ 231 '-DUSE_OPENSSL=1' \ 232 '-DUSE_OPENSSL_CERTS=1' \ 233 '-D__STDC_CONSTANT_MACROS' \ 234 '-D__STDC_FORMAT_MACROS' \ 235 '-DANDROID' \ 236 '-D__GNU_SOURCE=1' \ 237 '-DUSE_STLPORT=1' \ 238 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 239 '-DCHROME_BUILD_ID=""' \ 240 '-DNDEBUG' \ 241 '-DNVALGRIND' \ 242 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 243 '-D_FORTIFY_SOURCE=2' 244 245 246# Include paths placed before CFLAGS/CPPFLAGS 247LOCAL_C_INCLUDES_Release := \ 248 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 249 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 250 $(gyp_shared_intermediate_dir) \ 251 $(LOCAL_PATH) \ 252 $(LOCAL_PATH)/third_party/khronos \ 253 $(LOCAL_PATH)/gpu \ 254 $(LOCAL_PATH)/skia/config \ 255 $(LOCAL_PATH)/third_party/skia/src/core \ 256 $(LOCAL_PATH)/third_party/skia/include/core \ 257 $(LOCAL_PATH)/third_party/skia/include/effects \ 258 $(LOCAL_PATH)/third_party/skia/include/pdf \ 259 $(LOCAL_PATH)/third_party/skia/include/gpu \ 260 $(LOCAL_PATH)/third_party/skia/include/lazy \ 261 $(LOCAL_PATH)/third_party/skia/include/pathops \ 262 $(LOCAL_PATH)/third_party/skia/include/pipe \ 263 $(LOCAL_PATH)/third_party/skia/include/ports \ 264 $(LOCAL_PATH)/third_party/skia/include/utils \ 265 $(LOCAL_PATH)/skia/ext \ 266 $(PWD)/external/icu/icu4c/source/common \ 267 $(PWD)/external/icu/icu4c/source/i18n \ 268 $(PWD)/frameworks/wilhelm/include \ 269 $(PWD)/bionic \ 270 $(PWD)/external/stlport/stlport 271 272 273# Flags passed to only C++ (and not C) files. 274LOCAL_CPPFLAGS_Release := \ 275 -fno-exceptions \ 276 -fno-rtti \ 277 -fno-threadsafe-statics \ 278 -fvisibility-inlines-hidden \ 279 -Wsign-compare \ 280 -std=gnu++11 \ 281 -Wno-narrowing \ 282 -Wno-literal-suffix \ 283 -Wno-non-virtual-dtor \ 284 -Wno-sign-promo 285 286 287LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 288LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 289LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 290LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 291### Rules for final target. 292 293LOCAL_SHARED_LIBRARIES := \ 294 libstlport \ 295 libdl 296 297# Add target alias to "gyp_all_modules" target. 298.PHONY: gyp_all_modules 299gyp_all_modules: cc_cc_surfaces_gyp 300 301# Alias gyp target name. 302.PHONY: cc_surfaces 303cc_surfaces: cc_cc_surfaces_gyp 304 305include $(BUILD_STATIC_LIBRARY) 306