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 	-Werror \
     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 	-fno-tree-sra \
     66 	-fuse-ld=gold \
     67 	-Wno-psabi \
     68 	-ffunction-sections \
     69 	-funwind-tables \
     70 	-g \
     71 	-fstack-protector \
     72 	-fno-short-enums \
     73 	-finline-limit=64 \
     74 	-Wa,--noexecstack \
     75 	-U_FORTIFY_SOURCE \
     76 	-Wno-extra \
     77 	-Wno-ignored-qualifiers \
     78 	-Wno-type-limits \
     79 	-Wno-address \
     80 	-Wno-format-security \
     81 	-Wno-return-type \
     82 	-Wno-sequence-point \
     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 	'-DWEBKIT_CHILD_IMPLEMENTATION' \
    107 	'-DPOSIX_AVOID_MMAP' \
    108 	'-DU_USING_ICU_NAMESPACE=0' \
    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 	$(gyp_shared_intermediate_dir)/webkit \
    128 	$(LOCAL_PATH)/third_party/khronos \
    129 	$(LOCAL_PATH)/gpu \
    130 	$(LOCAL_PATH) \
    131 	$(LOCAL_PATH)/third_party/skia/src/core \
    132 	$(LOCAL_PATH)/skia/ext \
    133 	$(LOCAL_PATH)/third_party/WebKit \
    134 	$(PWD)/external/icu4c/common \
    135 	$(PWD)/external/icu4c/i18n \
    136 	$(LOCAL_PATH)/third_party/npapi \
    137 	$(LOCAL_PATH)/third_party/npapi/bindings \
    138 	$(LOCAL_PATH)/v8/include \
    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 	-Wno-narrowing \
    147 	-fno-rtti \
    148 	-fno-threadsafe-statics \
    149 	-fvisibility-inlines-hidden \
    150 	-Wsign-compare \
    151 	-Wno-abi \
    152 	-Wno-error=c++0x-compat \
    153 	-Wno-non-virtual-dtor \
    154 	-Wno-sign-promo \
    155 	-Wno-non-virtual-dtor
    156 
    157 
    158 # Flags passed to both C and C++ files.
    159 MY_CFLAGS_Release := \
    160 	-Wno-narrowing \
    161 	-fstack-protector \
    162 	--param=ssp-buffer-size=4 \
    163 	-Werror \
    164 	-fno-exceptions \
    165 	-fno-strict-aliasing \
    166 	-Wall \
    167 	-Wno-unused-parameter \
    168 	-Wno-missing-field-initializers \
    169 	-fvisibility=hidden \
    170 	-pipe \
    171 	-fPIC \
    172 	-fno-tree-sra \
    173 	-fuse-ld=gold \
    174 	-Wno-psabi \
    175 	-ffunction-sections \
    176 	-funwind-tables \
    177 	-g \
    178 	-fstack-protector \
    179 	-fno-short-enums \
    180 	-finline-limit=64 \
    181 	-Wa,--noexecstack \
    182 	-U_FORTIFY_SOURCE \
    183 	-Wno-extra \
    184 	-Wno-ignored-qualifiers \
    185 	-Wno-type-limits \
    186 	-Wno-address \
    187 	-Wno-format-security \
    188 	-Wno-return-type \
    189 	-Wno-sequence-point \
    190 	-Os \
    191 	-fno-ident \
    192 	-fdata-sections \
    193 	-ffunction-sections \
    194 	-fomit-frame-pointer
    195 
    196 MY_DEFS_Release := \
    197 	'-DANGLE_DX11' \
    198 	'-D_FILE_OFFSET_BITS=64' \
    199 	'-DNO_TCMALLOC' \
    200 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    201 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    202 	'-DDISABLE_NACL' \
    203 	'-DCHROMIUM_BUILD' \
    204 	'-DUSE_LIBJPEG_TURBO=1' \
    205 	'-DUSE_PROPRIETARY_CODECS' \
    206 	'-DENABLE_CONFIGURATION_POLICY' \
    207 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    208 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    209 	'-DENABLE_GPU=1' \
    210 	'-DUSE_OPENSSL=1' \
    211 	'-DENABLE_EGLIMAGE=1' \
    212 	'-DENABLE_PRINTING=1' \
    213 	'-DWEBKIT_CHILD_IMPLEMENTATION' \
    214 	'-DPOSIX_AVOID_MMAP' \
    215 	'-DU_USING_ICU_NAMESPACE=0' \
    216 	'-D__STDC_CONSTANT_MACROS' \
    217 	'-D__STDC_FORMAT_MACROS' \
    218 	'-DANDROID' \
    219 	'-D__GNU_SOURCE=1' \
    220 	'-DUSE_STLPORT=1' \
    221 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    222 	'-DCHROME_BUILD_ID=""' \
    223 	'-DNDEBUG' \
    224 	'-DNVALGRIND' \
    225 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    226 	'-D_FORTIFY_SOURCE=2'
    227 
    228 
    229 # Include paths placed before CFLAGS/CPPFLAGS
    230 LOCAL_C_INCLUDES_Release := \
    231 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    232 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    233 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    234 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    235 	$(gyp_shared_intermediate_dir)/webkit \
    236 	$(LOCAL_PATH)/third_party/khronos \
    237 	$(LOCAL_PATH)/gpu \
    238 	$(LOCAL_PATH) \
    239 	$(LOCAL_PATH)/third_party/skia/src/core \
    240 	$(LOCAL_PATH)/skia/ext \
    241 	$(LOCAL_PATH)/third_party/WebKit \
    242 	$(PWD)/external/icu4c/common \
    243 	$(PWD)/external/icu4c/i18n \
    244 	$(LOCAL_PATH)/third_party/npapi \
    245 	$(LOCAL_PATH)/third_party/npapi/bindings \
    246 	$(LOCAL_PATH)/v8/include \
    247 	$(PWD)/frameworks/wilhelm/include \
    248 	$(PWD)/bionic \
    249 	$(PWD)/external/stlport/stlport
    250 
    251 
    252 # Flags passed to only C++ (and not C) files.
    253 LOCAL_CPPFLAGS_Release := \
    254 	-Wno-narrowing \
    255 	-fno-rtti \
    256 	-fno-threadsafe-statics \
    257 	-fvisibility-inlines-hidden \
    258 	-Wsign-compare \
    259 	-Wno-abi \
    260 	-Wno-error=c++0x-compat \
    261 	-Wno-non-virtual-dtor \
    262 	-Wno-sign-promo \
    263 	-Wno-non-virtual-dtor
    264 
    265 
    266 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    267 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    268 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    269 ### Rules for final target.
    270 
    271 LOCAL_LDFLAGS_Debug := \
    272 	-Wl,-z,now \
    273 	-Wl,-z,relro \
    274 	-Wl,-z,noexecstack \
    275 	-fPIC \
    276 	-Wl,-z,relro \
    277 	-Wl,-z,now \
    278 	-fuse-ld=gold \
    279 	-nostdlib \
    280 	-Wl,--no-undefined \
    281 	-Wl,--exclude-libs=ALL \
    282 	-Wl,--icf=safe \
    283 	-Wl,--fatal-warnings \
    284 	-Wl,--gc-sections \
    285 	-Wl,--warn-shared-textrel \
    286 	-Wl,-O1 \
    287 	-Wl,--as-needed
    288 
    289 
    290 LOCAL_LDFLAGS_Release := \
    291 	-Wl,-z,now \
    292 	-Wl,-z,relro \
    293 	-Wl,-z,noexecstack \
    294 	-fPIC \
    295 	-Wl,-z,relro \
    296 	-Wl,-z,now \
    297 	-fuse-ld=gold \
    298 	-nostdlib \
    299 	-Wl,--no-undefined \
    300 	-Wl,--exclude-libs=ALL \
    301 	-Wl,--icf=safe \
    302 	-Wl,-O1 \
    303 	-Wl,--as-needed \
    304 	-Wl,--gc-sections \
    305 	-Wl,--fatal-warnings \
    306 	-Wl,--warn-shared-textrel
    307 
    308 
    309 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    310 
    311 LOCAL_STATIC_LIBRARIES := \
    312 	ui_ui_gyp
    313 
    314 # Enable grouping to fix circular references
    315 LOCAL_GROUP_STATIC_LIBRARIES := true
    316 
    317 LOCAL_SHARED_LIBRARIES := \
    318 	libskia \
    319 	libstlport \
    320 	libdl
    321 
    322 # Add target alias to "gyp_all_modules" target.
    323 .PHONY: gyp_all_modules
    324 gyp_all_modules: webkit_support_glue_child_gyp
    325 
    326 # Alias gyp target name.
    327 .PHONY: glue_child
    328 glue_child: webkit_support_glue_child_gyp
    329 
    330 include $(BUILD_STATIC_LIBRARY)
    331