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