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