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 -Werror \ 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 -fno-tree-sra \ 45 -fuse-ld=gold \ 46 -Wno-psabi \ 47 -ffunction-sections \ 48 -funwind-tables \ 49 -g \ 50 -fstack-protector \ 51 -fno-short-enums \ 52 -finline-limit=64 \ 53 -Wa,--noexecstack \ 54 -U_FORTIFY_SOURCE \ 55 -Wno-extra \ 56 -Wno-ignored-qualifiers \ 57 -Wno-type-limits \ 58 -Os \ 59 -g \ 60 -fomit-frame-pointer \ 61 -fdata-sections \ 62 -ffunction-sections 63 64 MY_DEFS_Debug := \ 65 '-DANGLE_DX11' \ 66 '-D_FILE_OFFSET_BITS=64' \ 67 '-DNO_TCMALLOC' \ 68 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 69 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 70 '-DDISABLE_NACL' \ 71 '-DCHROMIUM_BUILD' \ 72 '-DUSE_LIBJPEG_TURBO=1' \ 73 '-DUSE_PROPRIETARY_CODECS' \ 74 '-DENABLE_CONFIGURATION_POLICY' \ 75 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 76 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 77 '-DENABLE_GPU=1' \ 78 '-DUSE_OPENSSL=1' \ 79 '-DENABLE_EGLIMAGE=1' \ 80 '-DENABLE_PRINTING=1' \ 81 '-DSNAPSHOT_IMPLEMENTATION' \ 82 '-DPOSIX_AVOID_MMAP' \ 83 '-DU_USING_ICU_NAMESPACE=0' \ 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)/third_party/skia/src/core \ 104 $(LOCAL_PATH)/skia/ext \ 105 $(LOCAL_PATH) \ 106 $(PWD)/external/icu4c/common \ 107 $(PWD)/external/icu4c/i18n \ 108 $(PWD)/frameworks/wilhelm/include \ 109 $(PWD)/bionic \ 110 $(PWD)/external/stlport/stlport 111 112 113 # Flags passed to only C++ (and not C) files. 114 LOCAL_CPPFLAGS_Debug := \ 115 -fno-rtti \ 116 -fno-threadsafe-statics \ 117 -fvisibility-inlines-hidden \ 118 -Wsign-compare \ 119 -Wno-abi \ 120 -Wno-error=c++0x-compat \ 121 -Wno-non-virtual-dtor \ 122 -Wno-sign-promo 123 124 125 # Flags passed to both C and C++ files. 126 MY_CFLAGS_Release := \ 127 -fstack-protector \ 128 --param=ssp-buffer-size=4 \ 129 -Werror \ 130 -fno-exceptions \ 131 -fno-strict-aliasing \ 132 -Wall \ 133 -Wno-unused-parameter \ 134 -Wno-missing-field-initializers \ 135 -fvisibility=hidden \ 136 -pipe \ 137 -fPIC \ 138 -fno-tree-sra \ 139 -fuse-ld=gold \ 140 -Wno-psabi \ 141 -ffunction-sections \ 142 -funwind-tables \ 143 -g \ 144 -fstack-protector \ 145 -fno-short-enums \ 146 -finline-limit=64 \ 147 -Wa,--noexecstack \ 148 -U_FORTIFY_SOURCE \ 149 -Wno-extra \ 150 -Wno-ignored-qualifiers \ 151 -Wno-type-limits \ 152 -Os \ 153 -fno-ident \ 154 -fdata-sections \ 155 -ffunction-sections \ 156 -fomit-frame-pointer 157 158 MY_DEFS_Release := \ 159 '-DANGLE_DX11' \ 160 '-D_FILE_OFFSET_BITS=64' \ 161 '-DNO_TCMALLOC' \ 162 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 163 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 164 '-DDISABLE_NACL' \ 165 '-DCHROMIUM_BUILD' \ 166 '-DUSE_LIBJPEG_TURBO=1' \ 167 '-DUSE_PROPRIETARY_CODECS' \ 168 '-DENABLE_CONFIGURATION_POLICY' \ 169 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 170 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 171 '-DENABLE_GPU=1' \ 172 '-DUSE_OPENSSL=1' \ 173 '-DENABLE_EGLIMAGE=1' \ 174 '-DENABLE_PRINTING=1' \ 175 '-DSNAPSHOT_IMPLEMENTATION' \ 176 '-DPOSIX_AVOID_MMAP' \ 177 '-DU_USING_ICU_NAMESPACE=0' \ 178 '-D__STDC_CONSTANT_MACROS' \ 179 '-D__STDC_FORMAT_MACROS' \ 180 '-DANDROID' \ 181 '-D__GNU_SOURCE=1' \ 182 '-DUSE_STLPORT=1' \ 183 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 184 '-DCHROME_BUILD_ID=""' \ 185 '-DNDEBUG' \ 186 '-DNVALGRIND' \ 187 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 188 '-D_FORTIFY_SOURCE=2' 189 190 191 # Include paths placed before CFLAGS/CPPFLAGS 192 LOCAL_C_INCLUDES_Release := \ 193 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 194 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 195 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 196 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 197 $(LOCAL_PATH)/ui \ 198 $(LOCAL_PATH)/third_party/skia/src/core \ 199 $(LOCAL_PATH)/skia/ext \ 200 $(LOCAL_PATH) \ 201 $(PWD)/external/icu4c/common \ 202 $(PWD)/external/icu4c/i18n \ 203 $(PWD)/frameworks/wilhelm/include \ 204 $(PWD)/bionic \ 205 $(PWD)/external/stlport/stlport 206 207 208 # Flags passed to only C++ (and not C) files. 209 LOCAL_CPPFLAGS_Release := \ 210 -fno-rtti \ 211 -fno-threadsafe-statics \ 212 -fvisibility-inlines-hidden \ 213 -Wsign-compare \ 214 -Wno-abi \ 215 -Wno-error=c++0x-compat \ 216 -Wno-non-virtual-dtor \ 217 -Wno-sign-promo 218 219 220 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 221 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 222 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 223 ### Rules for final target. 224 225 LOCAL_LDFLAGS_Debug := \ 226 -Wl,-z,now \ 227 -Wl,-z,relro \ 228 -Wl,-z,noexecstack \ 229 -fPIC \ 230 -Wl,-z,relro \ 231 -Wl,-z,now \ 232 -fuse-ld=gold \ 233 -nostdlib \ 234 -Wl,--no-undefined \ 235 -Wl,--exclude-libs=ALL \ 236 -Wl,--icf=safe \ 237 -Wl,--fatal-warnings \ 238 -Wl,--gc-sections \ 239 -Wl,--warn-shared-textrel \ 240 -Wl,-O1 \ 241 -Wl,--as-needed 242 243 244 LOCAL_LDFLAGS_Release := \ 245 -Wl,-z,now \ 246 -Wl,-z,relro \ 247 -Wl,-z,noexecstack \ 248 -fPIC \ 249 -Wl,-z,relro \ 250 -Wl,-z,now \ 251 -fuse-ld=gold \ 252 -nostdlib \ 253 -Wl,--no-undefined \ 254 -Wl,--exclude-libs=ALL \ 255 -Wl,--icf=safe \ 256 -Wl,-O1 \ 257 -Wl,--as-needed \ 258 -Wl,--gc-sections \ 259 -Wl,--fatal-warnings \ 260 -Wl,--warn-shared-textrel 261 262 263 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 264 265 LOCAL_STATIC_LIBRARIES := \ 266 ui_ui_gyp 267 268 # Enable grouping to fix circular references 269 LOCAL_GROUP_STATIC_LIBRARIES := true 270 271 LOCAL_SHARED_LIBRARIES := \ 272 libskia \ 273 libstlport \ 274 libdl 275 276 # Add target alias to "gyp_all_modules" target. 277 .PHONY: gyp_all_modules 278 gyp_all_modules: ui_snapshot_snapshot_gyp 279 280 # Alias gyp target name. 281 .PHONY: snapshot 282 snapshot: ui_snapshot_snapshot_gyp 283 284 include $(BUILD_STATIC_LIBRARY) 285