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