1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_harfbuzz_ng_harfbuzz_ng_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 third_party/harfbuzz-ng/src/hb-blob.cc \ 28 third_party/harfbuzz-ng/src/hb-buffer.cc \ 29 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc \ 30 third_party/harfbuzz-ng/src/hb-common.cc \ 31 third_party/harfbuzz-ng/src/hb-face.cc \ 32 third_party/harfbuzz-ng/src/hb-fallback-shape.cc \ 33 third_party/harfbuzz-ng/src/hb-font.cc \ 34 third_party/harfbuzz-ng/src/hb-icu.cc \ 35 third_party/harfbuzz-ng/src/hb-ot-layout.cc \ 36 third_party/harfbuzz-ng/src/hb-ot-map.cc \ 37 third_party/harfbuzz-ng/src/hb-ot-shape.cc \ 38 third_party/harfbuzz-ng/src/hb-ot-shape-complex-arabic.cc \ 39 third_party/harfbuzz-ng/src/hb-ot-shape-complex-default.cc \ 40 third_party/harfbuzz-ng/src/hb-ot-shape-complex-hangul.cc \ 41 third_party/harfbuzz-ng/src/hb-ot-shape-complex-hebrew.cc \ 42 third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic.cc \ 43 third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic-table.cc \ 44 third_party/harfbuzz-ng/src/hb-ot-shape-complex-myanmar.cc \ 45 third_party/harfbuzz-ng/src/hb-ot-shape-complex-sea.cc \ 46 third_party/harfbuzz-ng/src/hb-ot-shape-complex-thai.cc \ 47 third_party/harfbuzz-ng/src/hb-ot-shape-complex-tibetan.cc \ 48 third_party/harfbuzz-ng/src/hb-ot-shape-fallback.cc \ 49 third_party/harfbuzz-ng/src/hb-ot-shape-normalize.cc \ 50 third_party/harfbuzz-ng/src/hb-ot-tag.cc \ 51 third_party/harfbuzz-ng/src/hb-set.cc \ 52 third_party/harfbuzz-ng/src/hb-shape.cc \ 53 third_party/harfbuzz-ng/src/hb-shape-plan.cc \ 54 third_party/harfbuzz-ng/src/hb-shaper.cc \ 55 third_party/harfbuzz-ng/src/hb-unicode.cc \ 56 third_party/harfbuzz-ng/src/hb-warning.cc 57 58 59# Flags passed to both C and C++ files. 60MY_CFLAGS_Debug := \ 61 -fstack-protector \ 62 --param=ssp-buffer-size=4 \ 63 -fno-strict-aliasing \ 64 -Wno-unused-parameter \ 65 -Wno-missing-field-initializers \ 66 -fvisibility=hidden \ 67 -pipe \ 68 -fPIC \ 69 -Wno-unused-local-typedefs \ 70 -Wno-format \ 71 -m64 \ 72 -march=x86-64 \ 73 -ffunction-sections \ 74 -funwind-tables \ 75 -g \ 76 -fstack-protector \ 77 -fno-short-enums \ 78 -finline-limit=64 \ 79 -Wa,--noexecstack \ 80 -U_FORTIFY_SOURCE \ 81 -Wno-extra \ 82 -Wno-ignored-qualifiers \ 83 -Wno-type-limits \ 84 -Wno-unused-but-set-variable \ 85 -Wno-address \ 86 -Wno-format-security \ 87 -Wno-return-type \ 88 -Wno-sequence-point \ 89 -Os \ 90 -g \ 91 -gdwarf-4 \ 92 -fdata-sections \ 93 -ffunction-sections \ 94 -fomit-frame-pointer \ 95 -funwind-tables 96 97MY_DEFS_Debug := \ 98 '-DV8_DEPRECATION_WARNINGS' \ 99 '-D_FILE_OFFSET_BITS=64' \ 100 '-DNO_TCMALLOC' \ 101 '-DDISABLE_NACL' \ 102 '-DCHROMIUM_BUILD' \ 103 '-DUSE_LIBJPEG_TURBO=1' \ 104 '-DENABLE_WEBRTC=1' \ 105 '-DUSE_PROPRIETARY_CODECS' \ 106 '-DENABLE_BROWSER_CDMS' \ 107 '-DENABLE_CONFIGURATION_POLICY' \ 108 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 109 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 110 '-DENABLE_EGLIMAGE=1' \ 111 '-DCLD_VERSION=1' \ 112 '-DENABLE_PRINTING=1' \ 113 '-DENABLE_MANAGED_USERS=1' \ 114 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 115 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 116 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 117 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 118 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 119 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 120 '-DVIDEO_HOLE=1' \ 121 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 122 '-DHAVE_OT' \ 123 '-DHAVE_ICU' \ 124 '-DHAVE_ICU_BUILTIN' \ 125 '-DHB_NO_MT' \ 126 '-DU_USING_ICU_NAMESPACE=0' \ 127 '-DU_ENABLE_DYLOAD=0' \ 128 '-DUSE_OPENSSL=1' \ 129 '-DUSE_OPENSSL_CERTS=1' \ 130 '-DANDROID' \ 131 '-D__GNU_SOURCE=1' \ 132 '-DUSE_STLPORT=1' \ 133 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 134 '-DCHROME_BUILD_ID=""' \ 135 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 136 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 137 '-D_DEBUG' 138 139 140# Include paths placed before CFLAGS/CPPFLAGS 141LOCAL_C_INCLUDES_Debug := \ 142 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 143 $(gyp_shared_intermediate_dir) \ 144 $(LOCAL_PATH)/third_party/harfbuzz-ng/src \ 145 $(PWD)/external/icu/icu4c/source/common \ 146 $(PWD)/external/icu/icu4c/source/i18n \ 147 $(PWD)/frameworks/wilhelm/include \ 148 $(PWD)/bionic \ 149 $(PWD)/external/stlport/stlport 150 151 152# Flags passed to only C++ (and not C) files. 153LOCAL_CPPFLAGS_Debug := \ 154 -fno-exceptions \ 155 -fno-rtti \ 156 -fno-threadsafe-statics \ 157 -fvisibility-inlines-hidden \ 158 -Wno-deprecated \ 159 -std=gnu++11 \ 160 -Wno-narrowing \ 161 -Wno-literal-suffix \ 162 -Wno-non-virtual-dtor \ 163 -Wno-sign-promo \ 164 -Wno-non-virtual-dtor 165 166 167# Flags passed to both C and C++ files. 168MY_CFLAGS_Release := \ 169 -fstack-protector \ 170 --param=ssp-buffer-size=4 \ 171 -fno-strict-aliasing \ 172 -Wno-unused-parameter \ 173 -Wno-missing-field-initializers \ 174 -fvisibility=hidden \ 175 -pipe \ 176 -fPIC \ 177 -Wno-unused-local-typedefs \ 178 -Wno-format \ 179 -m64 \ 180 -march=x86-64 \ 181 -ffunction-sections \ 182 -funwind-tables \ 183 -g \ 184 -fstack-protector \ 185 -fno-short-enums \ 186 -finline-limit=64 \ 187 -Wa,--noexecstack \ 188 -U_FORTIFY_SOURCE \ 189 -Wno-extra \ 190 -Wno-ignored-qualifiers \ 191 -Wno-type-limits \ 192 -Wno-unused-but-set-variable \ 193 -Wno-address \ 194 -Wno-format-security \ 195 -Wno-return-type \ 196 -Wno-sequence-point \ 197 -Os \ 198 -fno-ident \ 199 -fdata-sections \ 200 -ffunction-sections \ 201 -fomit-frame-pointer \ 202 -funwind-tables 203 204MY_DEFS_Release := \ 205 '-DV8_DEPRECATION_WARNINGS' \ 206 '-D_FILE_OFFSET_BITS=64' \ 207 '-DNO_TCMALLOC' \ 208 '-DDISABLE_NACL' \ 209 '-DCHROMIUM_BUILD' \ 210 '-DUSE_LIBJPEG_TURBO=1' \ 211 '-DENABLE_WEBRTC=1' \ 212 '-DUSE_PROPRIETARY_CODECS' \ 213 '-DENABLE_BROWSER_CDMS' \ 214 '-DENABLE_CONFIGURATION_POLICY' \ 215 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 216 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 217 '-DENABLE_EGLIMAGE=1' \ 218 '-DCLD_VERSION=1' \ 219 '-DENABLE_PRINTING=1' \ 220 '-DENABLE_MANAGED_USERS=1' \ 221 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 222 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 223 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 224 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 225 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 226 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 227 '-DVIDEO_HOLE=1' \ 228 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 229 '-DHAVE_OT' \ 230 '-DHAVE_ICU' \ 231 '-DHAVE_ICU_BUILTIN' \ 232 '-DHB_NO_MT' \ 233 '-DU_USING_ICU_NAMESPACE=0' \ 234 '-DU_ENABLE_DYLOAD=0' \ 235 '-DUSE_OPENSSL=1' \ 236 '-DUSE_OPENSSL_CERTS=1' \ 237 '-DANDROID' \ 238 '-D__GNU_SOURCE=1' \ 239 '-DUSE_STLPORT=1' \ 240 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 241 '-DCHROME_BUILD_ID=""' \ 242 '-DNDEBUG' \ 243 '-DNVALGRIND' \ 244 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 245 246 247# Include paths placed before CFLAGS/CPPFLAGS 248LOCAL_C_INCLUDES_Release := \ 249 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 250 $(gyp_shared_intermediate_dir) \ 251 $(LOCAL_PATH)/third_party/harfbuzz-ng/src \ 252 $(PWD)/external/icu/icu4c/source/common \ 253 $(PWD)/external/icu/icu4c/source/i18n \ 254 $(PWD)/frameworks/wilhelm/include \ 255 $(PWD)/bionic \ 256 $(PWD)/external/stlport/stlport 257 258 259# Flags passed to only C++ (and not C) files. 260LOCAL_CPPFLAGS_Release := \ 261 -fno-exceptions \ 262 -fno-rtti \ 263 -fno-threadsafe-statics \ 264 -fvisibility-inlines-hidden \ 265 -Wno-deprecated \ 266 -std=gnu++11 \ 267 -Wno-narrowing \ 268 -Wno-literal-suffix \ 269 -Wno-non-virtual-dtor \ 270 -Wno-sign-promo \ 271 -Wno-non-virtual-dtor 272 273 274LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 275LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 276LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 277LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 278### Rules for final target. 279 280LOCAL_SHARED_LIBRARIES := \ 281 libstlport \ 282 libdl 283 284# Add target alias to "gyp_all_modules" target. 285.PHONY: gyp_all_modules 286gyp_all_modules: third_party_harfbuzz_ng_harfbuzz_ng_gyp 287 288# Alias gyp target name. 289.PHONY: harfbuzz-ng 290harfbuzz-ng: third_party_harfbuzz_ng_harfbuzz_ng_gyp 291 292include $(BUILD_STATIC_LIBRARY) 293