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