Home | History | Annotate | Download | only in common
      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_common_webkit_common_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TAGS := optional
      9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
     10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     12 
     13 # Make sure our deps are built first.
     14 GYP_TARGET_DEPENDENCIES := \
     15 	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
     16 	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
     17 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \
     18 	$(call intermediates-dir-for,GYP,ui_resources_ui_resources_gyp,,,$(GYP_VAR_PREFIX))/ui_resources.stamp \
     19 	$(call intermediates-dir-for,GYP,webkit_webkit_resources_gyp,,,$(GYP_VAR_PREFIX))/webkit_resources.stamp \
     20 	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_headers_gyp,,,$(GYP_VAR_PREFIX))/blink_headers.stamp
     21 
     22 GYP_GENERATED_OUTPUTS :=
     23 
     24 # Make sure our deps and generated files are built first.
     25 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     26 
     27 LOCAL_CPP_EXTENSION := .cc
     28 LOCAL_GENERATED_SOURCES :=
     29 
     30 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     31 
     32 LOCAL_SRC_FILES := \
     33 	webkit/common/data_element.cc \
     34 	webkit/common/resource_type.cc \
     35 	webkit/common/webpreferences.cc
     36 
     37 
     38 # Flags passed to both C and C++ files.
     39 MY_CFLAGS_Debug := \
     40 	--param=ssp-buffer-size=4 \
     41 	-Werror \
     42 	-fno-exceptions \
     43 	-fno-strict-aliasing \
     44 	-Wall \
     45 	-Wno-unused-parameter \
     46 	-Wno-missing-field-initializers \
     47 	-fvisibility=hidden \
     48 	-pipe \
     49 	-fPIC \
     50 	-Wno-unused-local-typedefs \
     51 	-msse2 \
     52 	-mfpmath=sse \
     53 	-mmmx \
     54 	-m32 \
     55 	-ffunction-sections \
     56 	-funwind-tables \
     57 	-g \
     58 	-fno-short-enums \
     59 	-finline-limit=64 \
     60 	-Wa,--noexecstack \
     61 	-U_FORTIFY_SOURCE \
     62 	-Wno-extra \
     63 	-Wno-ignored-qualifiers \
     64 	-Wno-type-limits \
     65 	-Wno-unused-but-set-variable \
     66 	-fno-stack-protector \
     67 	-Os \
     68 	-g \
     69 	-fdata-sections \
     70 	-ffunction-sections \
     71 	-fomit-frame-pointer \
     72 	-funwind-tables
     73 
     74 MY_DEFS_Debug := \
     75 	'-DV8_DEPRECATION_WARNINGS' \
     76 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
     77 	'-D_FILE_OFFSET_BITS=64' \
     78 	'-DNO_TCMALLOC' \
     79 	'-DDISABLE_NACL' \
     80 	'-DCHROMIUM_BUILD' \
     81 	'-DUSE_LIBJPEG_TURBO=1' \
     82 	'-DENABLE_WEBRTC=1' \
     83 	'-DUSE_PROPRIETARY_CODECS' \
     84 	'-DENABLE_BROWSER_CDMS' \
     85 	'-DENABLE_CONFIGURATION_POLICY' \
     86 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     87 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     88 	'-DENABLE_EGLIMAGE=1' \
     89 	'-DCLD_VERSION=1' \
     90 	'-DENABLE_PRINTING=1' \
     91 	'-DENABLE_MANAGED_USERS=1' \
     92 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     93 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
     94 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     95 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     96 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     97 	'-DVIDEO_HOLE=1' \
     98 	'-DWEBKIT_COMMON_IMPLEMENTATION' \
     99 	'-DSK_ENABLE_INST_COUNT=0' \
    100 	'-DSK_SUPPORT_GPU=1' \
    101 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    102 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    103 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    104 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    105 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    106 	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
    107 	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
    108 	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
    109 	'-DSK_SUPPORT_LEGACY_N32_NAME' \
    110 	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
    111 	'-DSK_IGNORE_ETC1_SUPPORT' \
    112 	'-DSK_IGNORE_GPU_DITHER' \
    113 	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
    114 	'-DSK_BUILD_FOR_ANDROID' \
    115 	'-DSK_USE_POSIX_THREADS' \
    116 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    117 	'-DU_USING_ICU_NAMESPACE=0' \
    118 	'-DUSE_OPENSSL=1' \
    119 	'-DUSE_OPENSSL_CERTS=1' \
    120 	'-D__STDC_CONSTANT_MACROS' \
    121 	'-D__STDC_FORMAT_MACROS' \
    122 	'-DANDROID' \
    123 	'-D__GNU_SOURCE=1' \
    124 	'-DUSE_STLPORT=1' \
    125 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    126 	'-DCHROME_BUILD_ID=""' \
    127 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    128 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    129 	'-D_DEBUG'
    130 
    131 
    132 # Include paths placed before CFLAGS/CPPFLAGS
    133 LOCAL_C_INCLUDES_Debug := \
    134 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    135 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    136 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    137 	$(gyp_shared_intermediate_dir) \
    138 	$(gyp_intermediate_dir) \
    139 	$(gyp_shared_intermediate_dir)/ui \
    140 	$(gyp_shared_intermediate_dir)/webkit \
    141 	$(LOCAL_PATH) \
    142 	$(LOCAL_PATH)/skia/config \
    143 	$(LOCAL_PATH)/third_party/skia/src/core \
    144 	$(LOCAL_PATH)/third_party/skia/include/core \
    145 	$(LOCAL_PATH)/third_party/skia/include/effects \
    146 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    147 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    148 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    149 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    150 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    151 	$(LOCAL_PATH)/third_party/skia/include/ports \
    152 	$(LOCAL_PATH)/third_party/skia/include/utils \
    153 	$(LOCAL_PATH)/skia/ext \
    154 	$(PWD)/external/icu/icu4c/source/common \
    155 	$(PWD)/external/icu/icu4c/source/i18n \
    156 	$(gyp_shared_intermediate_dir)/ui/ui_resources \
    157 	$(LOCAL_PATH)/third_party/WebKit \
    158 	$(PWD)/frameworks/wilhelm/include \
    159 	$(PWD)/bionic \
    160 	$(PWD)/external/stlport/stlport
    161 
    162 
    163 # Flags passed to only C++ (and not C) files.
    164 LOCAL_CPPFLAGS_Debug := \
    165 	-fno-rtti \
    166 	-fno-threadsafe-statics \
    167 	-fvisibility-inlines-hidden \
    168 	-Wsign-compare \
    169 	-Wno-non-virtual-dtor \
    170 	-Wno-sign-promo
    171 
    172 
    173 LOCAL_FDO_SUPPORT_Debug := false
    174 
    175 # Flags passed to both C and C++ files.
    176 MY_CFLAGS_Release := \
    177 	--param=ssp-buffer-size=4 \
    178 	-Werror \
    179 	-fno-exceptions \
    180 	-fno-strict-aliasing \
    181 	-Wall \
    182 	-Wno-unused-parameter \
    183 	-Wno-missing-field-initializers \
    184 	-fvisibility=hidden \
    185 	-pipe \
    186 	-fPIC \
    187 	-Wno-unused-local-typedefs \
    188 	-msse2 \
    189 	-mfpmath=sse \
    190 	-mmmx \
    191 	-m32 \
    192 	-ffunction-sections \
    193 	-funwind-tables \
    194 	-g \
    195 	-fno-short-enums \
    196 	-finline-limit=64 \
    197 	-Wa,--noexecstack \
    198 	-U_FORTIFY_SOURCE \
    199 	-Wno-extra \
    200 	-Wno-ignored-qualifiers \
    201 	-Wno-type-limits \
    202 	-Wno-unused-but-set-variable \
    203 	-fno-stack-protector \
    204 	-Os \
    205 	-fno-ident \
    206 	-fdata-sections \
    207 	-ffunction-sections \
    208 	-fomit-frame-pointer \
    209 	-funwind-tables
    210 
    211 MY_DEFS_Release := \
    212 	'-DV8_DEPRECATION_WARNINGS' \
    213 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    214 	'-D_FILE_OFFSET_BITS=64' \
    215 	'-DNO_TCMALLOC' \
    216 	'-DDISABLE_NACL' \
    217 	'-DCHROMIUM_BUILD' \
    218 	'-DUSE_LIBJPEG_TURBO=1' \
    219 	'-DENABLE_WEBRTC=1' \
    220 	'-DUSE_PROPRIETARY_CODECS' \
    221 	'-DENABLE_BROWSER_CDMS' \
    222 	'-DENABLE_CONFIGURATION_POLICY' \
    223 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    224 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    225 	'-DENABLE_EGLIMAGE=1' \
    226 	'-DCLD_VERSION=1' \
    227 	'-DENABLE_PRINTING=1' \
    228 	'-DENABLE_MANAGED_USERS=1' \
    229 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    230 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    231 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    232 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    233 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    234 	'-DVIDEO_HOLE=1' \
    235 	'-DWEBKIT_COMMON_IMPLEMENTATION' \
    236 	'-DSK_ENABLE_INST_COUNT=0' \
    237 	'-DSK_SUPPORT_GPU=1' \
    238 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    239 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    240 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    241 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    242 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    243 	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
    244 	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
    245 	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
    246 	'-DSK_SUPPORT_LEGACY_N32_NAME' \
    247 	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
    248 	'-DSK_IGNORE_ETC1_SUPPORT' \
    249 	'-DSK_IGNORE_GPU_DITHER' \
    250 	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
    251 	'-DSK_BUILD_FOR_ANDROID' \
    252 	'-DSK_USE_POSIX_THREADS' \
    253 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    254 	'-DU_USING_ICU_NAMESPACE=0' \
    255 	'-DUSE_OPENSSL=1' \
    256 	'-DUSE_OPENSSL_CERTS=1' \
    257 	'-D__STDC_CONSTANT_MACROS' \
    258 	'-D__STDC_FORMAT_MACROS' \
    259 	'-DANDROID' \
    260 	'-D__GNU_SOURCE=1' \
    261 	'-DUSE_STLPORT=1' \
    262 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    263 	'-DCHROME_BUILD_ID=""' \
    264 	'-DNDEBUG' \
    265 	'-DNVALGRIND' \
    266 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    267 	'-D_FORTIFY_SOURCE=2'
    268 
    269 
    270 # Include paths placed before CFLAGS/CPPFLAGS
    271 LOCAL_C_INCLUDES_Release := \
    272 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    273 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    274 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    275 	$(gyp_shared_intermediate_dir) \
    276 	$(gyp_intermediate_dir) \
    277 	$(gyp_shared_intermediate_dir)/ui \
    278 	$(gyp_shared_intermediate_dir)/webkit \
    279 	$(LOCAL_PATH) \
    280 	$(LOCAL_PATH)/skia/config \
    281 	$(LOCAL_PATH)/third_party/skia/src/core \
    282 	$(LOCAL_PATH)/third_party/skia/include/core \
    283 	$(LOCAL_PATH)/third_party/skia/include/effects \
    284 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    285 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    286 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    287 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    288 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    289 	$(LOCAL_PATH)/third_party/skia/include/ports \
    290 	$(LOCAL_PATH)/third_party/skia/include/utils \
    291 	$(LOCAL_PATH)/skia/ext \
    292 	$(PWD)/external/icu/icu4c/source/common \
    293 	$(PWD)/external/icu/icu4c/source/i18n \
    294 	$(gyp_shared_intermediate_dir)/ui/ui_resources \
    295 	$(LOCAL_PATH)/third_party/WebKit \
    296 	$(PWD)/frameworks/wilhelm/include \
    297 	$(PWD)/bionic \
    298 	$(PWD)/external/stlport/stlport
    299 
    300 
    301 # Flags passed to only C++ (and not C) files.
    302 LOCAL_CPPFLAGS_Release := \
    303 	-fno-rtti \
    304 	-fno-threadsafe-statics \
    305 	-fvisibility-inlines-hidden \
    306 	-Wsign-compare \
    307 	-Wno-non-virtual-dtor \
    308 	-Wno-sign-promo
    309 
    310 
    311 LOCAL_FDO_SUPPORT_Release := false
    312 
    313 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    314 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    315 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    316 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    317 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    318 ### Rules for final target.
    319 
    320 LOCAL_LDFLAGS_Debug := \
    321 	-Wl,-z,now \
    322 	-Wl,-z,relro \
    323 	-Wl,--fatal-warnings \
    324 	-Wl,-z,noexecstack \
    325 	-fPIC \
    326 	-m32 \
    327 	-fuse-ld=gold \
    328 	-nostdlib \
    329 	-Wl,--no-undefined \
    330 	-Wl,--exclude-libs=ALL \
    331 	-Wl,--warn-shared-textrel \
    332 	-Wl,-O1 \
    333 	-Wl,--as-needed
    334 
    335 
    336 LOCAL_LDFLAGS_Release := \
    337 	-Wl,-z,now \
    338 	-Wl,-z,relro \
    339 	-Wl,--fatal-warnings \
    340 	-Wl,-z,noexecstack \
    341 	-fPIC \
    342 	-m32 \
    343 	-fuse-ld=gold \
    344 	-nostdlib \
    345 	-Wl,--no-undefined \
    346 	-Wl,--exclude-libs=ALL \
    347 	-Wl,-O1 \
    348 	-Wl,--as-needed \
    349 	-Wl,--gc-sections \
    350 	-Wl,--warn-shared-textrel
    351 
    352 
    353 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    354 
    355 LOCAL_STATIC_LIBRARIES := \
    356 	skia_skia_library_gyp \
    357 	ui_base_ui_base_gyp
    358 
    359 # Enable grouping to fix circular references
    360 LOCAL_GROUP_STATIC_LIBRARIES := true
    361 
    362 LOCAL_SHARED_LIBRARIES := \
    363 	libstlport \
    364 	libdl
    365 
    366 # Add target alias to "gyp_all_modules" target.
    367 .PHONY: gyp_all_modules
    368 gyp_all_modules: webkit_common_webkit_common_gyp
    369 
    370 # Alias gyp target name.
    371 .PHONY: webkit_common
    372 webkit_common: webkit_common_webkit_common_gyp
    373 
    374 include $(BUILD_STATIC_LIBRARY)
    375