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