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 := components_visitedlink_browser_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 components/visitedlink/browser/visitedlink_event_listener.cc \ 27 components/visitedlink/browser/visitedlink_master.cc 28 29 30 # Flags passed to both C and C++ files. 31 MY_CFLAGS_Debug := \ 32 -fstack-protector \ 33 --param=ssp-buffer-size=4 \ 34 -Werror \ 35 -fno-exceptions \ 36 -fno-strict-aliasing \ 37 -Wall \ 38 -Wno-unused-parameter \ 39 -Wno-missing-field-initializers \ 40 -fvisibility=hidden \ 41 -pipe \ 42 -fPIC \ 43 -fno-tree-sra \ 44 -fuse-ld=gold \ 45 -Wno-psabi \ 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 '-D__STDC_CONSTANT_MACROS' \ 81 '-D__STDC_FORMAT_MACROS' \ 82 '-DANDROID' \ 83 '-D__GNU_SOURCE=1' \ 84 '-DUSE_STLPORT=1' \ 85 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 86 '-DCHROME_BUILD_ID=""' \ 87 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 88 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 89 '-D_DEBUG' 90 91 92 # Include paths placed before CFLAGS/CPPFLAGS 93 LOCAL_C_INCLUDES_Debug := \ 94 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 95 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 96 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 97 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 98 $(LOCAL_PATH)/skia/config \ 99 $(LOCAL_PATH) \ 100 $(LOCAL_PATH)/third_party/khronos \ 101 $(LOCAL_PATH)/gpu \ 102 $(LOCAL_PATH)/third_party/WebKit/Source \ 103 $(PWD)/frameworks/wilhelm/include \ 104 $(PWD)/bionic \ 105 $(PWD)/external/stlport/stlport 106 107 108 # Flags passed to only C++ (and not C) files. 109 LOCAL_CPPFLAGS_Debug := \ 110 -fno-rtti \ 111 -fno-threadsafe-statics \ 112 -fvisibility-inlines-hidden \ 113 -Wsign-compare \ 114 -Wno-abi \ 115 -Wno-error=c++0x-compat \ 116 -Wno-non-virtual-dtor \ 117 -Wno-sign-promo 118 119 120 # Flags passed to both C and C++ files. 121 MY_CFLAGS_Release := \ 122 -fstack-protector \ 123 --param=ssp-buffer-size=4 \ 124 -Werror \ 125 -fno-exceptions \ 126 -fno-strict-aliasing \ 127 -Wall \ 128 -Wno-unused-parameter \ 129 -Wno-missing-field-initializers \ 130 -fvisibility=hidden \ 131 -pipe \ 132 -fPIC \ 133 -fno-tree-sra \ 134 -fuse-ld=gold \ 135 -Wno-psabi \ 136 -ffunction-sections \ 137 -funwind-tables \ 138 -g \ 139 -fstack-protector \ 140 -fno-short-enums \ 141 -finline-limit=64 \ 142 -Wa,--noexecstack \ 143 -U_FORTIFY_SOURCE \ 144 -Wno-extra \ 145 -Wno-ignored-qualifiers \ 146 -Wno-type-limits \ 147 -Os \ 148 -fno-ident \ 149 -fdata-sections \ 150 -ffunction-sections \ 151 -fomit-frame-pointer 152 153 MY_DEFS_Release := \ 154 '-DV8_DEPRECATION_WARNINGS' \ 155 '-D_FILE_OFFSET_BITS=64' \ 156 '-DNO_TCMALLOC' \ 157 '-DDISABLE_NACL' \ 158 '-DCHROMIUM_BUILD' \ 159 '-DUSE_LIBJPEG_TURBO=1' \ 160 '-DUSE_PROPRIETARY_CODECS' \ 161 '-DENABLE_CONFIGURATION_POLICY' \ 162 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 163 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 164 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 165 '-DUSE_OPENSSL=1' \ 166 '-DENABLE_EGLIMAGE=1' \ 167 '-DCLD_VERSION=1' \ 168 '-DENABLE_PRINTING=1' \ 169 '-DENABLE_MANAGED_USERS=1' \ 170 '-D__STDC_CONSTANT_MACROS' \ 171 '-D__STDC_FORMAT_MACROS' \ 172 '-DANDROID' \ 173 '-D__GNU_SOURCE=1' \ 174 '-DUSE_STLPORT=1' \ 175 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 176 '-DCHROME_BUILD_ID=""' \ 177 '-DNDEBUG' \ 178 '-DNVALGRIND' \ 179 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 180 '-D_FORTIFY_SOURCE=2' 181 182 183 # Include paths placed before CFLAGS/CPPFLAGS 184 LOCAL_C_INCLUDES_Release := \ 185 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 186 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 187 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 188 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 189 $(LOCAL_PATH)/skia/config \ 190 $(LOCAL_PATH) \ 191 $(LOCAL_PATH)/third_party/khronos \ 192 $(LOCAL_PATH)/gpu \ 193 $(LOCAL_PATH)/third_party/WebKit/Source \ 194 $(PWD)/frameworks/wilhelm/include \ 195 $(PWD)/bionic \ 196 $(PWD)/external/stlport/stlport 197 198 199 # Flags passed to only C++ (and not C) files. 200 LOCAL_CPPFLAGS_Release := \ 201 -fno-rtti \ 202 -fno-threadsafe-statics \ 203 -fvisibility-inlines-hidden \ 204 -Wsign-compare \ 205 -Wno-abi \ 206 -Wno-error=c++0x-compat \ 207 -Wno-non-virtual-dtor \ 208 -Wno-sign-promo 209 210 211 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 212 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 213 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 214 ### Rules for final target. 215 216 LOCAL_LDFLAGS_Debug := \ 217 -Wl,-z,now \ 218 -Wl,-z,relro \ 219 -Wl,-z,noexecstack \ 220 -fPIC \ 221 -Wl,-z,relro \ 222 -Wl,-z,now \ 223 -fuse-ld=gold \ 224 -nostdlib \ 225 -Wl,--no-undefined \ 226 -Wl,--exclude-libs=ALL \ 227 -Wl,--icf=safe \ 228 -Wl,--fatal-warnings \ 229 -Wl,--gc-sections \ 230 -Wl,--warn-shared-textrel \ 231 -Wl,-O1 \ 232 -Wl,--as-needed 233 234 235 LOCAL_LDFLAGS_Release := \ 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,-O1 \ 248 -Wl,--as-needed \ 249 -Wl,--gc-sections \ 250 -Wl,--fatal-warnings \ 251 -Wl,--warn-shared-textrel 252 253 254 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 255 256 LOCAL_STATIC_LIBRARIES := 257 258 # Enable grouping to fix circular references 259 LOCAL_GROUP_STATIC_LIBRARIES := true 260 261 LOCAL_SHARED_LIBRARIES := \ 262 libstlport \ 263 libdl 264 265 # Add target alias to "gyp_all_modules" target. 266 .PHONY: gyp_all_modules 267 gyp_all_modules: components_visitedlink_browser_gyp 268 269 # Alias gyp target name. 270 .PHONY: visitedlink_browser 271 visitedlink_browser: components_visitedlink_browser_gyp 272 273 include $(BUILD_STATIC_LIBRARY) 274