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_events_events_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 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 ui/events/event.cc \ 28 ui/events/event_dispatcher.cc \ 29 ui/events/event_handler.cc \ 30 ui/events/event_processor.cc \ 31 ui/events/event_source.cc \ 32 ui/events/event_target.cc \ 33 ui/events/event_targeter.cc \ 34 ui/events/event_utils.cc \ 35 ui/events/events_stub.cc \ 36 ui/events/gestures/gesture_configuration.cc \ 37 ui/events/gestures/gesture_point.cc \ 38 ui/events/gestures/gesture_recognizer_impl.cc \ 39 ui/events/gestures/gesture_sequence.cc \ 40 ui/events/gestures/gesture_types.cc \ 41 ui/events/gestures/gesture_util.cc \ 42 ui/events/gestures/velocity_calculator.cc 43 44 45 # Flags passed to both C and C++ files. 46 MY_CFLAGS_Debug := \ 47 -fstack-protector \ 48 --param=ssp-buffer-size=4 \ 49 -Werror \ 50 -fno-exceptions \ 51 -fno-strict-aliasing \ 52 -Wall \ 53 -Wno-unused-parameter \ 54 -Wno-missing-field-initializers \ 55 -fvisibility=hidden \ 56 -pipe \ 57 -fPIC \ 58 -fno-tree-sra \ 59 -fuse-ld=gold \ 60 -Wno-psabi \ 61 -ffunction-sections \ 62 -funwind-tables \ 63 -g \ 64 -fstack-protector \ 65 -fno-short-enums \ 66 -finline-limit=64 \ 67 -Wa,--noexecstack \ 68 -U_FORTIFY_SOURCE \ 69 -Wno-extra \ 70 -Wno-ignored-qualifiers \ 71 -Wno-type-limits \ 72 -Os \ 73 -g \ 74 -fomit-frame-pointer \ 75 -fdata-sections \ 76 -ffunction-sections 77 78 MY_DEFS_Debug := \ 79 '-DV8_DEPRECATION_WARNINGS' \ 80 '-D_FILE_OFFSET_BITS=64' \ 81 '-DNO_TCMALLOC' \ 82 '-DDISABLE_NACL' \ 83 '-DCHROMIUM_BUILD' \ 84 '-DUSE_LIBJPEG_TURBO=1' \ 85 '-DUSE_PROPRIETARY_CODECS' \ 86 '-DENABLE_CONFIGURATION_POLICY' \ 87 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 88 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 89 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 90 '-DUSE_OPENSSL=1' \ 91 '-DENABLE_EGLIMAGE=1' \ 92 '-DCLD_VERSION=1' \ 93 '-DENABLE_PRINTING=1' \ 94 '-DENABLE_MANAGED_USERS=1' \ 95 '-DEVENTS_IMPLEMENTATION' \ 96 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 97 '-DU_USING_ICU_NAMESPACE=0' \ 98 '-D__STDC_CONSTANT_MACROS' \ 99 '-D__STDC_FORMAT_MACROS' \ 100 '-DANDROID' \ 101 '-D__GNU_SOURCE=1' \ 102 '-DUSE_STLPORT=1' \ 103 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 104 '-DCHROME_BUILD_ID=""' \ 105 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 106 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 107 '-D_DEBUG' 108 109 110 # Include paths placed before CFLAGS/CPPFLAGS 111 LOCAL_C_INCLUDES_Debug := \ 112 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 113 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 114 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 115 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 116 $(LOCAL_PATH) \ 117 $(LOCAL_PATH)/skia/config \ 118 $(PWD)/external/skia/include \ 119 $(PWD)/external/skia/include/core \ 120 $(LOCAL_PATH)/third_party/skia/src/core \ 121 $(LOCAL_PATH)/skia/ext \ 122 $(PWD)/external/icu4c/common \ 123 $(PWD)/external/icu4c/i18n \ 124 $(PWD)/frameworks/wilhelm/include \ 125 $(PWD)/bionic \ 126 $(PWD)/external/stlport/stlport 127 128 129 # Flags passed to only C++ (and not C) files. 130 LOCAL_CPPFLAGS_Debug := \ 131 -fno-rtti \ 132 -fno-threadsafe-statics \ 133 -fvisibility-inlines-hidden \ 134 -Wsign-compare \ 135 -Wno-abi \ 136 -Wno-error=c++0x-compat \ 137 -Wno-non-virtual-dtor \ 138 -Wno-sign-promo 139 140 141 # Flags passed to both C and C++ files. 142 MY_CFLAGS_Release := \ 143 -fstack-protector \ 144 --param=ssp-buffer-size=4 \ 145 -Werror \ 146 -fno-exceptions \ 147 -fno-strict-aliasing \ 148 -Wall \ 149 -Wno-unused-parameter \ 150 -Wno-missing-field-initializers \ 151 -fvisibility=hidden \ 152 -pipe \ 153 -fPIC \ 154 -fno-tree-sra \ 155 -fuse-ld=gold \ 156 -Wno-psabi \ 157 -ffunction-sections \ 158 -funwind-tables \ 159 -g \ 160 -fstack-protector \ 161 -fno-short-enums \ 162 -finline-limit=64 \ 163 -Wa,--noexecstack \ 164 -U_FORTIFY_SOURCE \ 165 -Wno-extra \ 166 -Wno-ignored-qualifiers \ 167 -Wno-type-limits \ 168 -Os \ 169 -fno-ident \ 170 -fdata-sections \ 171 -ffunction-sections \ 172 -fomit-frame-pointer 173 174 MY_DEFS_Release := \ 175 '-DV8_DEPRECATION_WARNINGS' \ 176 '-D_FILE_OFFSET_BITS=64' \ 177 '-DNO_TCMALLOC' \ 178 '-DDISABLE_NACL' \ 179 '-DCHROMIUM_BUILD' \ 180 '-DUSE_LIBJPEG_TURBO=1' \ 181 '-DUSE_PROPRIETARY_CODECS' \ 182 '-DENABLE_CONFIGURATION_POLICY' \ 183 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 184 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 185 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 186 '-DUSE_OPENSSL=1' \ 187 '-DENABLE_EGLIMAGE=1' \ 188 '-DCLD_VERSION=1' \ 189 '-DENABLE_PRINTING=1' \ 190 '-DENABLE_MANAGED_USERS=1' \ 191 '-DEVENTS_IMPLEMENTATION' \ 192 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 193 '-DU_USING_ICU_NAMESPACE=0' \ 194 '-D__STDC_CONSTANT_MACROS' \ 195 '-D__STDC_FORMAT_MACROS' \ 196 '-DANDROID' \ 197 '-D__GNU_SOURCE=1' \ 198 '-DUSE_STLPORT=1' \ 199 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 200 '-DCHROME_BUILD_ID=""' \ 201 '-DNDEBUG' \ 202 '-DNVALGRIND' \ 203 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 204 '-D_FORTIFY_SOURCE=2' 205 206 207 # Include paths placed before CFLAGS/CPPFLAGS 208 LOCAL_C_INCLUDES_Release := \ 209 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 210 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 211 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 212 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 213 $(LOCAL_PATH) \ 214 $(LOCAL_PATH)/skia/config \ 215 $(PWD)/external/skia/include \ 216 $(PWD)/external/skia/include/core \ 217 $(LOCAL_PATH)/third_party/skia/src/core \ 218 $(LOCAL_PATH)/skia/ext \ 219 $(PWD)/external/icu4c/common \ 220 $(PWD)/external/icu4c/i18n \ 221 $(PWD)/frameworks/wilhelm/include \ 222 $(PWD)/bionic \ 223 $(PWD)/external/stlport/stlport 224 225 226 # Flags passed to only C++ (and not C) files. 227 LOCAL_CPPFLAGS_Release := \ 228 -fno-rtti \ 229 -fno-threadsafe-statics \ 230 -fvisibility-inlines-hidden \ 231 -Wsign-compare \ 232 -Wno-abi \ 233 -Wno-error=c++0x-compat \ 234 -Wno-non-virtual-dtor \ 235 -Wno-sign-promo 236 237 238 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 239 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 240 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 241 ### Rules for final target. 242 243 LOCAL_LDFLAGS_Debug := \ 244 -Wl,-z,now \ 245 -Wl,-z,relro \ 246 -Wl,-z,noexecstack \ 247 -fPIC \ 248 -Wl,-z,relro \ 249 -Wl,-z,now \ 250 -fuse-ld=gold \ 251 -nostdlib \ 252 -Wl,--no-undefined \ 253 -Wl,--exclude-libs=ALL \ 254 -Wl,--icf=safe \ 255 -Wl,--fatal-warnings \ 256 -Wl,--gc-sections \ 257 -Wl,--warn-shared-textrel \ 258 -Wl,-O1 \ 259 -Wl,--as-needed 260 261 262 LOCAL_LDFLAGS_Release := \ 263 -Wl,-z,now \ 264 -Wl,-z,relro \ 265 -Wl,-z,noexecstack \ 266 -fPIC \ 267 -Wl,-z,relro \ 268 -Wl,-z,now \ 269 -fuse-ld=gold \ 270 -nostdlib \ 271 -Wl,--no-undefined \ 272 -Wl,--exclude-libs=ALL \ 273 -Wl,--icf=safe \ 274 -Wl,-O1 \ 275 -Wl,--as-needed \ 276 -Wl,--gc-sections \ 277 -Wl,--fatal-warnings \ 278 -Wl,--warn-shared-textrel 279 280 281 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 282 283 LOCAL_STATIC_LIBRARIES := 284 285 # Enable grouping to fix circular references 286 LOCAL_GROUP_STATIC_LIBRARIES := true 287 288 LOCAL_SHARED_LIBRARIES := \ 289 libskia \ 290 libstlport \ 291 libdl 292 293 # Add target alias to "gyp_all_modules" target. 294 .PHONY: gyp_all_modules 295 gyp_all_modules: ui_events_events_gyp 296 297 # Alias gyp target name. 298 .PHONY: events 299 events: ui_events_events_gyp 300 301 include $(BUILD_STATIC_LIBRARY) 302