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