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