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_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_icu_icui18n_gyp)/icui18n.stamp \
     16 	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \
     17 	$(call intermediates-dir-for,GYP,third_party_npapi_npapi_gyp)/npapi.stamp \
     18 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \
     19 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \
     20 	$(call intermediates-dir-for,GYP,ui_ui_resources_gyp)/ui_resources.stamp \
     21 	$(call intermediates-dir-for,GYP,v8_tools_gyp_v8_gyp)/v8.stamp \
     22 	$(call intermediates-dir-for,GYP,webkit_webkit_resources_gyp)/webkit_resources.stamp \
     23 	$(call intermediates-dir-for,GYP,webkit_webkit_strings_gyp)/webkit_strings.stamp \
     24 	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_gyp)/blink.stamp
     25 
     26 GYP_GENERATED_OUTPUTS :=
     27 
     28 # Make sure our deps and generated files are built first.
     29 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     30 
     31 LOCAL_CPP_EXTENSION := .cc
     32 LOCAL_GENERATED_SOURCES :=
     33 
     34 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     35 
     36 LOCAL_SRC_FILES := \
     37 	webkit/glue/simple_webmimeregistry_impl.cc \
     38 	webkit/glue/webfileutilities_impl.cc \
     39 	webkit/glue/webkit_glue.cc
     40 
     41 
     42 # Flags passed to both C and C++ files.
     43 MY_CFLAGS_Debug := \
     44 	-Wno-narrowing \
     45 	-fstack-protector \
     46 	--param=ssp-buffer-size=4 \
     47 	 \
     48 	-fno-exceptions \
     49 	-fno-strict-aliasing \
     50 	-Wall \
     51 	-Wno-unused-parameter \
     52 	-Wno-missing-field-initializers \
     53 	-fvisibility=hidden \
     54 	-pipe \
     55 	-fPIC \
     56 	-Wno-unknown-pragmas \
     57 	-EL \
     58 	-mhard-float \
     59 	-ffunction-sections \
     60 	-funwind-tables \
     61 	-g \
     62 	-fstack-protector \
     63 	-fno-short-enums \
     64 	-finline-limit=64 \
     65 	-Wa,--noexecstack \
     66 	-U_FORTIFY_SOURCE \
     67 	-Wno-extra \
     68 	-Wno-ignored-qualifiers \
     69 	-Wno-type-limits \
     70 	-Wno-address \
     71 	-Wno-format-security \
     72 	-Wno-return-type \
     73 	-Wno-sequence-point \
     74 	-Os \
     75 	-g \
     76 	-fomit-frame-pointer \
     77 	-fdata-sections \
     78 	-ffunction-sections
     79 
     80 MY_DEFS_Debug := \
     81 	'-DANGLE_DX11' \
     82 	'-D_FILE_OFFSET_BITS=64' \
     83 	'-DNO_TCMALLOC' \
     84 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     85 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     86 	'-DDISABLE_NACL' \
     87 	'-DCHROMIUM_BUILD' \
     88 	'-DUSE_LIBJPEG_TURBO=1' \
     89 	'-DUSE_PROPRIETARY_CODECS' \
     90 	'-DENABLE_CONFIGURATION_POLICY' \
     91 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     92 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     93 	'-DENABLE_GPU=1' \
     94 	'-DUSE_OPENSSL=1' \
     95 	'-DENABLE_EGLIMAGE=1' \
     96 	'-DENABLE_PRINTING=1' \
     97 	'-DWEBKIT_EXTENSIONS_IMPLEMENTATION' \
     98 	'-DWEBKIT_GLUE_IMPLEMENTATION' \
     99 	'-DPOSIX_AVOID_MMAP' \
    100 	'-DU_USING_ICU_NAMESPACE=0' \
    101 	'-DMESA_EGL_NO_X11_HEADERS' \
    102 	'-D__STDC_CONSTANT_MACROS' \
    103 	'-D__STDC_FORMAT_MACROS' \
    104 	'-DANDROID' \
    105 	'-D__GNU_SOURCE=1' \
    106 	'-DUSE_STLPORT=1' \
    107 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    108 	'-DCHROME_BUILD_ID=""' \
    109 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    110 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    111 	'-D_DEBUG'
    112 
    113 
    114 # Include paths placed before CFLAGS/CPPFLAGS
    115 LOCAL_C_INCLUDES_Debug := \
    116 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    117 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    118 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    119 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    120 	$(gyp_intermediate_dir) \
    121 	$(gyp_shared_intermediate_dir)/webkit \
    122 	$(gyp_shared_intermediate_dir)/ui \
    123 	$(LOCAL_PATH)/third_party/khronos \
    124 	$(LOCAL_PATH)/gpu \
    125 	$(LOCAL_PATH) \
    126 	$(LOCAL_PATH)/third_party/skia/src/core \
    127 	$(LOCAL_PATH)/skia/ext \
    128 	$(PWD)/external/icu4c/common \
    129 	$(PWD)/external/icu4c/i18n \
    130 	$(LOCAL_PATH)/third_party/npapi \
    131 	$(LOCAL_PATH)/third_party/npapi/bindings \
    132 	$(gyp_shared_intermediate_dir)/ui/gl \
    133 	$(LOCAL_PATH)/third_party/mesa/src/include \
    134 	$(gyp_shared_intermediate_dir)/ui/ui_resources \
    135 	$(LOCAL_PATH)/v8/include \
    136 	$(LOCAL_PATH)/third_party/WebKit \
    137 	$(PWD)/frameworks/wilhelm/include \
    138 	$(PWD)/bionic \
    139 	$(PWD)/external/stlport/stlport
    140 
    141 
    142 # Flags passed to only C++ (and not C) files.
    143 LOCAL_CPPFLAGS_Debug := \
    144 	-Wno-narrowing \
    145 	-fno-rtti \
    146 	-fno-threadsafe-statics \
    147 	-fvisibility-inlines-hidden \
    148 	-Wsign-compare \
    149 	-Wno-uninitialized \
    150 	-Wno-error=c++0x-compat \
    151 	-Wno-non-virtual-dtor \
    152 	-Wno-sign-promo \
    153 	-Wno-non-virtual-dtor
    154 
    155 
    156 # Flags passed to both C and C++ files.
    157 MY_CFLAGS_Release := \
    158 	-Wno-narrowing \
    159 	-fstack-protector \
    160 	--param=ssp-buffer-size=4 \
    161 	 \
    162 	-fno-exceptions \
    163 	-fno-strict-aliasing \
    164 	-Wall \
    165 	-Wno-unused-parameter \
    166 	-Wno-missing-field-initializers \
    167 	-fvisibility=hidden \
    168 	-pipe \
    169 	-fPIC \
    170 	-Wno-unknown-pragmas \
    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_EXTENSIONS_IMPLEMENTATION' \
    212 	'-DWEBKIT_GLUE_IMPLEMENTATION' \
    213 	'-DPOSIX_AVOID_MMAP' \
    214 	'-DU_USING_ICU_NAMESPACE=0' \
    215 	'-DMESA_EGL_NO_X11_HEADERS' \
    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_intermediate_dir) \
    236 	$(gyp_shared_intermediate_dir)/webkit \
    237 	$(gyp_shared_intermediate_dir)/ui \
    238 	$(LOCAL_PATH)/third_party/khronos \
    239 	$(LOCAL_PATH)/gpu \
    240 	$(LOCAL_PATH) \
    241 	$(LOCAL_PATH)/third_party/skia/src/core \
    242 	$(LOCAL_PATH)/skia/ext \
    243 	$(PWD)/external/icu4c/common \
    244 	$(PWD)/external/icu4c/i18n \
    245 	$(LOCAL_PATH)/third_party/npapi \
    246 	$(LOCAL_PATH)/third_party/npapi/bindings \
    247 	$(gyp_shared_intermediate_dir)/ui/gl \
    248 	$(LOCAL_PATH)/third_party/mesa/src/include \
    249 	$(gyp_shared_intermediate_dir)/ui/ui_resources \
    250 	$(LOCAL_PATH)/v8/include \
    251 	$(LOCAL_PATH)/third_party/WebKit \
    252 	$(PWD)/frameworks/wilhelm/include \
    253 	$(PWD)/bionic \
    254 	$(PWD)/external/stlport/stlport
    255 
    256 
    257 # Flags passed to only C++ (and not C) files.
    258 LOCAL_CPPFLAGS_Release := \
    259 	-Wno-narrowing \
    260 	-fno-rtti \
    261 	-fno-threadsafe-statics \
    262 	-fvisibility-inlines-hidden \
    263 	-Wsign-compare \
    264 	-Wno-uninitialized \
    265 	-Wno-error=c++0x-compat \
    266 	-Wno-non-virtual-dtor \
    267 	-Wno-sign-promo \
    268 	-Wno-non-virtual-dtor
    269 
    270 
    271 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    272 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    273 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    274 ### Rules for final target.
    275 
    276 LOCAL_LDFLAGS_Debug := \
    277 	-Wl,-z,now \
    278 	-Wl,-z,relro \
    279 	-Wl,-z,noexecstack \
    280 	-fPIC \
    281 	-EL \
    282 	-Wl,--no-keep-memory \
    283 	-nostdlib \
    284 	-Wl,--no-undefined \
    285 	-Wl,--exclude-libs=ALL \
    286 	-Wl,--fatal-warnings \
    287 	-Wl,--gc-sections \
    288 	-Wl,--warn-shared-textrel \
    289 	-Wl,-O1 \
    290 	-Wl,--as-needed
    291 
    292 
    293 LOCAL_LDFLAGS_Release := \
    294 	-Wl,-z,now \
    295 	-Wl,-z,relro \
    296 	-Wl,-z,noexecstack \
    297 	-fPIC \
    298 	-EL \
    299 	-Wl,--no-keep-memory \
    300 	-nostdlib \
    301 	-Wl,--no-undefined \
    302 	-Wl,--exclude-libs=ALL \
    303 	-Wl,-O1 \
    304 	-Wl,--as-needed \
    305 	-Wl,--gc-sections \
    306 	-Wl,--fatal-warnings \
    307 	-Wl,--warn-shared-textrel
    308 
    309 
    310 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    311 
    312 LOCAL_STATIC_LIBRARIES := \
    313 	ui_gl_gl_gyp \
    314 	ui_ui_gyp
    315 
    316 # Enable grouping to fix circular references
    317 LOCAL_GROUP_STATIC_LIBRARIES := true
    318 
    319 LOCAL_SHARED_LIBRARIES := \
    320 	libskia \
    321 	libstlport \
    322 	libdl
    323 
    324 # Add target alias to "gyp_all_modules" target.
    325 .PHONY: gyp_all_modules
    326 gyp_all_modules: webkit_support_glue_gyp
    327 
    328 # Alias gyp target name.
    329 .PHONY: glue
    330 glue: webkit_support_glue_gyp
    331 
    332 include $(BUILD_STATIC_LIBRARY)
    333