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