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