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