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 -fstack-protector \ 44 --param=ssp-buffer-size=4 \ 45 \ 46 -fno-exceptions \ 47 -fno-strict-aliasing \ 48 -Wall \ 49 -Wno-unused-parameter \ 50 -Wno-missing-field-initializers \ 51 -fvisibility=hidden \ 52 -pipe \ 53 -fPIC \ 54 -Wno-unknown-pragmas \ 55 -EL \ 56 -mhard-float \ 57 -ffunction-sections \ 58 -funwind-tables \ 59 -g \ 60 -fstack-protector \ 61 -fno-short-enums \ 62 -finline-limit=64 \ 63 -Wa,--noexecstack \ 64 -U_FORTIFY_SOURCE \ 65 -Wno-extra \ 66 -Wno-ignored-qualifiers \ 67 -Wno-type-limits \ 68 -Os \ 69 -g \ 70 -fomit-frame-pointer \ 71 -fdata-sections \ 72 -ffunction-sections 73 74 MY_DEFS_Debug := \ 75 '-DV8_DEPRECATION_WARNINGS' \ 76 '-D_FILE_OFFSET_BITS=64' \ 77 '-DNO_TCMALLOC' \ 78 '-DDISABLE_NACL' \ 79 '-DCHROMIUM_BUILD' \ 80 '-DUSE_LIBJPEG_TURBO=1' \ 81 '-DUSE_PROPRIETARY_CODECS' \ 82 '-DENABLE_CONFIGURATION_POLICY' \ 83 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 84 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 85 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 86 '-DUSE_OPENSSL=1' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DCLD_VERSION=1' \ 89 '-DENABLE_PRINTING=1' \ 90 '-DENABLE_MANAGED_USERS=1' \ 91 '-DWEBKIT_EXTENSIONS_IMPLEMENTATION' \ 92 '-DWEBKIT_GLUE_IMPLEMENTATION' \ 93 '-DPOSIX_AVOID_MMAP' \ 94 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 95 '-DU_USING_ICU_NAMESPACE=0' \ 96 '-DMESA_EGL_NO_X11_HEADERS' \ 97 '-DAPPCACHE_USE_SIMPLE_CACHE' \ 98 '-DCHROME_PNG_WRITE_SUPPORT' \ 99 '-DPNG_USER_CONFIG' \ 100 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 101 '-DUSE_SYSTEM_LIBJPEG' \ 102 '-D__STDC_CONSTANT_MACROS' \ 103 '-D__STDC_FORMAT_MACROS' \ 104 '-DANDROID' \ 105 '-D__GNU_SOURCE=1' \ 106 '-DUSE_STLPORT=1' \ 107 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 108 '-DCHROME_BUILD_ID=""' \ 109 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 110 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 111 '-D_DEBUG' 112 113 114 # Include paths placed before CFLAGS/CPPFLAGS 115 LOCAL_C_INCLUDES_Debug := \ 116 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 117 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 118 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 119 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 120 $(gyp_intermediate_dir) \ 121 $(gyp_shared_intermediate_dir)/webkit \ 122 $(gyp_shared_intermediate_dir)/ui \ 123 $(LOCAL_PATH)/third_party/khronos \ 124 $(LOCAL_PATH)/gpu \ 125 $(LOCAL_PATH) \ 126 $(LOCAL_PATH)/skia/config \ 127 $(LOCAL_PATH)/third_party/WebKit/Source \ 128 $(PWD)/external/skia/include \ 129 $(PWD)/external/skia/include/core \ 130 $(LOCAL_PATH)/third_party/skia/src/core \ 131 $(LOCAL_PATH)/skia/ext \ 132 $(PWD)/external/icu4c/common \ 133 $(PWD)/external/icu4c/i18n \ 134 $(LOCAL_PATH)/third_party/npapi \ 135 $(LOCAL_PATH)/third_party/npapi/bindings \ 136 $(gyp_shared_intermediate_dir)/ui/gl \ 137 $(LOCAL_PATH)/third_party/mesa/src/include \ 138 $(LOCAL_PATH)/v8/include \ 139 $(LOCAL_PATH)/third_party/WebKit \ 140 $(LOCAL_PATH)/third_party/libpng \ 141 $(LOCAL_PATH)/third_party/zlib \ 142 $(LOCAL_PATH)/third_party/libwebp \ 143 $(LOCAL_PATH)/third_party/ots/include \ 144 $(LOCAL_PATH)/third_party/qcms/src \ 145 $(LOCAL_PATH)/third_party/iccjpeg \ 146 $(PWD)/external/jpeg \ 147 $(PWD)/frameworks/wilhelm/include \ 148 $(PWD)/bionic \ 149 $(PWD)/external/stlport/stlport 150 151 152 # Flags passed to only C++ (and not C) files. 153 LOCAL_CPPFLAGS_Debug := \ 154 -Wno-narrowing \ 155 -fno-rtti \ 156 -fno-threadsafe-statics \ 157 -fvisibility-inlines-hidden \ 158 -Wsign-compare \ 159 -Wno-uninitialized \ 160 -Wno-error=c++0x-compat \ 161 -Wno-non-virtual-dtor \ 162 -Wno-sign-promo 163 164 165 # Flags passed to both C and C++ files. 166 MY_CFLAGS_Release := \ 167 -Wno-narrowing \ 168 -fstack-protector \ 169 --param=ssp-buffer-size=4 \ 170 \ 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 -EL \ 181 -mhard-float \ 182 -ffunction-sections \ 183 -funwind-tables \ 184 -g \ 185 -fstack-protector \ 186 -fno-short-enums \ 187 -finline-limit=64 \ 188 -Wa,--noexecstack \ 189 -U_FORTIFY_SOURCE \ 190 -Wno-extra \ 191 -Wno-ignored-qualifiers \ 192 -Wno-type-limits \ 193 -Os \ 194 -fno-ident \ 195 -fdata-sections \ 196 -ffunction-sections \ 197 -fomit-frame-pointer 198 199 MY_DEFS_Release := \ 200 '-DV8_DEPRECATION_WARNINGS' \ 201 '-D_FILE_OFFSET_BITS=64' \ 202 '-DNO_TCMALLOC' \ 203 '-DDISABLE_NACL' \ 204 '-DCHROMIUM_BUILD' \ 205 '-DUSE_LIBJPEG_TURBO=1' \ 206 '-DUSE_PROPRIETARY_CODECS' \ 207 '-DENABLE_CONFIGURATION_POLICY' \ 208 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 209 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 210 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 211 '-DUSE_OPENSSL=1' \ 212 '-DENABLE_EGLIMAGE=1' \ 213 '-DCLD_VERSION=1' \ 214 '-DENABLE_PRINTING=1' \ 215 '-DENABLE_MANAGED_USERS=1' \ 216 '-DWEBKIT_EXTENSIONS_IMPLEMENTATION' \ 217 '-DWEBKIT_GLUE_IMPLEMENTATION' \ 218 '-DPOSIX_AVOID_MMAP' \ 219 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 220 '-DU_USING_ICU_NAMESPACE=0' \ 221 '-DMESA_EGL_NO_X11_HEADERS' \ 222 '-DAPPCACHE_USE_SIMPLE_CACHE' \ 223 '-DCHROME_PNG_WRITE_SUPPORT' \ 224 '-DPNG_USER_CONFIG' \ 225 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 226 '-DUSE_SYSTEM_LIBJPEG' \ 227 '-D__STDC_CONSTANT_MACROS' \ 228 '-D__STDC_FORMAT_MACROS' \ 229 '-DANDROID' \ 230 '-D__GNU_SOURCE=1' \ 231 '-DUSE_STLPORT=1' \ 232 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 233 '-DCHROME_BUILD_ID=""' \ 234 '-DNDEBUG' \ 235 '-DNVALGRIND' \ 236 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 237 '-D_FORTIFY_SOURCE=2' 238 239 240 # Include paths placed before CFLAGS/CPPFLAGS 241 LOCAL_C_INCLUDES_Release := \ 242 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 243 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 244 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 245 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 246 $(gyp_intermediate_dir) \ 247 $(gyp_shared_intermediate_dir)/webkit \ 248 $(gyp_shared_intermediate_dir)/ui \ 249 $(LOCAL_PATH)/third_party/khronos \ 250 $(LOCAL_PATH)/gpu \ 251 $(LOCAL_PATH) \ 252 $(LOCAL_PATH)/skia/config \ 253 $(LOCAL_PATH)/third_party/WebKit/Source \ 254 $(PWD)/external/skia/include \ 255 $(PWD)/external/skia/include/core \ 256 $(LOCAL_PATH)/third_party/skia/src/core \ 257 $(LOCAL_PATH)/skia/ext \ 258 $(PWD)/external/icu4c/common \ 259 $(PWD)/external/icu4c/i18n \ 260 $(LOCAL_PATH)/third_party/npapi \ 261 $(LOCAL_PATH)/third_party/npapi/bindings \ 262 $(gyp_shared_intermediate_dir)/ui/gl \ 263 $(LOCAL_PATH)/third_party/mesa/src/include \ 264 $(LOCAL_PATH)/v8/include \ 265 $(LOCAL_PATH)/third_party/WebKit \ 266 $(LOCAL_PATH)/third_party/libpng \ 267 $(LOCAL_PATH)/third_party/zlib \ 268 $(LOCAL_PATH)/third_party/libwebp \ 269 $(LOCAL_PATH)/third_party/ots/include \ 270 $(LOCAL_PATH)/third_party/qcms/src \ 271 $(LOCAL_PATH)/third_party/iccjpeg \ 272 $(PWD)/external/jpeg \ 273 $(PWD)/frameworks/wilhelm/include \ 274 $(PWD)/bionic \ 275 $(PWD)/external/stlport/stlport 276 277 278 # Flags passed to only C++ (and not C) files. 279 LOCAL_CPPFLAGS_Release := \ 280 -Wno-narrowing \ 281 -fno-rtti \ 282 -fno-threadsafe-statics \ 283 -fvisibility-inlines-hidden \ 284 -Wsign-compare \ 285 -Wno-uninitialized \ 286 -Wno-error=c++0x-compat \ 287 -Wno-non-virtual-dtor \ 288 -Wno-sign-promo 289 290 291 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 292 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 293 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 294 ### Rules for final target. 295 296 LOCAL_LDFLAGS_Debug := \ 297 -Wl,-z,now \ 298 -Wl,-z,relro \ 299 -Wl,-z,noexecstack \ 300 -fPIC \ 301 -EL \ 302 -Wl,--no-keep-memory \ 303 -nostdlib \ 304 -Wl,--no-undefined \ 305 -Wl,--exclude-libs=ALL \ 306 -Wl,--fatal-warnings \ 307 -Wl,--gc-sections \ 308 -Wl,--warn-shared-textrel \ 309 -Wl,-O1 \ 310 -Wl,--as-needed 311 312 313 LOCAL_LDFLAGS_Release := \ 314 -Wl,-z,now \ 315 -Wl,-z,relro \ 316 -Wl,-z,noexecstack \ 317 -fPIC \ 318 -EL \ 319 -Wl,--no-keep-memory \ 320 -nostdlib \ 321 -Wl,--no-undefined \ 322 -Wl,--exclude-libs=ALL \ 323 -Wl,-O1 \ 324 -Wl,--as-needed \ 325 -Wl,--gc-sections \ 326 -Wl,--fatal-warnings \ 327 -Wl,--warn-shared-textrel 328 329 330 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 331 332 LOCAL_STATIC_LIBRARIES := \ 333 ui_gl_gl_gyp 334 335 # Enable grouping to fix circular references 336 LOCAL_GROUP_STATIC_LIBRARIES := true 337 338 LOCAL_SHARED_LIBRARIES := \ 339 libskia \ 340 libstlport \ 341 libdl 342 343 # Add target alias to "gyp_all_modules" target. 344 .PHONY: gyp_all_modules 345 gyp_all_modules: webkit_glue_glue_gyp 346 347 # Alias gyp target name. 348 .PHONY: glue 349 glue: webkit_glue_glue_gyp 350 351 include $(BUILD_STATIC_LIBRARY) 352