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