Home | History | Annotate | Download | only in native
      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_pdf_exporter.cc \
     41 	android_webview/native/aw_picture.cc \
     42 	android_webview/native/aw_quota_manager_bridge_impl.cc \
     43 	android_webview/native/aw_resource.cc \
     44 	android_webview/native/aw_settings.cc \
     45 	android_webview/native/aw_web_contents_delegate.cc \
     46 	android_webview/native/aw_web_contents_view_delegate.cc \
     47 	android_webview/native/aw_web_preferences_populater_impl.cc \
     48 	android_webview/native/cookie_manager.cc \
     49 	android_webview/native/input_stream_impl.cc \
     50 	android_webview/native/intercepted_request_data_impl.cc \
     51 	android_webview/native/java_browser_view_renderer_helper.cc \
     52 	android_webview/native/net_init_native_callback.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 	'-DV8_DEPRECATION_WARNINGS' \
     90 	'-D_FILE_OFFSET_BITS=64' \
     91 	'-DNO_TCMALLOC' \
     92 	'-DDISABLE_NACL' \
     93 	'-DCHROMIUM_BUILD' \
     94 	'-DUSE_LIBJPEG_TURBO=1' \
     95 	'-DUSE_PROPRIETARY_CODECS' \
     96 	'-DENABLE_CONFIGURATION_POLICY' \
     97 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     98 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     99 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    100 	'-DUSE_OPENSSL=1' \
    101 	'-DENABLE_EGLIMAGE=1' \
    102 	'-DCLD_VERSION=1' \
    103 	'-DENABLE_PRINTING=1' \
    104 	'-DENABLE_MANAGED_USERS=1' \
    105 	'-DPOSIX_AVOID_MMAP' \
    106 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    107 	'-DU_USING_ICU_NAMESPACE=0' \
    108 	'-DAPPCACHE_USE_SIMPLE_CACHE' \
    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/skia_library/target \
    124 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    125 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/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/WebKit/Source \
    133 	$(PWD)/external/skia/include \
    134 	$(PWD)/external/skia/include/core \
    135 	$(LOCAL_PATH)/third_party/skia/src/core \
    136 	$(LOCAL_PATH)/skia/ext \
    137 	$(PWD)/external/icu4c/common \
    138 	$(PWD)/external/icu4c/i18n \
    139 	$(PWD)/frameworks/wilhelm/include \
    140 	$(PWD)/bionic \
    141 	$(PWD)/external/stlport/stlport
    142 
    143 
    144 # Flags passed to only C++ (and not C) files.
    145 LOCAL_CPPFLAGS_Debug := \
    146 	-fno-rtti \
    147 	-fno-threadsafe-statics \
    148 	-fvisibility-inlines-hidden \
    149 	-Wsign-compare \
    150 	-Wno-uninitialized \
    151 	-Wno-error=c++0x-compat \
    152 	-Wno-non-virtual-dtor \
    153 	-Wno-sign-promo
    154 
    155 
    156 # Flags passed to both C and C++ files.
    157 MY_CFLAGS_Release := \
    158 	-fstack-protector \
    159 	--param=ssp-buffer-size=4 \
    160 	 \
    161 	-fno-exceptions \
    162 	-fno-strict-aliasing \
    163 	-Wall \
    164 	-Wno-unused-parameter \
    165 	-Wno-missing-field-initializers \
    166 	-fvisibility=hidden \
    167 	-pipe \
    168 	-fPIC \
    169 	-EL \
    170 	-mhard-float \
    171 	-ffunction-sections \
    172 	-funwind-tables \
    173 	-g \
    174 	-fstack-protector \
    175 	-fno-short-enums \
    176 	-finline-limit=64 \
    177 	-Wa,--noexecstack \
    178 	-U_FORTIFY_SOURCE \
    179 	-Wno-extra \
    180 	-Wno-ignored-qualifiers \
    181 	-Wno-type-limits \
    182 	-Os \
    183 	-fno-ident \
    184 	-fdata-sections \
    185 	-ffunction-sections \
    186 	-fomit-frame-pointer
    187 
    188 MY_DEFS_Release := \
    189 	'-DV8_DEPRECATION_WARNINGS' \
    190 	'-D_FILE_OFFSET_BITS=64' \
    191 	'-DNO_TCMALLOC' \
    192 	'-DDISABLE_NACL' \
    193 	'-DCHROMIUM_BUILD' \
    194 	'-DUSE_LIBJPEG_TURBO=1' \
    195 	'-DUSE_PROPRIETARY_CODECS' \
    196 	'-DENABLE_CONFIGURATION_POLICY' \
    197 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    198 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    199 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    200 	'-DUSE_OPENSSL=1' \
    201 	'-DENABLE_EGLIMAGE=1' \
    202 	'-DCLD_VERSION=1' \
    203 	'-DENABLE_PRINTING=1' \
    204 	'-DENABLE_MANAGED_USERS=1' \
    205 	'-DPOSIX_AVOID_MMAP' \
    206 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    207 	'-DU_USING_ICU_NAMESPACE=0' \
    208 	'-DAPPCACHE_USE_SIMPLE_CACHE' \
    209 	'-D__STDC_CONSTANT_MACROS' \
    210 	'-D__STDC_FORMAT_MACROS' \
    211 	'-DANDROID' \
    212 	'-D__GNU_SOURCE=1' \
    213 	'-DUSE_STLPORT=1' \
    214 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    215 	'-DCHROME_BUILD_ID=""' \
    216 	'-DNDEBUG' \
    217 	'-DNVALGRIND' \
    218 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    219 	'-D_FORTIFY_SOURCE=2'
    220 
    221 
    222 # Include paths placed before CFLAGS/CPPFLAGS
    223 LOCAL_C_INCLUDES_Release := \
    224 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    225 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    226 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    227 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    228 	$(LOCAL_PATH) \
    229 	$(LOCAL_PATH)/skia/config \
    230 	$(gyp_shared_intermediate_dir)/android_webview \
    231 	$(LOCAL_PATH)/third_party/khronos \
    232 	$(LOCAL_PATH)/gpu \
    233 	$(LOCAL_PATH)/third_party/WebKit/Source \
    234 	$(PWD)/external/skia/include \
    235 	$(PWD)/external/skia/include/core \
    236 	$(LOCAL_PATH)/third_party/skia/src/core \
    237 	$(LOCAL_PATH)/skia/ext \
    238 	$(PWD)/external/icu4c/common \
    239 	$(PWD)/external/icu4c/i18n \
    240 	$(PWD)/frameworks/wilhelm/include \
    241 	$(PWD)/bionic \
    242 	$(PWD)/external/stlport/stlport
    243 
    244 
    245 # Flags passed to only C++ (and not C) files.
    246 LOCAL_CPPFLAGS_Release := \
    247 	-fno-rtti \
    248 	-fno-threadsafe-statics \
    249 	-fvisibility-inlines-hidden \
    250 	-Wsign-compare \
    251 	-Wno-uninitialized \
    252 	-Wno-error=c++0x-compat \
    253 	-Wno-non-virtual-dtor \
    254 	-Wno-sign-promo
    255 
    256 
    257 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    258 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    259 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    260 ### Rules for final target.
    261 
    262 LOCAL_LDFLAGS_Debug := \
    263 	-Wl,-z,now \
    264 	-Wl,-z,relro \
    265 	-Wl,-z,noexecstack \
    266 	-fPIC \
    267 	-EL \
    268 	-Wl,--no-keep-memory \
    269 	-nostdlib \
    270 	-Wl,--no-undefined \
    271 	-Wl,--exclude-libs=ALL \
    272 	-Wl,--fatal-warnings \
    273 	-Wl,--gc-sections \
    274 	-Wl,--warn-shared-textrel \
    275 	-Wl,-O1 \
    276 	-Wl,--as-needed
    277 
    278 
    279 LOCAL_LDFLAGS_Release := \
    280 	-Wl,-z,now \
    281 	-Wl,-z,relro \
    282 	-Wl,-z,noexecstack \
    283 	-fPIC \
    284 	-EL \
    285 	-Wl,--no-keep-memory \
    286 	-nostdlib \
    287 	-Wl,--no-undefined \
    288 	-Wl,--exclude-libs=ALL \
    289 	-Wl,-O1 \
    290 	-Wl,--as-needed \
    291 	-Wl,--gc-sections \
    292 	-Wl,--fatal-warnings \
    293 	-Wl,--warn-shared-textrel
    294 
    295 
    296 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    297 
    298 LOCAL_STATIC_LIBRARIES := \
    299 	ui_ui_gyp
    300 
    301 # Enable grouping to fix circular references
    302 LOCAL_GROUP_STATIC_LIBRARIES := true
    303 
    304 LOCAL_SHARED_LIBRARIES := \
    305 	libskia \
    306 	libstlport \
    307 	libdl
    308 
    309 # Add target alias to "gyp_all_modules" target.
    310 .PHONY: gyp_all_modules
    311 gyp_all_modules: android_webview_native_webview_native_gyp
    312 
    313 # Alias gyp target name.
    314 .PHONY: webview_native
    315 webview_native: android_webview_native_webview_native_gyp
    316 
    317 include $(BUILD_STATIC_LIBRARY)
    318