cityhash.target.darwin-arm.mk revision 90dce4d38c5ff5333bea97d859d4e484e27edf0c
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 -fstack-protector \ 31 --param=ssp-buffer-size=4 \ 32 -fno-exceptions \ 33 -fno-strict-aliasing \ 34 -Wno-unused-parameter \ 35 -Wno-missing-field-initializers \ 36 -fvisibility=hidden \ 37 -pipe \ 38 -fPIC \ 39 -Wno-format \ 40 -fno-tree-sra \ 41 -fuse-ld=gold \ 42 -Wno-psabi \ 43 -ffunction-sections \ 44 -funwind-tables \ 45 -g \ 46 -fstack-protector \ 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 -Os \ 59 -g \ 60 -fomit-frame-pointer \ 61 -fdata-sections \ 62 -ffunction-sections 63 64MY_CFLAGS_C := 65 66MY_DEFS := \ 67 '-D_FILE_OFFSET_BITS=64' \ 68 '-DUSE_LINUX_BREAKPAD' \ 69 '-DNO_TCMALLOC' \ 70 '-DDISABLE_NACL' \ 71 '-DCHROMIUM_BUILD' \ 72 '-DENABLE_DOUBLE_RESOURCE_LOAD_TIMING' \ 73 '-DUSE_LIBJPEG_TURBO=1' \ 74 '-DUSE_PROPRIETARY_CODECS' \ 75 '-DENABLE_GPU=1' \ 76 '-DUSE_OPENSSL=1' \ 77 '-DENABLE_EGLIMAGE=1' \ 78 '-DENABLE_LANGUAGE_DETECTION=1' \ 79 '-DANDROID' \ 80 '-D__GNU_SOURCE=1' \ 81 '-DUSE_STLPORT=1' \ 82 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 83 '-DCHROME_BUILD_ID=""' \ 84 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 85 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 86 '-D_DEBUG' 87 88LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) 89 90# Include paths placed before CFLAGS/CPPFLAGS 91LOCAL_C_INCLUDES := \ 92 $(PWD)/frameworks/wilhelm/include \ 93 $(PWD)/bionic \ 94 $(PWD)/external/stlport/stlport 95 96LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES) 97 98# Flags passed to only C++ (and not C) files. 99LOCAL_CPPFLAGS := \ 100 -fno-rtti \ 101 -fno-threadsafe-statics \ 102 -fvisibility-inlines-hidden \ 103 -Wno-deprecated \ 104 -Wno-abi \ 105 -Wno-error=c++0x-compat \ 106 -Wno-non-virtual-dtor \ 107 -Wno-sign-promo \ 108 -Wno-non-virtual-dtor 109 110### Rules for final target. 111 112LOCAL_LDFLAGS := \ 113 -Wl,-z,now \ 114 -Wl,-z,relro \ 115 -Wl,-z,noexecstack \ 116 -fPIC \ 117 -Wl,-z,relro \ 118 -Wl,-z,now \ 119 -fuse-ld=gold \ 120 -nostdlib \ 121 -Wl,--no-undefined \ 122 -Wl,--exclude-libs=ALL \ 123 -Wl,--icf=safe \ 124 -Wl,--gc-sections \ 125 -Wl,-O1 \ 126 -Wl,--as-needed 127 128 129LOCAL_STATIC_LIBRARIES := 130 131# Enable grouping to fix circular references 132LOCAL_GROUP_STATIC_LIBRARIES := true 133 134LOCAL_SHARED_LIBRARIES := \ 135 libstlport \ 136 libdl 137 138# Add target alias to "gyp_all_modules" target. 139.PHONY: gyp_all_modules 140gyp_all_modules: third_party_smhasher_cityhash_gyp 141 142# Alias gyp target name. 143.PHONY: cityhash 144cityhash: third_party_smhasher_cityhash_gyp 145 146include $(BUILD_STATIC_LIBRARY) 147