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 \ 64 -fno-strict-aliasing \ 65 -Wno-unused-parameter \ 66 -Wno-missing-field-initializers \ 67 -fvisibility=hidden \ 68 -pipe \ 69 -fPIC \ 70 -Wno-unused-local-typedefs \ 71 -Wno-format \ 72 -ffunction-sections \ 73 -funwind-tables \ 74 -g \ 75 -fstack-protector \ 76 -fno-short-enums \ 77 -finline-limit=64 \ 78 -Wa,--noexecstack \ 79 -U_FORTIFY_SOURCE \ 80 -Wno-extra \ 81 -Wno-ignored-qualifiers \ 82 -Wno-type-limits \ 83 -Wno-unused-but-set-variable \ 84 -Wno-address \ 85 -Wno-format-security \ 86 -Wno-return-type \ 87 -Wno-sequence-point \ 88 -Os \ 89 -g \ 90 -gdwarf-4 \ 91 -fdata-sections \ 92 -ffunction-sections \ 93 -fomit-frame-pointer \ 94 -funwind-tables 95 96MY_DEFS_Debug := \ 97 '-DV8_DEPRECATION_WARNINGS' \ 98 '-D_FILE_OFFSET_BITS=64' \ 99 '-DNO_TCMALLOC' \ 100 '-DDISABLE_NACL' \ 101 '-DCHROMIUM_BUILD' \ 102 '-DUSE_LIBJPEG_TURBO=1' \ 103 '-DENABLE_WEBRTC=1' \ 104 '-DUSE_PROPRIETARY_CODECS' \ 105 '-DENABLE_BROWSER_CDMS' \ 106 '-DENABLE_CONFIGURATION_POLICY' \ 107 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 108 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 109 '-DENABLE_EGLIMAGE=1' \ 110 '-DCLD_VERSION=1' \ 111 '-DENABLE_PRINTING=1' \ 112 '-DENABLE_MANAGED_USERS=1' \ 113 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 114 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 115 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 116 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 117 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 118 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 119 '-DVIDEO_HOLE=1' \ 120 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 121 '-DHAVE_OT' \ 122 '-DHAVE_ICU' \ 123 '-DHAVE_ICU_BUILTIN' \ 124 '-DHB_NO_MT' \ 125 '-DU_USING_ICU_NAMESPACE=0' \ 126 '-DU_ENABLE_DYLOAD=0' \ 127 '-DUSE_OPENSSL=1' \ 128 '-DUSE_OPENSSL_CERTS=1' \ 129 '-DANDROID' \ 130 '-D__GNU_SOURCE=1' \ 131 '-DUSE_STLPORT=1' \ 132 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 133 '-DCHROME_BUILD_ID=""' \ 134 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 135 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 136 '-D_DEBUG' 137 138 139# Include paths placed before CFLAGS/CPPFLAGS 140LOCAL_C_INCLUDES_Debug := \ 141 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 142 $(gyp_shared_intermediate_dir) \ 143 $(LOCAL_PATH)/third_party/harfbuzz-ng/src \ 144 $(PWD)/external/icu/icu4c/source/common \ 145 $(PWD)/external/icu/icu4c/source/i18n \ 146 $(PWD)/frameworks/wilhelm/include \ 147 $(PWD)/bionic \ 148 $(PWD)/external/stlport/stlport 149 150 151# Flags passed to only C++ (and not C) files. 152LOCAL_CPPFLAGS_Debug := \ 153 -fno-exceptions \ 154 -fno-rtti \ 155 -fno-threadsafe-statics \ 156 -fvisibility-inlines-hidden \ 157 -Wno-deprecated \ 158 -Wno-uninitialized \ 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 \ 172 -fno-strict-aliasing \ 173 -Wno-unused-parameter \ 174 -Wno-missing-field-initializers \ 175 -fvisibility=hidden \ 176 -pipe \ 177 -fPIC \ 178 -Wno-unused-local-typedefs \ 179 -Wno-format \ 180 -ffunction-sections \ 181 -funwind-tables \ 182 -g \ 183 -fstack-protector \ 184 -fno-short-enums \ 185 -finline-limit=64 \ 186 -Wa,--noexecstack \ 187 -U_FORTIFY_SOURCE \ 188 -Wno-extra \ 189 -Wno-ignored-qualifiers \ 190 -Wno-type-limits \ 191 -Wno-unused-but-set-variable \ 192 -Wno-address \ 193 -Wno-format-security \ 194 -Wno-return-type \ 195 -Wno-sequence-point \ 196 -Os \ 197 -fno-ident \ 198 -fdata-sections \ 199 -ffunction-sections \ 200 -fomit-frame-pointer \ 201 -funwind-tables 202 203MY_DEFS_Release := \ 204 '-DV8_DEPRECATION_WARNINGS' \ 205 '-D_FILE_OFFSET_BITS=64' \ 206 '-DNO_TCMALLOC' \ 207 '-DDISABLE_NACL' \ 208 '-DCHROMIUM_BUILD' \ 209 '-DUSE_LIBJPEG_TURBO=1' \ 210 '-DENABLE_WEBRTC=1' \ 211 '-DUSE_PROPRIETARY_CODECS' \ 212 '-DENABLE_BROWSER_CDMS' \ 213 '-DENABLE_CONFIGURATION_POLICY' \ 214 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 215 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 216 '-DENABLE_EGLIMAGE=1' \ 217 '-DCLD_VERSION=1' \ 218 '-DENABLE_PRINTING=1' \ 219 '-DENABLE_MANAGED_USERS=1' \ 220 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 221 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 222 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 223 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 224 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 225 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 226 '-DVIDEO_HOLE=1' \ 227 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 228 '-DHAVE_OT' \ 229 '-DHAVE_ICU' \ 230 '-DHAVE_ICU_BUILTIN' \ 231 '-DHB_NO_MT' \ 232 '-DU_USING_ICU_NAMESPACE=0' \ 233 '-DU_ENABLE_DYLOAD=0' \ 234 '-DUSE_OPENSSL=1' \ 235 '-DUSE_OPENSSL_CERTS=1' \ 236 '-DANDROID' \ 237 '-D__GNU_SOURCE=1' \ 238 '-DUSE_STLPORT=1' \ 239 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 240 '-DCHROME_BUILD_ID=""' \ 241 '-DNDEBUG' \ 242 '-DNVALGRIND' \ 243 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 244 245 246# Include paths placed before CFLAGS/CPPFLAGS 247LOCAL_C_INCLUDES_Release := \ 248 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 249 $(gyp_shared_intermediate_dir) \ 250 $(LOCAL_PATH)/third_party/harfbuzz-ng/src \ 251 $(PWD)/external/icu/icu4c/source/common \ 252 $(PWD)/external/icu/icu4c/source/i18n \ 253 $(PWD)/frameworks/wilhelm/include \ 254 $(PWD)/bionic \ 255 $(PWD)/external/stlport/stlport 256 257 258# Flags passed to only C++ (and not C) files. 259LOCAL_CPPFLAGS_Release := \ 260 -fno-exceptions \ 261 -fno-rtti \ 262 -fno-threadsafe-statics \ 263 -fvisibility-inlines-hidden \ 264 -Wno-deprecated \ 265 -Wno-uninitialized \ 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