1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := components_autofill_content_renderer_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,GYP,components_component_strings_gyp)/component_strings.stamp 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 components/autofill/content/renderer/autofill_agent.cc \ 29 components/autofill/content/renderer/form_autofill_util.cc \ 30 components/autofill/content/renderer/form_cache.cc \ 31 components/autofill/content/renderer/page_click_tracker.cc \ 32 components/autofill/content/renderer/password_autofill_agent.cc \ 33 components/autofill/content/renderer/password_form_conversion_utils.cc \ 34 components/autofill/content/renderer/password_generation_agent.cc 35 36 37# Flags passed to both C and C++ files. 38MY_CFLAGS_Debug := \ 39 -fstack-protector \ 40 --param=ssp-buffer-size=4 \ 41 -Werror \ 42 -fno-exceptions \ 43 -fno-strict-aliasing \ 44 -Wall \ 45 -Wno-unused-parameter \ 46 -Wno-missing-field-initializers \ 47 -fvisibility=hidden \ 48 -pipe \ 49 -fPIC \ 50 -fno-tree-sra \ 51 -fuse-ld=gold \ 52 -Wno-psabi \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fstack-protector \ 57 -fno-short-enums \ 58 -finline-limit=64 \ 59 -Wa,--noexecstack \ 60 -U_FORTIFY_SOURCE \ 61 -Wno-extra \ 62 -Wno-ignored-qualifiers \ 63 -Wno-type-limits \ 64 -Os \ 65 -g \ 66 -fomit-frame-pointer \ 67 -fdata-sections \ 68 -ffunction-sections 69 70MY_DEFS_Debug := \ 71 '-DV8_DEPRECATION_WARNINGS' \ 72 '-D_FILE_OFFSET_BITS=64' \ 73 '-DNO_TCMALLOC' \ 74 '-DDISABLE_NACL' \ 75 '-DCHROMIUM_BUILD' \ 76 '-DUSE_LIBJPEG_TURBO=1' \ 77 '-DUSE_PROPRIETARY_CODECS' \ 78 '-DENABLE_CONFIGURATION_POLICY' \ 79 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 80 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 81 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 82 '-DUSE_OPENSSL=1' \ 83 '-DENABLE_EGLIMAGE=1' \ 84 '-DCLD_VERSION=1' \ 85 '-DENABLE_PRINTING=1' \ 86 '-DENABLE_MANAGED_USERS=1' \ 87 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 88 '-D__STDC_CONSTANT_MACROS' \ 89 '-D__STDC_FORMAT_MACROS' \ 90 '-DANDROID' \ 91 '-D__GNU_SOURCE=1' \ 92 '-DUSE_STLPORT=1' \ 93 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 94 '-DCHROME_BUILD_ID=""' \ 95 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 96 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 97 '-D_DEBUG' 98 99 100# Include paths placed before CFLAGS/CPPFLAGS 101LOCAL_C_INCLUDES_Debug := \ 102 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 103 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 104 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 105 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 106 $(LOCAL_PATH) \ 107 $(LOCAL_PATH)/skia/config \ 108 $(LOCAL_PATH)/third_party/khronos \ 109 $(LOCAL_PATH)/gpu \ 110 $(LOCAL_PATH)/third_party/WebKit/Source \ 111 $(PWD)/external/skia/include \ 112 $(PWD)/external/skia/include/core \ 113 $(LOCAL_PATH)/third_party/skia/src/core \ 114 $(LOCAL_PATH)/skia/ext \ 115 $(gyp_shared_intermediate_dir)/components/strings \ 116 $(PWD)/frameworks/wilhelm/include \ 117 $(PWD)/bionic \ 118 $(PWD)/external/stlport/stlport 119 120 121# Flags passed to only C++ (and not C) files. 122LOCAL_CPPFLAGS_Debug := \ 123 -fno-rtti \ 124 -fno-threadsafe-statics \ 125 -fvisibility-inlines-hidden \ 126 -Wsign-compare \ 127 -Wno-abi \ 128 -Wno-error=c++0x-compat \ 129 -Wno-non-virtual-dtor \ 130 -Wno-sign-promo 131 132 133# Flags passed to both C and C++ files. 134MY_CFLAGS_Release := \ 135 -fstack-protector \ 136 --param=ssp-buffer-size=4 \ 137 -Werror \ 138 -fno-exceptions \ 139 -fno-strict-aliasing \ 140 -Wall \ 141 -Wno-unused-parameter \ 142 -Wno-missing-field-initializers \ 143 -fvisibility=hidden \ 144 -pipe \ 145 -fPIC \ 146 -fno-tree-sra \ 147 -fuse-ld=gold \ 148 -Wno-psabi \ 149 -ffunction-sections \ 150 -funwind-tables \ 151 -g \ 152 -fstack-protector \ 153 -fno-short-enums \ 154 -finline-limit=64 \ 155 -Wa,--noexecstack \ 156 -U_FORTIFY_SOURCE \ 157 -Wno-extra \ 158 -Wno-ignored-qualifiers \ 159 -Wno-type-limits \ 160 -Os \ 161 -fno-ident \ 162 -fdata-sections \ 163 -ffunction-sections \ 164 -fomit-frame-pointer 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 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 184 '-D__STDC_CONSTANT_MACROS' \ 185 '-D__STDC_FORMAT_MACROS' \ 186 '-DANDROID' \ 187 '-D__GNU_SOURCE=1' \ 188 '-DUSE_STLPORT=1' \ 189 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 190 '-DCHROME_BUILD_ID=""' \ 191 '-DNDEBUG' \ 192 '-DNVALGRIND' \ 193 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 194 '-D_FORTIFY_SOURCE=2' 195 196 197# Include paths placed before CFLAGS/CPPFLAGS 198LOCAL_C_INCLUDES_Release := \ 199 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 200 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 201 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 202 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 203 $(LOCAL_PATH) \ 204 $(LOCAL_PATH)/skia/config \ 205 $(LOCAL_PATH)/third_party/khronos \ 206 $(LOCAL_PATH)/gpu \ 207 $(LOCAL_PATH)/third_party/WebKit/Source \ 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 $(gyp_shared_intermediate_dir)/components/strings \ 213 $(PWD)/frameworks/wilhelm/include \ 214 $(PWD)/bionic \ 215 $(PWD)/external/stlport/stlport 216 217 218# Flags passed to only C++ (and not C) files. 219LOCAL_CPPFLAGS_Release := \ 220 -fno-rtti \ 221 -fno-threadsafe-statics \ 222 -fvisibility-inlines-hidden \ 223 -Wsign-compare \ 224 -Wno-abi \ 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 -Wl,-z,relro \ 241 -Wl,-z,now \ 242 -fuse-ld=gold \ 243 -nostdlib \ 244 -Wl,--no-undefined \ 245 -Wl,--exclude-libs=ALL \ 246 -Wl,--icf=safe \ 247 -Wl,--fatal-warnings \ 248 -Wl,--gc-sections \ 249 -Wl,--warn-shared-textrel \ 250 -Wl,-O1 \ 251 -Wl,--as-needed 252 253 254LOCAL_LDFLAGS_Release := \ 255 -Wl,-z,now \ 256 -Wl,-z,relro \ 257 -Wl,-z,noexecstack \ 258 -fPIC \ 259 -Wl,-z,relro \ 260 -Wl,-z,now \ 261 -fuse-ld=gold \ 262 -nostdlib \ 263 -Wl,--no-undefined \ 264 -Wl,--exclude-libs=ALL \ 265 -Wl,--icf=safe \ 266 -Wl,-O1 \ 267 -Wl,--as-needed \ 268 -Wl,--gc-sections \ 269 -Wl,--fatal-warnings \ 270 -Wl,--warn-shared-textrel 271 272 273LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 274 275LOCAL_STATIC_LIBRARIES := 276 277# Enable grouping to fix circular references 278LOCAL_GROUP_STATIC_LIBRARIES := true 279 280LOCAL_SHARED_LIBRARIES := \ 281 libskia \ 282 libstlport \ 283 libdl 284 285# Add target alias to "gyp_all_modules" target. 286.PHONY: gyp_all_modules 287gyp_all_modules: components_autofill_content_renderer_gyp 288 289# Alias gyp target name. 290.PHONY: autofill_content_renderer 291autofill_content_renderer: components_autofill_content_renderer_gyp 292 293include $(BUILD_STATIC_LIBRARY) 294