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