1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := ui_snapshot_snapshot_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_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 ui/snapshot/snapshot_android.cc 29 30 31# Flags passed to both C and C++ files. 32MY_CFLAGS_Debug := \ 33 --param=ssp-buffer-size=4 \ 34 -Werror \ 35 -fno-exceptions \ 36 -fno-strict-aliasing \ 37 -Wall \ 38 -Wno-unused-parameter \ 39 -Wno-missing-field-initializers \ 40 -fvisibility=hidden \ 41 -pipe \ 42 -fPIC \ 43 -m32 \ 44 -mmmx \ 45 -march=pentium4 \ 46 -msse2 \ 47 -mfpmath=sse \ 48 -fuse-ld=gold \ 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 -fno-stack-protector \ 60 -Os \ 61 -g \ 62 -fomit-frame-pointer \ 63 -fdata-sections \ 64 -ffunction-sections 65 66MY_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 '-DUSE_PROPRIETARY_CODECS' \ 74 '-DENABLE_CONFIGURATION_POLICY' \ 75 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 76 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 77 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 78 '-DUSE_OPENSSL=1' \ 79 '-DENABLE_EGLIMAGE=1' \ 80 '-DCLD_VERSION=1' \ 81 '-DENABLE_PRINTING=1' \ 82 '-DENABLE_MANAGED_USERS=1' \ 83 '-DSNAPSHOT_IMPLEMENTATION' \ 84 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 85 '-DU_USING_ICU_NAMESPACE=0' \ 86 '-D__STDC_CONSTANT_MACROS' \ 87 '-D__STDC_FORMAT_MACROS' \ 88 '-DANDROID' \ 89 '-D__GNU_SOURCE=1' \ 90 '-DUSE_STLPORT=1' \ 91 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 92 '-DCHROME_BUILD_ID=""' \ 93 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 94 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 95 '-D_DEBUG' 96 97 98# Include paths placed before CFLAGS/CPPFLAGS 99LOCAL_C_INCLUDES_Debug := \ 100 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 101 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 102 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 103 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 104 $(LOCAL_PATH)/ui \ 105 $(LOCAL_PATH) \ 106 $(LOCAL_PATH)/skia/config \ 107 $(PWD)/external/skia/include \ 108 $(PWD)/external/skia/include/core \ 109 $(LOCAL_PATH)/third_party/skia/src/core \ 110 $(LOCAL_PATH)/skia/ext \ 111 $(PWD)/external/icu4c/common \ 112 $(PWD)/external/icu4c/i18n \ 113 $(PWD)/frameworks/wilhelm/include \ 114 $(PWD)/bionic \ 115 $(PWD)/external/stlport/stlport 116 117 118# Flags passed to only C++ (and not C) files. 119LOCAL_CPPFLAGS_Debug := \ 120 -fno-rtti \ 121 -fno-threadsafe-statics \ 122 -fvisibility-inlines-hidden \ 123 -Wsign-compare \ 124 -Wno-error=c++0x-compat \ 125 -Wno-non-virtual-dtor \ 126 -Wno-sign-promo 127 128 129# Flags passed to both C and C++ files. 130MY_CFLAGS_Release := \ 131 --param=ssp-buffer-size=4 \ 132 -Werror \ 133 -fno-exceptions \ 134 -fno-strict-aliasing \ 135 -Wall \ 136 -Wno-unused-parameter \ 137 -Wno-missing-field-initializers \ 138 -fvisibility=hidden \ 139 -pipe \ 140 -fPIC \ 141 -m32 \ 142 -mmmx \ 143 -march=pentium4 \ 144 -msse2 \ 145 -mfpmath=sse \ 146 -fuse-ld=gold \ 147 -ffunction-sections \ 148 -funwind-tables \ 149 -g \ 150 -fno-short-enums \ 151 -finline-limit=64 \ 152 -Wa,--noexecstack \ 153 -U_FORTIFY_SOURCE \ 154 -Wno-extra \ 155 -Wno-ignored-qualifiers \ 156 -Wno-type-limits \ 157 -fno-stack-protector \ 158 -Os \ 159 -fno-ident \ 160 -fdata-sections \ 161 -ffunction-sections \ 162 -fomit-frame-pointer \ 163 -fno-unwind-tables \ 164 -fno-asynchronous-unwind-tables 165 166MY_DEFS_Release := \ 167 '-DV8_DEPRECATION_WARNINGS' \ 168 '-D_FILE_OFFSET_BITS=64' \ 169 '-DNO_TCMALLOC' \ 170 '-DDISABLE_NACL' \ 171 '-DCHROMIUM_BUILD' \ 172 '-DUSE_LIBJPEG_TURBO=1' \ 173 '-DUSE_PROPRIETARY_CODECS' \ 174 '-DENABLE_CONFIGURATION_POLICY' \ 175 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 176 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 177 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 178 '-DUSE_OPENSSL=1' \ 179 '-DENABLE_EGLIMAGE=1' \ 180 '-DCLD_VERSION=1' \ 181 '-DENABLE_PRINTING=1' \ 182 '-DENABLE_MANAGED_USERS=1' \ 183 '-DSNAPSHOT_IMPLEMENTATION' \ 184 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 185 '-DU_USING_ICU_NAMESPACE=0' \ 186 '-D__STDC_CONSTANT_MACROS' \ 187 '-D__STDC_FORMAT_MACROS' \ 188 '-DANDROID' \ 189 '-D__GNU_SOURCE=1' \ 190 '-DUSE_STLPORT=1' \ 191 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 192 '-DCHROME_BUILD_ID=""' \ 193 '-DNDEBUG' \ 194 '-DNVALGRIND' \ 195 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 196 '-D_FORTIFY_SOURCE=2' 197 198 199# Include paths placed before CFLAGS/CPPFLAGS 200LOCAL_C_INCLUDES_Release := \ 201 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 202 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 203 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 204 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 205 $(LOCAL_PATH)/ui \ 206 $(LOCAL_PATH) \ 207 $(LOCAL_PATH)/skia/config \ 208 $(PWD)/external/skia/include \ 209 $(PWD)/external/skia/include/core \ 210 $(LOCAL_PATH)/third_party/skia/src/core \ 211 $(LOCAL_PATH)/skia/ext \ 212 $(PWD)/external/icu4c/common \ 213 $(PWD)/external/icu4c/i18n \ 214 $(PWD)/frameworks/wilhelm/include \ 215 $(PWD)/bionic \ 216 $(PWD)/external/stlport/stlport 217 218 219# Flags passed to only C++ (and not C) files. 220LOCAL_CPPFLAGS_Release := \ 221 -fno-rtti \ 222 -fno-threadsafe-statics \ 223 -fvisibility-inlines-hidden \ 224 -Wsign-compare \ 225 -Wno-error=c++0x-compat \ 226 -Wno-non-virtual-dtor \ 227 -Wno-sign-promo 228 229 230LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 231LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 232LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 233### Rules for final target. 234 235LOCAL_LDFLAGS_Debug := \ 236 -Wl,-z,now \ 237 -Wl,-z,relro \ 238 -Wl,-z,noexecstack \ 239 -fPIC \ 240 -m32 \ 241 -fuse-ld=gold \ 242 -nostdlib \ 243 -Wl,--no-undefined \ 244 -Wl,--exclude-libs=ALL \ 245 -Wl,--fatal-warnings \ 246 -Wl,--gc-sections \ 247 -Wl,--warn-shared-textrel \ 248 -Wl,-O1 \ 249 -Wl,--as-needed 250 251 252LOCAL_LDFLAGS_Release := \ 253 -Wl,-z,now \ 254 -Wl,-z,relro \ 255 -Wl,-z,noexecstack \ 256 -fPIC \ 257 -m32 \ 258 -fuse-ld=gold \ 259 -nostdlib \ 260 -Wl,--no-undefined \ 261 -Wl,--exclude-libs=ALL \ 262 -Wl,-O1 \ 263 -Wl,--as-needed \ 264 -Wl,--gc-sections \ 265 -Wl,--fatal-warnings \ 266 -Wl,--warn-shared-textrel 267 268 269LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 270 271LOCAL_STATIC_LIBRARIES := \ 272 ui_ui_gyp 273 274# Enable grouping to fix circular references 275LOCAL_GROUP_STATIC_LIBRARIES := true 276 277LOCAL_SHARED_LIBRARIES := \ 278 libskia \ 279 libstlport \ 280 libdl 281 282# Add target alias to "gyp_all_modules" target. 283.PHONY: gyp_all_modules 284gyp_all_modules: ui_snapshot_snapshot_gyp 285 286# Alias gyp target name. 287.PHONY: snapshot 288snapshot: ui_snapshot_snapshot_gyp 289 290include $(BUILD_STATIC_LIBRARY) 291