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