Home | History | Annotate | Download | only in support
      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 := webkit_support_glue_child_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,GYP,third_party_WebKit_public_blink_gyp)/blink.stamp \
     16 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \
     17 	$(call intermediates-dir-for,GYP,v8_tools_gyp_v8_gyp)/v8.stamp \
     18 	$(call intermediates-dir-for,GYP,webkit_support_overscroller_jni_headers_gyp)/overscroller_jni_headers.stamp
     19 
     20 GYP_GENERATED_OUTPUTS :=
     21 
     22 # Make sure our deps and generated files are built first.
     23 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     24 
     25 LOCAL_CPP_EXTENSION := .cc
     26 LOCAL_GENERATED_SOURCES :=
     27 
     28 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     29 
     30 LOCAL_SRC_FILES := \
     31 	webkit/child/fling_animator_impl_android.cc \
     32 	webkit/child/fling_curve_configuration.cc \
     33 	webkit/child/ftp_directory_listing_response_delegate.cc \
     34 	webkit/child/multipart_response_delegate.cc \
     35 	webkit/child/resource_loader_bridge.cc \
     36 	webkit/child/touch_fling_gesture_curve.cc \
     37 	webkit/child/web_discardable_memory_impl.cc \
     38 	webkit/child/webfallbackthemeengine_impl.cc \
     39 	webkit/child/webkit_child_helpers.cc \
     40 	webkit/child/webkitplatformsupport_child_impl.cc \
     41 	webkit/child/webkitplatformsupport_impl.cc \
     42 	webkit/child/websocketstreamhandle_impl.cc \
     43 	webkit/child/webthemeengine_impl_android.cc \
     44 	webkit/child/webthread_impl.cc \
     45 	webkit/child/weburlloader_impl.cc \
     46 	webkit/child/weburlrequest_extradata_impl.cc \
     47 	webkit/child/weburlresponse_extradata_impl.cc \
     48 	webkit/child/worker_task_runner.cc
     49 
     50 
     51 # Flags passed to both C and C++ files.
     52 MY_CFLAGS_Debug := \
     53 	-Wno-narrowing \
     54 	-fstack-protector \
     55 	--param=ssp-buffer-size=4 \
     56 	 \
     57 	-fno-exceptions \
     58 	-fno-strict-aliasing \
     59 	-Wall \
     60 	-Wno-unused-parameter \
     61 	-Wno-missing-field-initializers \
     62 	-fvisibility=hidden \
     63 	-pipe \
     64 	-fPIC \
     65 	-EL \
     66 	-mhard-float \
     67 	-ffunction-sections \
     68 	-funwind-tables \
     69 	-g \
     70 	-fstack-protector \
     71 	-fno-short-enums \
     72 	-finline-limit=64 \
     73 	-Wa,--noexecstack \
     74 	-U_FORTIFY_SOURCE \
     75 	-Wno-extra \
     76 	-Wno-ignored-qualifiers \
     77 	-Wno-type-limits \
     78 	-Wno-address \
     79 	-Wno-format-security \
     80 	-Wno-return-type \
     81 	-Wno-sequence-point \
     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 	'-DWEBKIT_CHILD_IMPLEMENTATION' \
    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/skia_library/target \
    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/ashmem/target \
    126 	$(gyp_shared_intermediate_dir)/webkit \
    127 	$(LOCAL_PATH)/third_party/khronos \
    128 	$(LOCAL_PATH)/gpu \
    129 	$(LOCAL_PATH) \
    130 	$(LOCAL_PATH)/third_party/skia/src/core \
    131 	$(LOCAL_PATH)/skia/ext \
    132 	$(LOCAL_PATH)/third_party/WebKit \
    133 	$(PWD)/external/icu4c/common \
    134 	$(PWD)/external/icu4c/i18n \
    135 	$(LOCAL_PATH)/third_party/npapi \
    136 	$(LOCAL_PATH)/third_party/npapi/bindings \
    137 	$(LOCAL_PATH)/v8/include \
    138 	$(PWD)/frameworks/wilhelm/include \
    139 	$(PWD)/bionic \
    140 	$(PWD)/external/stlport/stlport
    141 
    142 
    143 # Flags passed to only C++ (and not C) files.
    144 LOCAL_CPPFLAGS_Debug := \
    145 	-Wno-narrowing \
    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 	-Wno-non-virtual-dtor
    155 
    156 
    157 # Flags passed to both C and C++ files.
    158 MY_CFLAGS_Release := \
    159 	-Wno-narrowing \
    160 	-fstack-protector \
    161 	--param=ssp-buffer-size=4 \
    162 	 \
    163 	-fno-exceptions \
    164 	-fno-strict-aliasing \
    165 	-Wall \
    166 	-Wno-unused-parameter \
    167 	-Wno-missing-field-initializers \
    168 	-fvisibility=hidden \
    169 	-pipe \
    170 	-fPIC \
    171 	-EL \
    172 	-mhard-float \
    173 	-ffunction-sections \
    174 	-funwind-tables \
    175 	-g \
    176 	-fstack-protector \
    177 	-fno-short-enums \
    178 	-finline-limit=64 \
    179 	-Wa,--noexecstack \
    180 	-U_FORTIFY_SOURCE \
    181 	-Wno-extra \
    182 	-Wno-ignored-qualifiers \
    183 	-Wno-type-limits \
    184 	-Wno-address \
    185 	-Wno-format-security \
    186 	-Wno-return-type \
    187 	-Wno-sequence-point \
    188 	-Os \
    189 	-fno-ident \
    190 	-fdata-sections \
    191 	-ffunction-sections \
    192 	-fomit-frame-pointer
    193 
    194 MY_DEFS_Release := \
    195 	'-DANGLE_DX11' \
    196 	'-D_FILE_OFFSET_BITS=64' \
    197 	'-DNO_TCMALLOC' \
    198 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    199 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    200 	'-DDISABLE_NACL' \
    201 	'-DCHROMIUM_BUILD' \
    202 	'-DUSE_LIBJPEG_TURBO=1' \
    203 	'-DUSE_PROPRIETARY_CODECS' \
    204 	'-DENABLE_CONFIGURATION_POLICY' \
    205 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    206 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    207 	'-DENABLE_GPU=1' \
    208 	'-DUSE_OPENSSL=1' \
    209 	'-DENABLE_EGLIMAGE=1' \
    210 	'-DENABLE_PRINTING=1' \
    211 	'-DWEBKIT_CHILD_IMPLEMENTATION' \
    212 	'-DPOSIX_AVOID_MMAP' \
    213 	'-DU_USING_ICU_NAMESPACE=0' \
    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 	$(gyp_shared_intermediate_dir)/webkit \
    234 	$(LOCAL_PATH)/third_party/khronos \
    235 	$(LOCAL_PATH)/gpu \
    236 	$(LOCAL_PATH) \
    237 	$(LOCAL_PATH)/third_party/skia/src/core \
    238 	$(LOCAL_PATH)/skia/ext \
    239 	$(LOCAL_PATH)/third_party/WebKit \
    240 	$(PWD)/external/icu4c/common \
    241 	$(PWD)/external/icu4c/i18n \
    242 	$(LOCAL_PATH)/third_party/npapi \
    243 	$(LOCAL_PATH)/third_party/npapi/bindings \
    244 	$(LOCAL_PATH)/v8/include \
    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 	-Wno-narrowing \
    253 	-fno-rtti \
    254 	-fno-threadsafe-statics \
    255 	-fvisibility-inlines-hidden \
    256 	-Wsign-compare \
    257 	-Wno-uninitialized \
    258 	-Wno-error=c++0x-compat \
    259 	-Wno-non-virtual-dtor \
    260 	-Wno-sign-promo \
    261 	-Wno-non-virtual-dtor
    262 
    263 
    264 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    265 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    266 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    267 ### Rules for final target.
    268 
    269 LOCAL_LDFLAGS_Debug := \
    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,--fatal-warnings \
    280 	-Wl,--gc-sections \
    281 	-Wl,--warn-shared-textrel \
    282 	-Wl,-O1 \
    283 	-Wl,--as-needed
    284 
    285 
    286 LOCAL_LDFLAGS_Release := \
    287 	-Wl,-z,now \
    288 	-Wl,-z,relro \
    289 	-Wl,-z,noexecstack \
    290 	-fPIC \
    291 	-EL \
    292 	-Wl,--no-keep-memory \
    293 	-nostdlib \
    294 	-Wl,--no-undefined \
    295 	-Wl,--exclude-libs=ALL \
    296 	-Wl,-O1 \
    297 	-Wl,--as-needed \
    298 	-Wl,--gc-sections \
    299 	-Wl,--fatal-warnings \
    300 	-Wl,--warn-shared-textrel
    301 
    302 
    303 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    304 
    305 LOCAL_STATIC_LIBRARIES := \
    306 	ui_ui_gyp
    307 
    308 # Enable grouping to fix circular references
    309 LOCAL_GROUP_STATIC_LIBRARIES := true
    310 
    311 LOCAL_SHARED_LIBRARIES := \
    312 	libskia \
    313 	libstlport \
    314 	libdl
    315 
    316 # Add target alias to "gyp_all_modules" target.
    317 .PHONY: gyp_all_modules
    318 gyp_all_modules: webkit_support_glue_child_gyp
    319 
    320 # Alias gyp target name.
    321 .PHONY: glue_child
    322 glue_child: webkit_support_glue_child_gyp
    323 
    324 include $(BUILD_STATIC_LIBRARY)
    325