Home | History | Annotate | Download | only in renderer
      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_renderer_webkit_renderer_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,GYP,third_party_icu_icuuc_gyp)/icuuc.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 	webkit/renderer/cpp_bound_class.cc \
     30 	webkit/renderer/cpp_variant.cc
     31 
     32 
     33 # Flags passed to both C and C++ files.
     34 MY_CFLAGS_Debug := \
     35 	--param=ssp-buffer-size=4 \
     36 	-fno-exceptions \
     37 	-fno-strict-aliasing \
     38 	-Wno-unused-parameter \
     39 	-Wno-missing-field-initializers \
     40 	-fvisibility=hidden \
     41 	-pipe \
     42 	-fPIC \
     43 	-Wno-format \
     44 	-m32 \
     45 	-mmmx \
     46 	-march=pentium4 \
     47 	-msse2 \
     48 	-mfpmath=sse \
     49 	-fuse-ld=gold \
     50 	-ffunction-sections \
     51 	-funwind-tables \
     52 	-g \
     53 	-fno-short-enums \
     54 	-finline-limit=64 \
     55 	-Wa,--noexecstack \
     56 	-U_FORTIFY_SOURCE \
     57 	-Wno-extra \
     58 	-Wno-ignored-qualifiers \
     59 	-Wno-type-limits \
     60 	-fno-stack-protector \
     61 	-Wno-address \
     62 	-Wno-format-security \
     63 	-Wno-return-type \
     64 	-Wno-sequence-point \
     65 	-Os \
     66 	-g \
     67 	-fomit-frame-pointer \
     68 	-fdata-sections \
     69 	-ffunction-sections
     70 
     71 MY_DEFS_Debug := \
     72 	'-DV8_DEPRECATION_WARNINGS' \
     73 	'-D_FILE_OFFSET_BITS=64' \
     74 	'-DNO_TCMALLOC' \
     75 	'-DDISABLE_NACL' \
     76 	'-DCHROMIUM_BUILD' \
     77 	'-DUSE_LIBJPEG_TURBO=1' \
     78 	'-DUSE_PROPRIETARY_CODECS' \
     79 	'-DENABLE_CONFIGURATION_POLICY' \
     80 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     81 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     82 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     83 	'-DUSE_OPENSSL=1' \
     84 	'-DENABLE_EGLIMAGE=1' \
     85 	'-DCLD_VERSION=1' \
     86 	'-DENABLE_PRINTING=1' \
     87 	'-DENABLE_MANAGED_USERS=1' \
     88 	'-DWEBKIT_RENDERER_IMPLEMENTATION' \
     89 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
     90 	'-DCHROME_PNG_WRITE_SUPPORT' \
     91 	'-DPNG_USER_CONFIG' \
     92 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
     93 	'-DUSE_SYSTEM_LIBJPEG' \
     94 	'-DU_USING_ICU_NAMESPACE=0' \
     95 	'-DANDROID' \
     96 	'-D__GNU_SOURCE=1' \
     97 	'-DUSE_STLPORT=1' \
     98 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     99 	'-DCHROME_BUILD_ID=""' \
    100 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    101 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    102 	'-D_DEBUG'
    103 
    104 
    105 # Include paths placed before CFLAGS/CPPFLAGS
    106 LOCAL_C_INCLUDES_Debug := \
    107 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    108 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    109 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    110 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    111 	$(LOCAL_PATH) \
    112 	$(LOCAL_PATH)/skia/config \
    113 	$(LOCAL_PATH)/third_party/WebKit/Source \
    114 	$(LOCAL_PATH)/third_party/khronos \
    115 	$(LOCAL_PATH)/gpu \
    116 	$(PWD)/external/skia/include \
    117 	$(PWD)/external/skia/include/core \
    118 	$(LOCAL_PATH)/third_party/skia/src/core \
    119 	$(LOCAL_PATH)/skia/ext \
    120 	$(LOCAL_PATH)/third_party/WebKit \
    121 	$(LOCAL_PATH)/third_party/npapi \
    122 	$(LOCAL_PATH)/third_party/npapi/bindings \
    123 	$(LOCAL_PATH)/v8/include \
    124 	$(LOCAL_PATH)/third_party/libpng \
    125 	$(LOCAL_PATH)/third_party/zlib \
    126 	$(LOCAL_PATH)/third_party/libwebp \
    127 	$(LOCAL_PATH)/third_party/ots/include \
    128 	$(LOCAL_PATH)/third_party/qcms/src \
    129 	$(LOCAL_PATH)/third_party/iccjpeg \
    130 	$(PWD)/external/jpeg \
    131 	$(PWD)/external/icu4c/common \
    132 	$(PWD)/external/icu4c/i18n \
    133 	$(PWD)/frameworks/wilhelm/include \
    134 	$(PWD)/bionic \
    135 	$(PWD)/external/stlport/stlport
    136 
    137 
    138 # Flags passed to only C++ (and not C) files.
    139 LOCAL_CPPFLAGS_Debug := \
    140 	-fno-rtti \
    141 	-fno-threadsafe-statics \
    142 	-fvisibility-inlines-hidden \
    143 	-Wno-deprecated \
    144 	-Wno-error=c++0x-compat \
    145 	-Wno-non-virtual-dtor \
    146 	-Wno-sign-promo \
    147 	-Wno-non-virtual-dtor
    148 
    149 
    150 # Flags passed to both C and C++ files.
    151 MY_CFLAGS_Release := \
    152 	--param=ssp-buffer-size=4 \
    153 	-fno-exceptions \
    154 	-fno-strict-aliasing \
    155 	-Wno-unused-parameter \
    156 	-Wno-missing-field-initializers \
    157 	-fvisibility=hidden \
    158 	-pipe \
    159 	-fPIC \
    160 	-Wno-format \
    161 	-m32 \
    162 	-mmmx \
    163 	-march=pentium4 \
    164 	-msse2 \
    165 	-mfpmath=sse \
    166 	-fuse-ld=gold \
    167 	-ffunction-sections \
    168 	-funwind-tables \
    169 	-g \
    170 	-fno-short-enums \
    171 	-finline-limit=64 \
    172 	-Wa,--noexecstack \
    173 	-U_FORTIFY_SOURCE \
    174 	-Wno-extra \
    175 	-Wno-ignored-qualifiers \
    176 	-Wno-type-limits \
    177 	-fno-stack-protector \
    178 	-Wno-address \
    179 	-Wno-format-security \
    180 	-Wno-return-type \
    181 	-Wno-sequence-point \
    182 	-Os \
    183 	-fno-ident \
    184 	-fdata-sections \
    185 	-ffunction-sections \
    186 	-fomit-frame-pointer \
    187 	-fno-unwind-tables \
    188 	-fno-asynchronous-unwind-tables
    189 
    190 MY_DEFS_Release := \
    191 	'-DV8_DEPRECATION_WARNINGS' \
    192 	'-D_FILE_OFFSET_BITS=64' \
    193 	'-DNO_TCMALLOC' \
    194 	'-DDISABLE_NACL' \
    195 	'-DCHROMIUM_BUILD' \
    196 	'-DUSE_LIBJPEG_TURBO=1' \
    197 	'-DUSE_PROPRIETARY_CODECS' \
    198 	'-DENABLE_CONFIGURATION_POLICY' \
    199 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    200 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    201 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    202 	'-DUSE_OPENSSL=1' \
    203 	'-DENABLE_EGLIMAGE=1' \
    204 	'-DCLD_VERSION=1' \
    205 	'-DENABLE_PRINTING=1' \
    206 	'-DENABLE_MANAGED_USERS=1' \
    207 	'-DWEBKIT_RENDERER_IMPLEMENTATION' \
    208 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    209 	'-DCHROME_PNG_WRITE_SUPPORT' \
    210 	'-DPNG_USER_CONFIG' \
    211 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    212 	'-DUSE_SYSTEM_LIBJPEG' \
    213 	'-DU_USING_ICU_NAMESPACE=0' \
    214 	'-DANDROID' \
    215 	'-D__GNU_SOURCE=1' \
    216 	'-DUSE_STLPORT=1' \
    217 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    218 	'-DCHROME_BUILD_ID=""' \
    219 	'-DNDEBUG' \
    220 	'-DNVALGRIND' \
    221 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    222 
    223 
    224 # Include paths placed before CFLAGS/CPPFLAGS
    225 LOCAL_C_INCLUDES_Release := \
    226 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    227 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    228 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    229 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    230 	$(LOCAL_PATH) \
    231 	$(LOCAL_PATH)/skia/config \
    232 	$(LOCAL_PATH)/third_party/WebKit/Source \
    233 	$(LOCAL_PATH)/third_party/khronos \
    234 	$(LOCAL_PATH)/gpu \
    235 	$(PWD)/external/skia/include \
    236 	$(PWD)/external/skia/include/core \
    237 	$(LOCAL_PATH)/third_party/skia/src/core \
    238 	$(LOCAL_PATH)/skia/ext \
    239 	$(LOCAL_PATH)/third_party/WebKit \
    240 	$(LOCAL_PATH)/third_party/npapi \
    241 	$(LOCAL_PATH)/third_party/npapi/bindings \
    242 	$(LOCAL_PATH)/v8/include \
    243 	$(LOCAL_PATH)/third_party/libpng \
    244 	$(LOCAL_PATH)/third_party/zlib \
    245 	$(LOCAL_PATH)/third_party/libwebp \
    246 	$(LOCAL_PATH)/third_party/ots/include \
    247 	$(LOCAL_PATH)/third_party/qcms/src \
    248 	$(LOCAL_PATH)/third_party/iccjpeg \
    249 	$(PWD)/external/jpeg \
    250 	$(PWD)/external/icu4c/common \
    251 	$(PWD)/external/icu4c/i18n \
    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 	-fno-rtti \
    260 	-fno-threadsafe-statics \
    261 	-fvisibility-inlines-hidden \
    262 	-Wno-deprecated \
    263 	-Wno-error=c++0x-compat \
    264 	-Wno-non-virtual-dtor \
    265 	-Wno-sign-promo \
    266 	-Wno-non-virtual-dtor
    267 
    268 
    269 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    270 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    271 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    272 ### Rules for final target.
    273 
    274 LOCAL_LDFLAGS_Debug := \
    275 	-Wl,-z,now \
    276 	-Wl,-z,relro \
    277 	-Wl,-z,noexecstack \
    278 	-fPIC \
    279 	-m32 \
    280 	-fuse-ld=gold \
    281 	-nostdlib \
    282 	-Wl,--no-undefined \
    283 	-Wl,--exclude-libs=ALL \
    284 	-Wl,--fatal-warnings \
    285 	-Wl,--gc-sections \
    286 	-Wl,--warn-shared-textrel \
    287 	-Wl,-O1 \
    288 	-Wl,--as-needed
    289 
    290 
    291 LOCAL_LDFLAGS_Release := \
    292 	-Wl,-z,now \
    293 	-Wl,-z,relro \
    294 	-Wl,-z,noexecstack \
    295 	-fPIC \
    296 	-m32 \
    297 	-fuse-ld=gold \
    298 	-nostdlib \
    299 	-Wl,--no-undefined \
    300 	-Wl,--exclude-libs=ALL \
    301 	-Wl,-O1 \
    302 	-Wl,--as-needed \
    303 	-Wl,--gc-sections \
    304 	-Wl,--fatal-warnings \
    305 	-Wl,--warn-shared-textrel
    306 
    307 
    308 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    309 
    310 LOCAL_STATIC_LIBRARIES :=
    311 
    312 # Enable grouping to fix circular references
    313 LOCAL_GROUP_STATIC_LIBRARIES := true
    314 
    315 LOCAL_SHARED_LIBRARIES := \
    316 	libskia \
    317 	libstlport \
    318 	libdl
    319 
    320 # Add target alias to "gyp_all_modules" target.
    321 .PHONY: gyp_all_modules
    322 gyp_all_modules: webkit_renderer_webkit_renderer_gyp
    323 
    324 # Alias gyp target name.
    325 .PHONY: webkit_renderer
    326 webkit_renderer: webkit_renderer_webkit_renderer_gyp
    327 
    328 include $(BUILD_STATIC_LIBRARY)
    329