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