cityhash.target.linux-x86.mk revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_smhasher_cityhash_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_GENERATED_SOURCES := 21 22GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24LOCAL_SRC_FILES := \ 25 third_party/smhasher/src/City.cpp 26 27 28# Flags passed to both C and C++ files. 29MY_CFLAGS := \ 30 --param=ssp-buffer-size=4 \ 31 -fno-exceptions \ 32 -fno-strict-aliasing \ 33 -Wno-unused-parameter \ 34 -Wno-missing-field-initializers \ 35 -fvisibility=hidden \ 36 -pipe \ 37 -fPIC \ 38 -Wno-format \ 39 -m32 \ 40 -mmmx \ 41 -march=pentium4 \ 42 -msse2 \ 43 -mfpmath=sse \ 44 -ffunction-sections \ 45 -funwind-tables \ 46 -g \ 47 -fno-short-enums \ 48 -finline-limit=64 \ 49 -Wa,--noexecstack \ 50 -U_FORTIFY_SOURCE \ 51 -Wno-extra \ 52 -Wno-ignored-qualifiers \ 53 -Wno-type-limits \ 54 -Wno-address \ 55 -Wno-format-security \ 56 -Wno-return-type \ 57 -Wno-sequence-point \ 58 -fno-stack-protector \ 59 -Os \ 60 -g \ 61 -fomit-frame-pointer \ 62 -fdata-sections \ 63 -ffunction-sections 64 65MY_CFLAGS_C := 66 67MY_DEFS := \ 68 '-DUSE_SKIA' \ 69 '-D_FILE_OFFSET_BITS=64' \ 70 '-DUSE_LINUX_BREAKPAD' \ 71 '-DNO_TCMALLOC' \ 72 '-DDISABLE_NACL' \ 73 '-DCHROMIUM_BUILD' \ 74 '-DUSE_LIBJPEG_TURBO=1' \ 75 '-DUSE_PROPRIETARY_CODECS' \ 76 '-DENABLE_PEPPER_THREADING' \ 77 '-DENABLE_GPU=1' \ 78 '-DUSE_OPENSSL=1' \ 79 '-DENABLE_EGLIMAGE=1' \ 80 '-DENABLE_LANGUAGE_DETECTION=1' \ 81 '-DANDROID' \ 82 '-D__GNU_SOURCE=1' \ 83 '-DUSE_STLPORT=1' \ 84 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 85 '-DCHROME_BUILD_ID=""' \ 86 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 87 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 88 '-D_DEBUG' 89 90LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) 91 92# Include paths placed before CFLAGS/CPPFLAGS 93LOCAL_C_INCLUDES := \ 94 $(GYP_ABS_ANDROID_TOP_DIR)/frameworks/wilhelm/include \ 95 $(GYP_ABS_ANDROID_TOP_DIR)/bionic \ 96 $(GYP_ABS_ANDROID_TOP_DIR)/external/stlport/stlport 97 98LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES) 99 100# Flags passed to only C++ (and not C) files. 101LOCAL_CPPFLAGS := \ 102 -fno-rtti \ 103 -fno-threadsafe-statics \ 104 -fvisibility-inlines-hidden \ 105 -Wno-deprecated \ 106 -Wno-error=c++0x-compat \ 107 -Wno-non-virtual-dtor \ 108 -Wno-sign-promo \ 109 -Wno-non-virtual-dtor 110 111### Rules for final target. 112 113LOCAL_LDFLAGS := \ 114 -Wl,-z,now \ 115 -Wl,-z,relro \ 116 -Wl,-z,noexecstack \ 117 -fPIC \ 118 -m32 \ 119 -nostdlib \ 120 -Wl,--no-undefined \ 121 -Wl,--exclude-libs=ALL \ 122 -Wl,-O1 \ 123 -Wl,--as-needed \ 124 -Wl,--gc-sections 125 126 127LOCAL_STATIC_LIBRARIES := 128 129# Enable grouping to fix circular references 130LOCAL_GROUP_STATIC_LIBRARIES := true 131 132LOCAL_SHARED_LIBRARIES := \ 133 libstlport \ 134 libdl 135 136# Add target alias to "gyp_all_modules" target. 137.PHONY: gyp_all_modules 138gyp_all_modules: third_party_smhasher_cityhash_gyp 139 140# Alias gyp target name. 141.PHONY: cityhash 142cityhash: third_party_smhasher_cityhash_gyp 143 144include $(BUILD_STATIC_LIBRARY) 145