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 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/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-serialize.cc \ 29 third_party/harfbuzz-ng/src/hb-buffer.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-complex-arabic.cc \ 38 third_party/harfbuzz-ng/src/hb-ot-shape-complex-default.cc \ 39 third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic-table.cc \ 40 third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic.cc \ 41 third_party/harfbuzz-ng/src/hb-ot-shape-complex-myanmar.cc \ 42 third_party/harfbuzz-ng/src/hb-ot-shape-complex-sea.cc \ 43 third_party/harfbuzz-ng/src/hb-ot-shape-complex-thai.cc \ 44 third_party/harfbuzz-ng/src/hb-ot-shape-fallback.cc \ 45 third_party/harfbuzz-ng/src/hb-ot-shape-normalize.cc \ 46 third_party/harfbuzz-ng/src/hb-ot-shape.cc \ 47 third_party/harfbuzz-ng/src/hb-ot-tag.cc \ 48 third_party/harfbuzz-ng/src/hb-set.cc \ 49 third_party/harfbuzz-ng/src/hb-shape-plan.cc \ 50 third_party/harfbuzz-ng/src/hb-shape.cc \ 51 third_party/harfbuzz-ng/src/hb-shaper.cc \ 52 third_party/harfbuzz-ng/src/hb-tt-font.cc \ 53 third_party/harfbuzz-ng/src/hb-unicode.cc \ 54 third_party/harfbuzz-ng/src/hb-warning.cc 55 56 57 # Flags passed to both C and C++ files. 58 MY_CFLAGS_Debug := \ 59 -fstack-protector \ 60 --param=ssp-buffer-size=4 \ 61 \ 62 -fno-exceptions \ 63 -fno-strict-aliasing \ 64 -Wno-unused-parameter \ 65 -Wno-missing-field-initializers \ 66 -fvisibility=hidden \ 67 -pipe \ 68 -fPIC \ 69 -Wno-format \ 70 -EL \ 71 -mhard-float \ 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-address \ 84 -Wno-format-security \ 85 -Wno-return-type \ 86 -Wno-sequence-point \ 87 -Os \ 88 -g \ 89 -fomit-frame-pointer \ 90 -fdata-sections \ 91 -ffunction-sections 92 93 MY_DEFS_Debug := \ 94 '-DV8_DEPRECATION_WARNINGS' \ 95 '-D_FILE_OFFSET_BITS=64' \ 96 '-DNO_TCMALLOC' \ 97 '-DDISABLE_NACL' \ 98 '-DCHROMIUM_BUILD' \ 99 '-DUSE_LIBJPEG_TURBO=1' \ 100 '-DUSE_PROPRIETARY_CODECS' \ 101 '-DENABLE_CONFIGURATION_POLICY' \ 102 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 103 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 104 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 105 '-DUSE_OPENSSL=1' \ 106 '-DENABLE_EGLIMAGE=1' \ 107 '-DCLD_VERSION=1' \ 108 '-DENABLE_PRINTING=1' \ 109 '-DENABLE_MANAGED_USERS=1' \ 110 '-DHAVE_OT' \ 111 '-DHAVE_ICU' \ 112 '-DHB_NO_MT' \ 113 '-DU_USING_ICU_NAMESPACE=0' \ 114 '-DANDROID' \ 115 '-D__GNU_SOURCE=1' \ 116 '-DUSE_STLPORT=1' \ 117 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 118 '-DCHROME_BUILD_ID=""' \ 119 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 120 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 121 '-D_DEBUG' 122 123 124 # Include paths placed before CFLAGS/CPPFLAGS 125 LOCAL_C_INCLUDES_Debug := \ 126 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 127 $(LOCAL_PATH)/third_party/harfbuzz-ng/src \ 128 $(PWD)/external/icu4c/common \ 129 $(PWD)/external/icu4c/i18n \ 130 $(PWD)/frameworks/wilhelm/include \ 131 $(PWD)/bionic \ 132 $(PWD)/external/stlport/stlport 133 134 135 # Flags passed to only C++ (and not C) files. 136 LOCAL_CPPFLAGS_Debug := \ 137 -fno-rtti \ 138 -fno-threadsafe-statics \ 139 -fvisibility-inlines-hidden \ 140 -Wno-deprecated \ 141 -Wno-uninitialized \ 142 -Wno-error=c++0x-compat \ 143 -Wno-non-virtual-dtor \ 144 -Wno-sign-promo \ 145 -Wno-non-virtual-dtor 146 147 148 # Flags passed to both C and C++ files. 149 MY_CFLAGS_Release := \ 150 -fstack-protector \ 151 --param=ssp-buffer-size=4 \ 152 \ 153 -fno-exceptions \ 154 -fno-strict-aliasing \ 155 -Wno-unused-parameter \ 156 -Wno-missing-field-initializers \ 157 -fvisibility=hidden \ 158 -pipe \ 159 -fPIC \ 160 -Wno-format \ 161 -EL \ 162 -mhard-float \ 163 -ffunction-sections \ 164 -funwind-tables \ 165 -g \ 166 -fstack-protector \ 167 -fno-short-enums \ 168 -finline-limit=64 \ 169 -Wa,--noexecstack \ 170 -U_FORTIFY_SOURCE \ 171 -Wno-extra \ 172 -Wno-ignored-qualifiers \ 173 -Wno-type-limits \ 174 -Wno-address \ 175 -Wno-format-security \ 176 -Wno-return-type \ 177 -Wno-sequence-point \ 178 -Os \ 179 -fno-ident \ 180 -fdata-sections \ 181 -ffunction-sections \ 182 -fomit-frame-pointer 183 184 MY_DEFS_Release := \ 185 '-DV8_DEPRECATION_WARNINGS' \ 186 '-D_FILE_OFFSET_BITS=64' \ 187 '-DNO_TCMALLOC' \ 188 '-DDISABLE_NACL' \ 189 '-DCHROMIUM_BUILD' \ 190 '-DUSE_LIBJPEG_TURBO=1' \ 191 '-DUSE_PROPRIETARY_CODECS' \ 192 '-DENABLE_CONFIGURATION_POLICY' \ 193 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 194 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 195 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 196 '-DUSE_OPENSSL=1' \ 197 '-DENABLE_EGLIMAGE=1' \ 198 '-DCLD_VERSION=1' \ 199 '-DENABLE_PRINTING=1' \ 200 '-DENABLE_MANAGED_USERS=1' \ 201 '-DHAVE_OT' \ 202 '-DHAVE_ICU' \ 203 '-DHB_NO_MT' \ 204 '-DU_USING_ICU_NAMESPACE=0' \ 205 '-DANDROID' \ 206 '-D__GNU_SOURCE=1' \ 207 '-DUSE_STLPORT=1' \ 208 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 209 '-DCHROME_BUILD_ID=""' \ 210 '-DNDEBUG' \ 211 '-DNVALGRIND' \ 212 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 213 214 215 # Include paths placed before CFLAGS/CPPFLAGS 216 LOCAL_C_INCLUDES_Release := \ 217 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 218 $(LOCAL_PATH)/third_party/harfbuzz-ng/src \ 219 $(PWD)/external/icu4c/common \ 220 $(PWD)/external/icu4c/i18n \ 221 $(PWD)/frameworks/wilhelm/include \ 222 $(PWD)/bionic \ 223 $(PWD)/external/stlport/stlport 224 225 226 # Flags passed to only C++ (and not C) files. 227 LOCAL_CPPFLAGS_Release := \ 228 -fno-rtti \ 229 -fno-threadsafe-statics \ 230 -fvisibility-inlines-hidden \ 231 -Wno-deprecated \ 232 -Wno-uninitialized \ 233 -Wno-error=c++0x-compat \ 234 -Wno-non-virtual-dtor \ 235 -Wno-sign-promo \ 236 -Wno-non-virtual-dtor 237 238 239 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 240 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 241 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 242 ### Rules for final target. 243 244 LOCAL_LDFLAGS_Debug := \ 245 -Wl,-z,now \ 246 -Wl,-z,relro \ 247 -Wl,-z,noexecstack \ 248 -fPIC \ 249 -EL \ 250 -Wl,--no-keep-memory \ 251 -nostdlib \ 252 -Wl,--no-undefined \ 253 -Wl,--exclude-libs=ALL \ 254 -Wl,--fatal-warnings \ 255 -Wl,--gc-sections \ 256 -Wl,--warn-shared-textrel \ 257 -Wl,-O1 \ 258 -Wl,--as-needed 259 260 261 LOCAL_LDFLAGS_Release := \ 262 -Wl,-z,now \ 263 -Wl,-z,relro \ 264 -Wl,-z,noexecstack \ 265 -fPIC \ 266 -EL \ 267 -Wl,--no-keep-memory \ 268 -nostdlib \ 269 -Wl,--no-undefined \ 270 -Wl,--exclude-libs=ALL \ 271 -Wl,-O1 \ 272 -Wl,--as-needed \ 273 -Wl,--gc-sections \ 274 -Wl,--fatal-warnings \ 275 -Wl,--warn-shared-textrel 276 277 278 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 279 280 LOCAL_STATIC_LIBRARIES := 281 282 # Enable grouping to fix circular references 283 LOCAL_GROUP_STATIC_LIBRARIES := true 284 285 LOCAL_SHARED_LIBRARIES := \ 286 libstlport \ 287 libdl 288 289 # Add target alias to "gyp_all_modules" target. 290 .PHONY: gyp_all_modules 291 gyp_all_modules: third_party_harfbuzz_ng_harfbuzz_ng_gyp 292 293 # Alias gyp target name. 294 .PHONY: harfbuzz-ng 295 harfbuzz-ng: third_party_harfbuzz_ng_harfbuzz_ng_gyp 296 297 include $(BUILD_STATIC_LIBRARY) 298