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