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 	--param=ssp-buffer-size=4 \
    109 	-fno-exceptions \
    110 	-fno-strict-aliasing \
    111 	-Wno-unused-parameter \
    112 	-Wno-missing-field-initializers \
    113 	-fvisibility=hidden \
    114 	-pipe \
    115 	-fPIC \
    116 	-Wno-format \
    117 	-m32 \
    118 	-mmmx \
    119 	-march=pentium4 \
    120 	-msse2 \
    121 	-mfpmath=sse \
    122 	-fuse-ld=gold \
    123 	-ffunction-sections \
    124 	-funwind-tables \
    125 	-g \
    126 	-fno-short-enums \
    127 	-finline-limit=64 \
    128 	-Wa,--noexecstack \
    129 	-U_FORTIFY_SOURCE \
    130 	-Wno-extra \
    131 	-Wno-ignored-qualifiers \
    132 	-Wno-type-limits \
    133 	-Wno-address \
    134 	-Wno-format-security \
    135 	-Wno-return-type \
    136 	-Wno-sequence-point \
    137 	-fno-stack-protector \
    138 	-Os \
    139 	-g \
    140 	-fomit-frame-pointer \
    141 	-fdata-sections \
    142 	-ffunction-sections
    143 
    144 MY_DEFS_Debug := \
    145 	'-DANGLE_DX11' \
    146 	'-D_FILE_OFFSET_BITS=64' \
    147 	'-DNO_TCMALLOC' \
    148 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    149 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    150 	'-DDISABLE_NACL' \
    151 	'-DCHROMIUM_BUILD' \
    152 	'-DUSE_LIBJPEG_TURBO=1' \
    153 	'-DUSE_PROPRIETARY_CODECS' \
    154 	'-DENABLE_CONFIGURATION_POLICY' \
    155 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    156 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    157 	'-DENABLE_GPU=1' \
    158 	'-DUSE_OPENSSL=1' \
    159 	'-DENABLE_EGLIMAGE=1' \
    160 	'-DENABLE_PRINTING=1' \
    161 	'-DWTF_IMPLEMENTATION=1' \
    162 	'-DENABLE_CSS3_TEXT=0' \
    163 	'-DENABLE_CSS_EXCLUSIONS=1' \
    164 	'-DENABLE_CSS_REGIONS=1' \
    165 	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
    166 	'-DENABLE_ENCRYPTED_MEDIA_V2=1' \
    167 	'-DENABLE_SVG_FONTS=1' \
    168 	'-DENABLE_TOUCH_ICON_LOADING=1' \
    169 	'-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
    170 	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
    171 	'-DENABLE_CALENDAR_PICKER=0' \
    172 	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
    173 	'-DENABLE_INPUT_SPEECH=0' \
    174 	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
    175 	'-DENABLE_MEDIA_CAPTURE=1' \
    176 	'-DENABLE_NOTIFICATIONS=0' \
    177 	'-DENABLE_ORIENTATION_EVENTS=1' \
    178 	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
    179 	'-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \
    180 	'-DENABLE_OPENTYPE_VERTICAL=1' \
    181 	'-DWTF_USE_HARFBUZZ=1' \
    182 	'-DU_USING_ICU_NAMESPACE=0' \
    183 	'-DANDROID' \
    184 	'-D__GNU_SOURCE=1' \
    185 	'-DUSE_STLPORT=1' \
    186 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    187 	'-DCHROME_BUILD_ID=""' \
    188 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    189 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    190 	'-D_DEBUG'
    191 
    192 
    193 # Include paths placed before CFLAGS/CPPFLAGS
    194 LOCAL_C_INCLUDES_Debug := \
    195 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    196 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    197 	$(LOCAL_PATH)/third_party/WebKit/Source \
    198 	$(PWD)/external/icu4c/common \
    199 	$(PWD)/external/icu4c/i18n \
    200 	$(PWD)/frameworks/wilhelm/include \
    201 	$(PWD)/bionic \
    202 	$(PWD)/external/stlport/stlport
    203 
    204 
    205 # Flags passed to only C++ (and not C) files.
    206 LOCAL_CPPFLAGS_Debug := \
    207 	-Wno-c++0x-compat \
    208 	-fno-rtti \
    209 	-fno-threadsafe-statics \
    210 	-fvisibility-inlines-hidden \
    211 	-Wno-deprecated \
    212 	-Wno-error=c++0x-compat \
    213 	-Wno-non-virtual-dtor \
    214 	-Wno-sign-promo \
    215 	-Wno-non-virtual-dtor
    216 
    217 
    218 # Flags passed to both C and C++ files.
    219 MY_CFLAGS_Release := \
    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 	-m32 \
    230 	-mmmx \
    231 	-march=pentium4 \
    232 	-msse2 \
    233 	-mfpmath=sse \
    234 	-fuse-ld=gold \
    235 	-ffunction-sections \
    236 	-funwind-tables \
    237 	-g \
    238 	-fno-short-enums \
    239 	-finline-limit=64 \
    240 	-Wa,--noexecstack \
    241 	-U_FORTIFY_SOURCE \
    242 	-Wno-extra \
    243 	-Wno-ignored-qualifiers \
    244 	-Wno-type-limits \
    245 	-Wno-address \
    246 	-Wno-format-security \
    247 	-Wno-return-type \
    248 	-Wno-sequence-point \
    249 	-fno-stack-protector \
    250 	-Os \
    251 	-fno-ident \
    252 	-fdata-sections \
    253 	-ffunction-sections \
    254 	-fomit-frame-pointer \
    255 	-fno-unwind-tables \
    256 	-fno-asynchronous-unwind-tables
    257 
    258 MY_DEFS_Release := \
    259 	'-DANGLE_DX11' \
    260 	'-D_FILE_OFFSET_BITS=64' \
    261 	'-DNO_TCMALLOC' \
    262 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    263 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    264 	'-DDISABLE_NACL' \
    265 	'-DCHROMIUM_BUILD' \
    266 	'-DUSE_LIBJPEG_TURBO=1' \
    267 	'-DUSE_PROPRIETARY_CODECS' \
    268 	'-DENABLE_CONFIGURATION_POLICY' \
    269 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    270 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    271 	'-DENABLE_GPU=1' \
    272 	'-DUSE_OPENSSL=1' \
    273 	'-DENABLE_EGLIMAGE=1' \
    274 	'-DENABLE_PRINTING=1' \
    275 	'-DWTF_IMPLEMENTATION=1' \
    276 	'-DENABLE_CSS3_TEXT=0' \
    277 	'-DENABLE_CSS_EXCLUSIONS=1' \
    278 	'-DENABLE_CSS_REGIONS=1' \
    279 	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
    280 	'-DENABLE_ENCRYPTED_MEDIA_V2=1' \
    281 	'-DENABLE_SVG_FONTS=1' \
    282 	'-DENABLE_TOUCH_ICON_LOADING=1' \
    283 	'-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
    284 	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
    285 	'-DENABLE_CALENDAR_PICKER=0' \
    286 	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
    287 	'-DENABLE_INPUT_SPEECH=0' \
    288 	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
    289 	'-DENABLE_MEDIA_CAPTURE=1' \
    290 	'-DENABLE_NOTIFICATIONS=0' \
    291 	'-DENABLE_ORIENTATION_EVENTS=1' \
    292 	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
    293 	'-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \
    294 	'-DENABLE_OPENTYPE_VERTICAL=1' \
    295 	'-DWTF_USE_HARFBUZZ=1' \
    296 	'-DU_USING_ICU_NAMESPACE=0' \
    297 	'-DANDROID' \
    298 	'-D__GNU_SOURCE=1' \
    299 	'-DUSE_STLPORT=1' \
    300 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    301 	'-DCHROME_BUILD_ID=""' \
    302 	'-DNDEBUG' \
    303 	'-DNVALGRIND' \
    304 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    305 
    306 
    307 # Include paths placed before CFLAGS/CPPFLAGS
    308 LOCAL_C_INCLUDES_Release := \
    309 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    310 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    311 	$(LOCAL_PATH)/third_party/WebKit/Source \
    312 	$(PWD)/external/icu4c/common \
    313 	$(PWD)/external/icu4c/i18n \
    314 	$(PWD)/frameworks/wilhelm/include \
    315 	$(PWD)/bionic \
    316 	$(PWD)/external/stlport/stlport
    317 
    318 
    319 # Flags passed to only C++ (and not C) files.
    320 LOCAL_CPPFLAGS_Release := \
    321 	-Wno-c++0x-compat \
    322 	-fno-rtti \
    323 	-fno-threadsafe-statics \
    324 	-fvisibility-inlines-hidden \
    325 	-Wno-deprecated \
    326 	-Wno-error=c++0x-compat \
    327 	-Wno-non-virtual-dtor \
    328 	-Wno-sign-promo \
    329 	-Wno-non-virtual-dtor
    330 
    331 
    332 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    333 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    334 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    335 ### Rules for final target.
    336 
    337 LOCAL_LDFLAGS_Debug := \
    338 	-Wl,-z,now \
    339 	-Wl,-z,relro \
    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,--fatal-warnings \
    348 	-Wl,--gc-sections \
    349 	-Wl,--warn-shared-textrel \
    350 	-Wl,-O1 \
    351 	-Wl,--as-needed
    352 
    353 
    354 LOCAL_LDFLAGS_Release := \
    355 	-Wl,-z,now \
    356 	-Wl,-z,relro \
    357 	-Wl,-z,noexecstack \
    358 	-fPIC \
    359 	-m32 \
    360 	-fuse-ld=gold \
    361 	-nostdlib \
    362 	-Wl,--no-undefined \
    363 	-Wl,--exclude-libs=ALL \
    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