Home | History | Annotate | Download | only in wtf
      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 := third_party_WebKit_Source_wtf_wtf_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,third_party_WebKit_Source_wtf_wtf_config_gyp)/wtf_config.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 
     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 $(gyp_intermediate_dir)/bignum-dtoa.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/bignum-dtoa.cc
     24 	mkdir -p $(@D); cp $< $@
     25 $(gyp_intermediate_dir)/bignum.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/bignum.cc
     26 	mkdir -p $(@D); cp $< $@
     27 $(gyp_intermediate_dir)/cached-powers.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/cached-powers.cc
     28 	mkdir -p $(@D); cp $< $@
     29 $(gyp_intermediate_dir)/diy-fp.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/diy-fp.cc
     30 	mkdir -p $(@D); cp $< $@
     31 $(gyp_intermediate_dir)/double-conversion.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/double-conversion.cc
     32 	mkdir -p $(@D); cp $< $@
     33 $(gyp_intermediate_dir)/fast-dtoa.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/fast-dtoa.cc
     34 	mkdir -p $(@D); cp $< $@
     35 $(gyp_intermediate_dir)/fixed-dtoa.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/fixed-dtoa.cc
     36 	mkdir -p $(@D); cp $< $@
     37 $(gyp_intermediate_dir)/strtod.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/strtod.cc
     38 	mkdir -p $(@D); cp $< $@
     39 LOCAL_GENERATED_SOURCES := \
     40 	$(gyp_intermediate_dir)/bignum-dtoa.cpp \
     41 	$(gyp_intermediate_dir)/bignum.cpp \
     42 	$(gyp_intermediate_dir)/cached-powers.cpp \
     43 	$(gyp_intermediate_dir)/diy-fp.cpp \
     44 	$(gyp_intermediate_dir)/double-conversion.cpp \
     45 	$(gyp_intermediate_dir)/fast-dtoa.cpp \
     46 	$(gyp_intermediate_dir)/fixed-dtoa.cpp \
     47 	$(gyp_intermediate_dir)/strtod.cpp
     48 
     49 GYP_COPIED_SOURCE_ORIGIN_DIRS := \
     50 	$(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa
     51 
     52 LOCAL_SRC_FILES := \
     53 	third_party/WebKit/Source/wtf/ArrayBuffer.cpp \
     54 	third_party/WebKit/Source/wtf/ArrayBufferContents.cpp \
     55 	third_party/WebKit/Source/wtf/ArrayBufferView.cpp \
     56 	third_party/WebKit/Source/wtf/Assertions.cpp \
     57 	third_party/WebKit/Source/wtf/BitVector.cpp \
     58 	third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.cpp \
     59 	third_party/WebKit/Source/wtf/CurrentTime.cpp \
     60 	third_party/WebKit/Source/wtf/DataLog.cpp \
     61 	third_party/WebKit/Source/wtf/DateMath.cpp \
     62 	third_party/WebKit/Source/wtf/DecimalNumber.cpp \
     63 	third_party/WebKit/Source/wtf/DynamicAnnotations.cpp \
     64 	third_party/WebKit/Source/wtf/FastMalloc.cpp \
     65 	third_party/WebKit/Source/wtf/FilePrintStream.cpp \
     66 	third_party/WebKit/Source/wtf/GregorianDateTime.cpp \
     67 	third_party/WebKit/Source/wtf/HashTable.cpp \
     68 	third_party/WebKit/Source/wtf/MainThread.cpp \
     69 	third_party/WebKit/Source/wtf/NullPtr.cpp \
     70 	third_party/WebKit/Source/wtf/NumberOfCores.cpp \
     71 	third_party/WebKit/Source/wtf/PageAllocator.cpp \
     72 	third_party/WebKit/Source/wtf/ParallelJobsGeneric.cpp \
     73 	third_party/WebKit/Source/wtf/PartitionAlloc.cpp \
     74 	third_party/WebKit/Source/wtf/PrintStream.cpp \
     75 	third_party/WebKit/Source/wtf/RandomNumber.cpp \
     76 	third_party/WebKit/Source/wtf/RefCountedLeakCounter.cpp \
     77 	third_party/WebKit/Source/wtf/SHA1.cpp \
     78 	third_party/WebKit/Source/wtf/SizeLimits.cpp \
     79 	third_party/WebKit/Source/wtf/ThreadIdentifierDataPthreads.cpp \
     80 	third_party/WebKit/Source/wtf/Threading.cpp \
     81 	third_party/WebKit/Source/wtf/ThreadingPthreads.cpp \
     82 	third_party/WebKit/Source/wtf/TypeTraits.cpp \
     83 	third_party/WebKit/Source/wtf/WTF.cpp \
     84 	third_party/WebKit/Source/wtf/WTFThreadData.cpp \
     85 	third_party/WebKit/Source/wtf/dtoa.cpp \
     86 	third_party/WebKit/Source/wtf/text/AtomicString.cpp \
     87 	third_party/WebKit/Source/wtf/text/Base64.cpp \
     88 	third_party/WebKit/Source/wtf/text/CString.cpp \
     89 	third_party/WebKit/Source/wtf/text/StringBuilder.cpp \
     90 	third_party/WebKit/Source/wtf/text/StringImpl.cpp \
     91 	third_party/WebKit/Source/wtf/text/StringStatics.cpp \
     92 	third_party/WebKit/Source/wtf/text/TextCodec.cpp \
     93 	third_party/WebKit/Source/wtf/text/TextCodecICU.cpp \
     94 	third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp \
     95 	third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp \
     96 	third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp \
     97 	third_party/WebKit/Source/wtf/text/TextCodecUserDefined.cpp \
     98 	third_party/WebKit/Source/wtf/text/TextEncoding.cpp \
     99 	third_party/WebKit/Source/wtf/text/TextEncodingRegistry.cpp \
    100 	third_party/WebKit/Source/wtf/text/TextPosition.cpp \
    101 	third_party/WebKit/Source/wtf/text/WTFString.cpp \
    102 	third_party/WebKit/Source/wtf/unicode/UTF8.cpp \
    103 	third_party/WebKit/Source/wtf/unicode/icu/CollatorICU.cpp
    104 
    105 
    106 # Flags passed to both C and C++ files.
    107 MY_CFLAGS_Debug := \
    108 	-fstack-protector \
    109 	--param=ssp-buffer-size=4 \
    110 	-fno-exceptions \
    111 	-fno-strict-aliasing \
    112 	-Wno-unused-parameter \
    113 	-Wno-missing-field-initializers \
    114 	-fvisibility=hidden \
    115 	-pipe \
    116 	-fPIC \
    117 	-Wno-format \
    118 	-fno-tree-sra \
    119 	-fuse-ld=gold \
    120 	-Wno-psabi \
    121 	-ffunction-sections \
    122 	-funwind-tables \
    123 	-g \
    124 	-fstack-protector \
    125 	-fno-short-enums \
    126 	-finline-limit=64 \
    127 	-Wa,--noexecstack \
    128 	-U_FORTIFY_SOURCE \
    129 	-Wno-extra \
    130 	-Wno-ignored-qualifiers \
    131 	-Wno-type-limits \
    132 	-Wno-address \
    133 	-Wno-format-security \
    134 	-Wno-return-type \
    135 	-Wno-sequence-point \
    136 	-Os \
    137 	-g \
    138 	-fomit-frame-pointer \
    139 	-fdata-sections \
    140 	-ffunction-sections
    141 
    142 MY_DEFS_Debug := \
    143 	'-DANGLE_DX11' \
    144 	'-D_FILE_OFFSET_BITS=64' \
    145 	'-DNO_TCMALLOC' \
    146 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    147 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    148 	'-DDISABLE_NACL' \
    149 	'-DCHROMIUM_BUILD' \
    150 	'-DUSE_LIBJPEG_TURBO=1' \
    151 	'-DUSE_PROPRIETARY_CODECS' \
    152 	'-DENABLE_CONFIGURATION_POLICY' \
    153 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    154 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    155 	'-DENABLE_GPU=1' \
    156 	'-DUSE_OPENSSL=1' \
    157 	'-DENABLE_EGLIMAGE=1' \
    158 	'-DENABLE_PRINTING=1' \
    159 	'-DWTF_IMPLEMENTATION=1' \
    160 	'-DENABLE_CSS3_TEXT=0' \
    161 	'-DENABLE_CSS_EXCLUSIONS=1' \
    162 	'-DENABLE_CSS_REGIONS=1' \
    163 	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
    164 	'-DENABLE_ENCRYPTED_MEDIA_V2=1' \
    165 	'-DENABLE_SVG_FONTS=1' \
    166 	'-DENABLE_TOUCH_ICON_LOADING=1' \
    167 	'-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
    168 	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
    169 	'-DENABLE_CALENDAR_PICKER=0' \
    170 	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
    171 	'-DENABLE_INPUT_SPEECH=0' \
    172 	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
    173 	'-DENABLE_MEDIA_CAPTURE=1' \
    174 	'-DENABLE_NOTIFICATIONS=0' \
    175 	'-DENABLE_ORIENTATION_EVENTS=1' \
    176 	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
    177 	'-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \
    178 	'-DENABLE_OPENTYPE_VERTICAL=1' \
    179 	'-DWTF_USE_HARFBUZZ=1' \
    180 	'-DU_USING_ICU_NAMESPACE=0' \
    181 	'-DANDROID' \
    182 	'-D__GNU_SOURCE=1' \
    183 	'-DUSE_STLPORT=1' \
    184 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    185 	'-DCHROME_BUILD_ID=""' \
    186 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    187 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    188 	'-D_DEBUG'
    189 
    190 
    191 # Include paths placed before CFLAGS/CPPFLAGS
    192 LOCAL_C_INCLUDES_Debug := \
    193 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    194 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    195 	$(LOCAL_PATH)/third_party/WebKit/Source \
    196 	$(PWD)/external/icu4c/common \
    197 	$(PWD)/external/icu4c/i18n \
    198 	$(PWD)/frameworks/wilhelm/include \
    199 	$(PWD)/bionic \
    200 	$(PWD)/external/stlport/stlport
    201 
    202 
    203 # Flags passed to only C++ (and not C) files.
    204 LOCAL_CPPFLAGS_Debug := \
    205 	-Wno-c++0x-compat \
    206 	-fno-rtti \
    207 	-fno-threadsafe-statics \
    208 	-fvisibility-inlines-hidden \
    209 	-Wno-deprecated \
    210 	-Wno-abi \
    211 	-Wno-error=c++0x-compat \
    212 	-Wno-non-virtual-dtor \
    213 	-Wno-sign-promo \
    214 	-Wno-non-virtual-dtor
    215 
    216 
    217 # Flags passed to both C and C++ files.
    218 MY_CFLAGS_Release := \
    219 	-fstack-protector \
    220 	--param=ssp-buffer-size=4 \
    221 	-fno-exceptions \
    222 	-fno-strict-aliasing \
    223 	-Wno-unused-parameter \
    224 	-Wno-missing-field-initializers \
    225 	-fvisibility=hidden \
    226 	-pipe \
    227 	-fPIC \
    228 	-Wno-format \
    229 	-fno-tree-sra \
    230 	-fuse-ld=gold \
    231 	-Wno-psabi \
    232 	-ffunction-sections \
    233 	-funwind-tables \
    234 	-g \
    235 	-fstack-protector \
    236 	-fno-short-enums \
    237 	-finline-limit=64 \
    238 	-Wa,--noexecstack \
    239 	-U_FORTIFY_SOURCE \
    240 	-Wno-extra \
    241 	-Wno-ignored-qualifiers \
    242 	-Wno-type-limits \
    243 	-Wno-address \
    244 	-Wno-format-security \
    245 	-Wno-return-type \
    246 	-Wno-sequence-point \
    247 	-Os \
    248 	-fno-ident \
    249 	-fdata-sections \
    250 	-ffunction-sections \
    251 	-fomit-frame-pointer
    252 
    253 MY_DEFS_Release := \
    254 	'-DANGLE_DX11' \
    255 	'-D_FILE_OFFSET_BITS=64' \
    256 	'-DNO_TCMALLOC' \
    257 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    258 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    259 	'-DDISABLE_NACL' \
    260 	'-DCHROMIUM_BUILD' \
    261 	'-DUSE_LIBJPEG_TURBO=1' \
    262 	'-DUSE_PROPRIETARY_CODECS' \
    263 	'-DENABLE_CONFIGURATION_POLICY' \
    264 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    265 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    266 	'-DENABLE_GPU=1' \
    267 	'-DUSE_OPENSSL=1' \
    268 	'-DENABLE_EGLIMAGE=1' \
    269 	'-DENABLE_PRINTING=1' \
    270 	'-DWTF_IMPLEMENTATION=1' \
    271 	'-DENABLE_CSS3_TEXT=0' \
    272 	'-DENABLE_CSS_EXCLUSIONS=1' \
    273 	'-DENABLE_CSS_REGIONS=1' \
    274 	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
    275 	'-DENABLE_ENCRYPTED_MEDIA_V2=1' \
    276 	'-DENABLE_SVG_FONTS=1' \
    277 	'-DENABLE_TOUCH_ICON_LOADING=1' \
    278 	'-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
    279 	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
    280 	'-DENABLE_CALENDAR_PICKER=0' \
    281 	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
    282 	'-DENABLE_INPUT_SPEECH=0' \
    283 	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
    284 	'-DENABLE_MEDIA_CAPTURE=1' \
    285 	'-DENABLE_NOTIFICATIONS=0' \
    286 	'-DENABLE_ORIENTATION_EVENTS=1' \
    287 	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
    288 	'-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \
    289 	'-DENABLE_OPENTYPE_VERTICAL=1' \
    290 	'-DWTF_USE_HARFBUZZ=1' \
    291 	'-DU_USING_ICU_NAMESPACE=0' \
    292 	'-DANDROID' \
    293 	'-D__GNU_SOURCE=1' \
    294 	'-DUSE_STLPORT=1' \
    295 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    296 	'-DCHROME_BUILD_ID=""' \
    297 	'-DNDEBUG' \
    298 	'-DNVALGRIND' \
    299 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    300 
    301 
    302 # Include paths placed before CFLAGS/CPPFLAGS
    303 LOCAL_C_INCLUDES_Release := \
    304 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    305 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    306 	$(LOCAL_PATH)/third_party/WebKit/Source \
    307 	$(PWD)/external/icu4c/common \
    308 	$(PWD)/external/icu4c/i18n \
    309 	$(PWD)/frameworks/wilhelm/include \
    310 	$(PWD)/bionic \
    311 	$(PWD)/external/stlport/stlport
    312 
    313 
    314 # Flags passed to only C++ (and not C) files.
    315 LOCAL_CPPFLAGS_Release := \
    316 	-Wno-c++0x-compat \
    317 	-fno-rtti \
    318 	-fno-threadsafe-statics \
    319 	-fvisibility-inlines-hidden \
    320 	-Wno-deprecated \
    321 	-Wno-abi \
    322 	-Wno-error=c++0x-compat \
    323 	-Wno-non-virtual-dtor \
    324 	-Wno-sign-promo \
    325 	-Wno-non-virtual-dtor
    326 
    327 
    328 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    329 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    330 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    331 ### Rules for final target.
    332 
    333 LOCAL_LDFLAGS_Debug := \
    334 	-Wl,-z,now \
    335 	-Wl,-z,relro \
    336 	-Wl,-z,noexecstack \
    337 	-fPIC \
    338 	-Wl,-z,relro \
    339 	-Wl,-z,now \
    340 	-fuse-ld=gold \
    341 	-nostdlib \
    342 	-Wl,--no-undefined \
    343 	-Wl,--exclude-libs=ALL \
    344 	-Wl,--icf=safe \
    345 	-Wl,--fatal-warnings \
    346 	-Wl,--gc-sections \
    347 	-Wl,--warn-shared-textrel \
    348 	-Wl,-O1 \
    349 	-Wl,--as-needed
    350 
    351 
    352 LOCAL_LDFLAGS_Release := \
    353 	-Wl,-z,now \
    354 	-Wl,-z,relro \
    355 	-Wl,-z,noexecstack \
    356 	-fPIC \
    357 	-Wl,-z,relro \
    358 	-Wl,-z,now \
    359 	-fuse-ld=gold \
    360 	-nostdlib \
    361 	-Wl,--no-undefined \
    362 	-Wl,--exclude-libs=ALL \
    363 	-Wl,--icf=safe \
    364 	-Wl,-O1 \
    365 	-Wl,--as-needed \
    366 	-Wl,--gc-sections \
    367 	-Wl,--fatal-warnings \
    368 	-Wl,--warn-shared-textrel
    369 
    370 
    371 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    372 
    373 LOCAL_STATIC_LIBRARIES :=
    374 
    375 # Enable grouping to fix circular references
    376 LOCAL_GROUP_STATIC_LIBRARIES := true
    377 
    378 LOCAL_SHARED_LIBRARIES := \
    379 	libstlport \
    380 	libdl
    381 
    382 # Add target alias to "gyp_all_modules" target.
    383 .PHONY: gyp_all_modules
    384 gyp_all_modules: third_party_WebKit_Source_wtf_wtf_gyp
    385 
    386 # Alias gyp target name.
    387 .PHONY: wtf
    388 wtf: third_party_WebKit_Source_wtf_wtf_gyp
    389 
    390 include $(BUILD_STATIC_LIBRARY)
    391