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_icu_icudata_host_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_IS_HOST_MODULE := true 10 gyp_intermediate_dir := $(call local-intermediates-dir) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 third_party/icu/linux/icudt46l_dat.S 27 28 29 # Flags passed to both C and C++ files. 30 MY_CFLAGS_Debug := \ 31 -fstack-protector \ 32 --param=ssp-buffer-size=4 \ 33 \ 34 -pthread \ 35 -fno-exceptions \ 36 -fno-strict-aliasing \ 37 -Wno-unused-parameter \ 38 -Wno-missing-field-initializers \ 39 -fvisibility=hidden \ 40 -pipe \ 41 -fPIC \ 42 -Wno-format \ 43 -m32 \ 44 -Os \ 45 -g \ 46 -fomit-frame-pointer \ 47 -fdata-sections \ 48 -ffunction-sections 49 50 MY_DEFS_Debug := \ 51 '-DU_USING_ICU_NAMESPACE=0' \ 52 '-DV8_DEPRECATION_WARNINGS' \ 53 '-D_FILE_OFFSET_BITS=64' \ 54 '-DNO_TCMALLOC' \ 55 '-DDISABLE_NACL' \ 56 '-DU_STATIC_IMPLEMENTATION' \ 57 '-DCHROMIUM_BUILD' \ 58 '-DUSE_LIBJPEG_TURBO=1' \ 59 '-DUSE_PROPRIETARY_CODECS' \ 60 '-DENABLE_CONFIGURATION_POLICY' \ 61 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 62 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 63 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 64 '-DUSE_OPENSSL=1' \ 65 '-DENABLE_EGLIMAGE=1' \ 66 '-DCLD_VERSION=1' \ 67 '-DENABLE_PRINTING=1' \ 68 '-DENABLE_MANAGED_USERS=1' \ 69 '-DU_HIDE_DATA_SYMBOL' \ 70 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 71 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 72 '-D_DEBUG' 73 74 75 # Include paths placed before CFLAGS/CPPFLAGS 76 LOCAL_C_INCLUDES_Debug := \ 77 $(LOCAL_PATH)/third_party/icu/source/common \ 78 $(LOCAL_PATH)/third_party/icu/source/i18n 79 80 81 # Flags passed to only C++ (and not C) files. 82 LOCAL_CPPFLAGS_Debug := \ 83 -fno-rtti \ 84 -fno-threadsafe-statics \ 85 -fvisibility-inlines-hidden \ 86 -Wno-deprecated 87 88 89 # Flags passed to both C and C++ files. 90 MY_CFLAGS_Release := \ 91 -fstack-protector \ 92 --param=ssp-buffer-size=4 \ 93 \ 94 -pthread \ 95 -fno-exceptions \ 96 -fno-strict-aliasing \ 97 -Wno-unused-parameter \ 98 -Wno-missing-field-initializers \ 99 -fvisibility=hidden \ 100 -pipe \ 101 -fPIC \ 102 -Wno-format \ 103 -m32 \ 104 -Os \ 105 -fno-ident \ 106 -fdata-sections \ 107 -ffunction-sections \ 108 -fomit-frame-pointer 109 110 MY_DEFS_Release := \ 111 '-DU_USING_ICU_NAMESPACE=0' \ 112 '-DV8_DEPRECATION_WARNINGS' \ 113 '-D_FILE_OFFSET_BITS=64' \ 114 '-DNO_TCMALLOC' \ 115 '-DDISABLE_NACL' \ 116 '-DU_STATIC_IMPLEMENTATION' \ 117 '-DCHROMIUM_BUILD' \ 118 '-DUSE_LIBJPEG_TURBO=1' \ 119 '-DUSE_PROPRIETARY_CODECS' \ 120 '-DENABLE_CONFIGURATION_POLICY' \ 121 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 122 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 123 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 124 '-DUSE_OPENSSL=1' \ 125 '-DENABLE_EGLIMAGE=1' \ 126 '-DCLD_VERSION=1' \ 127 '-DENABLE_PRINTING=1' \ 128 '-DENABLE_MANAGED_USERS=1' \ 129 '-DU_HIDE_DATA_SYMBOL' \ 130 '-DNDEBUG' \ 131 '-DNVALGRIND' \ 132 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 133 134 135 # Include paths placed before CFLAGS/CPPFLAGS 136 LOCAL_C_INCLUDES_Release := \ 137 $(LOCAL_PATH)/third_party/icu/source/common \ 138 $(LOCAL_PATH)/third_party/icu/source/i18n 139 140 141 # Flags passed to only C++ (and not C) files. 142 LOCAL_CPPFLAGS_Release := \ 143 -fno-rtti \ 144 -fno-threadsafe-statics \ 145 -fvisibility-inlines-hidden \ 146 -Wno-deprecated 147 148 149 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 150 # Undefine ANDROID for host modules 151 LOCAL_CFLAGS += -UANDROID 152 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 153 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 154 ### Rules for final target. 155 156 LOCAL_LDFLAGS_Debug := \ 157 -Wl,-z,now \ 158 -Wl,-z,relro \ 159 -pthread \ 160 -fPIC \ 161 -m32 162 163 164 LOCAL_LDFLAGS_Release := \ 165 -Wl,-z,now \ 166 -Wl,-z,relro \ 167 -pthread \ 168 -fPIC \ 169 -m32 170 171 172 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 173 174 LOCAL_STATIC_LIBRARIES := 175 176 # Enable grouping to fix circular references 177 LOCAL_GROUP_STATIC_LIBRARIES := true 178 179 LOCAL_SHARED_LIBRARIES := 180 181 # Add target alias to "gyp_all_modules" target. 182 .PHONY: gyp_all_modules 183 gyp_all_modules: third_party_icu_icudata_host_gyp 184 185 # Alias gyp target name. 186 .PHONY: icudata 187 icudata: third_party_icu_icudata_host_gyp 188 189 include $(BUILD_HOST_STATIC_LIBRARY) 190