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_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := \ 15 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp 16 17 GYP_GENERATED_OUTPUTS := 18 19 # Make sure our deps and generated files are built first. 20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22 LOCAL_CPP_EXTENSION := .cc 23 LOCAL_GENERATED_SOURCES := 24 25 GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27 LOCAL_SRC_FILES := \ 28 third_party/harfbuzz-ng/src/hb-blob.cc \ 29 third_party/harfbuzz-ng/src/hb-buffer.cc \ 30 third_party/harfbuzz-ng/src/hb-buffer-serialize.cc \ 31 third_party/harfbuzz-ng/src/hb-common.cc \ 32 third_party/harfbuzz-ng/src/hb-face.cc \ 33 third_party/harfbuzz-ng/src/hb-fallback-shape.cc \ 34 third_party/harfbuzz-ng/src/hb-font.cc \ 35 third_party/harfbuzz-ng/src/hb-icu.cc \ 36 third_party/harfbuzz-ng/src/hb-ot-layout.cc \ 37 third_party/harfbuzz-ng/src/hb-ot-map.cc \ 38 third_party/harfbuzz-ng/src/hb-ot-shape.cc \ 39 third_party/harfbuzz-ng/src/hb-ot-shape-complex-arabic.cc \ 40 third_party/harfbuzz-ng/src/hb-ot-shape-complex-default.cc \ 41 third_party/harfbuzz-ng/src/hb-ot-shape-complex-hangul.cc \ 42 third_party/harfbuzz-ng/src/hb-ot-shape-complex-hebrew.cc \ 43 third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic.cc \ 44 third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic-table.cc \ 45 third_party/harfbuzz-ng/src/hb-ot-shape-complex-myanmar.cc \ 46 third_party/harfbuzz-ng/src/hb-ot-shape-complex-sea.cc \ 47 third_party/harfbuzz-ng/src/hb-ot-shape-complex-thai.cc \ 48 third_party/harfbuzz-ng/src/hb-ot-shape-complex-tibetan.cc \ 49 third_party/harfbuzz-ng/src/hb-ot-shape-fallback.cc \ 50 third_party/harfbuzz-ng/src/hb-ot-shape-normalize.cc \ 51 third_party/harfbuzz-ng/src/hb-ot-tag.cc \ 52 third_party/harfbuzz-ng/src/hb-set.cc \ 53 third_party/harfbuzz-ng/src/hb-shape.cc \ 54 third_party/harfbuzz-ng/src/hb-shape-plan.cc \ 55 third_party/harfbuzz-ng/src/hb-shaper.cc \ 56 third_party/harfbuzz-ng/src/hb-unicode.cc \ 57 third_party/harfbuzz-ng/src/hb-warning.cc 58 59 60 # Flags passed to both C and C++ files. 61 MY_CFLAGS_Debug := \ 62 -fstack-protector \ 63 --param=ssp-buffer-size=4 \ 64 \ 65 -fno-exceptions \ 66 -fno-strict-aliasing \ 67 -Wno-unused-parameter \ 68 -Wno-missing-field-initializers \ 69 -fvisibility=hidden \ 70 -pipe \ 71 -fPIC \ 72 -Wno-unused-local-typedefs \ 73 -Wno-format \ 74 -EL \ 75 -mhard-float \ 76 -ffunction-sections \ 77 -funwind-tables \ 78 -g \ 79 -fstack-protector \ 80 -fno-short-enums \ 81 -finline-limit=64 \ 82 -Wa,--noexecstack \ 83 -U_FORTIFY_SOURCE \ 84 -Wno-extra \ 85 -Wno-ignored-qualifiers \ 86 -Wno-type-limits \ 87 -Wno-unused-but-set-variable \ 88 -Wno-address \ 89 -Wno-format-security \ 90 -Wno-return-type \ 91 -Wno-sequence-point \ 92 -Os \ 93 -g \ 94 -fdata-sections \ 95 -ffunction-sections \ 96 -fomit-frame-pointer \ 97 -funwind-tables 98 99 MY_DEFS_Debug := \ 100 '-DV8_DEPRECATION_WARNINGS' \ 101 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 102 '-D_FILE_OFFSET_BITS=64' \ 103 '-DNO_TCMALLOC' \ 104 '-DDISABLE_NACL' \ 105 '-DCHROMIUM_BUILD' \ 106 '-DUSE_LIBJPEG_TURBO=1' \ 107 '-DENABLE_WEBRTC=1' \ 108 '-DUSE_PROPRIETARY_CODECS' \ 109 '-DENABLE_BROWSER_CDMS' \ 110 '-DENABLE_CONFIGURATION_POLICY' \ 111 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 112 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 113 '-DENABLE_EGLIMAGE=1' \ 114 '-DCLD_VERSION=1' \ 115 '-DENABLE_PRINTING=1' \ 116 '-DENABLE_MANAGED_USERS=1' \ 117 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 118 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 119 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 120 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 121 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 122 '-DVIDEO_HOLE=1' \ 123 '-DHAVE_OT' \ 124 '-DHAVE_ICU' \ 125 '-DHAVE_ICU_BUILTIN' \ 126 '-DHB_NO_MT' \ 127 '-DU_USING_ICU_NAMESPACE=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 141 LOCAL_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. 153 LOCAL_CPPFLAGS_Debug := \ 154 -fno-rtti \ 155 -fno-threadsafe-statics \ 156 -fvisibility-inlines-hidden \ 157 -Wno-deprecated \ 158 -Wno-uninitialized \ 159 -Wno-non-virtual-dtor \ 160 -Wno-sign-promo \ 161 -Wno-non-virtual-dtor 162 163 164 LOCAL_FDO_SUPPORT_Debug := false 165 166 # Flags passed to both C and C++ files. 167 MY_CFLAGS_Release := \ 168 -fstack-protector \ 169 --param=ssp-buffer-size=4 \ 170 \ 171 -fno-exceptions \ 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 -EL \ 181 -mhard-float \ 182 -ffunction-sections \ 183 -funwind-tables \ 184 -g \ 185 -fstack-protector \ 186 -fno-short-enums \ 187 -finline-limit=64 \ 188 -Wa,--noexecstack \ 189 -U_FORTIFY_SOURCE \ 190 -Wno-extra \ 191 -Wno-ignored-qualifiers \ 192 -Wno-type-limits \ 193 -Wno-unused-but-set-variable \ 194 -Wno-address \ 195 -Wno-format-security \ 196 -Wno-return-type \ 197 -Wno-sequence-point \ 198 -Os \ 199 -fno-ident \ 200 -fdata-sections \ 201 -ffunction-sections \ 202 -fomit-frame-pointer \ 203 -funwind-tables 204 205 MY_DEFS_Release := \ 206 '-DV8_DEPRECATION_WARNINGS' \ 207 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 208 '-D_FILE_OFFSET_BITS=64' \ 209 '-DNO_TCMALLOC' \ 210 '-DDISABLE_NACL' \ 211 '-DCHROMIUM_BUILD' \ 212 '-DUSE_LIBJPEG_TURBO=1' \ 213 '-DENABLE_WEBRTC=1' \ 214 '-DUSE_PROPRIETARY_CODECS' \ 215 '-DENABLE_BROWSER_CDMS' \ 216 '-DENABLE_CONFIGURATION_POLICY' \ 217 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 218 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 219 '-DENABLE_EGLIMAGE=1' \ 220 '-DCLD_VERSION=1' \ 221 '-DENABLE_PRINTING=1' \ 222 '-DENABLE_MANAGED_USERS=1' \ 223 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 224 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 225 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 226 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 227 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 228 '-DVIDEO_HOLE=1' \ 229 '-DHAVE_OT' \ 230 '-DHAVE_ICU' \ 231 '-DHAVE_ICU_BUILTIN' \ 232 '-DHB_NO_MT' \ 233 '-DU_USING_ICU_NAMESPACE=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 247 LOCAL_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. 259 LOCAL_CPPFLAGS_Release := \ 260 -fno-rtti \ 261 -fno-threadsafe-statics \ 262 -fvisibility-inlines-hidden \ 263 -Wno-deprecated \ 264 -Wno-uninitialized \ 265 -Wno-non-virtual-dtor \ 266 -Wno-sign-promo \ 267 -Wno-non-virtual-dtor 268 269 270 LOCAL_FDO_SUPPORT_Release := false 271 272 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 273 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 274 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 275 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 276 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 277 ### Rules for final target. 278 279 LOCAL_LDFLAGS_Debug := \ 280 -Wl,-z,now \ 281 -Wl,-z,relro \ 282 -Wl,--fatal-warnings \ 283 -Wl,-z,noexecstack \ 284 -fPIC \ 285 -EL \ 286 -Wl,--no-keep-memory \ 287 -nostdlib \ 288 -Wl,--no-undefined \ 289 -Wl,--exclude-libs=ALL \ 290 -Wl,--warn-shared-textrel \ 291 -Wl,-O1 \ 292 -Wl,--as-needed 293 294 295 LOCAL_LDFLAGS_Release := \ 296 -Wl,-z,now \ 297 -Wl,-z,relro \ 298 -Wl,--fatal-warnings \ 299 -Wl,-z,noexecstack \ 300 -fPIC \ 301 -EL \ 302 -Wl,--no-keep-memory \ 303 -nostdlib \ 304 -Wl,--no-undefined \ 305 -Wl,--exclude-libs=ALL \ 306 -Wl,-O1 \ 307 -Wl,--as-needed \ 308 -Wl,--gc-sections \ 309 -Wl,--warn-shared-textrel 310 311 312 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 313 314 LOCAL_STATIC_LIBRARIES := 315 316 # Enable grouping to fix circular references 317 LOCAL_GROUP_STATIC_LIBRARIES := true 318 319 LOCAL_SHARED_LIBRARIES := \ 320 libstlport \ 321 libdl 322 323 # Add target alias to "gyp_all_modules" target. 324 .PHONY: gyp_all_modules 325 gyp_all_modules: third_party_harfbuzz_ng_harfbuzz_ng_gyp 326 327 # Alias gyp target name. 328 .PHONY: harfbuzz-ng 329 harfbuzz-ng: third_party_harfbuzz_ng_harfbuzz_ng_gyp 330 331 include $(BUILD_STATIC_LIBRARY) 332