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