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