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