1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_ots_ots_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 third_party/ots/src/cff.cc \ 28 third_party/ots/src/cff_type2_charstring.cc \ 29 third_party/ots/src/cmap.cc \ 30 third_party/ots/src/cvt.cc \ 31 third_party/ots/src/fpgm.cc \ 32 third_party/ots/src/gasp.cc \ 33 third_party/ots/src/gdef.cc \ 34 third_party/ots/src/glyf.cc \ 35 third_party/ots/src/gpos.cc \ 36 third_party/ots/src/gsub.cc \ 37 third_party/ots/src/hdmx.cc \ 38 third_party/ots/src/head.cc \ 39 third_party/ots/src/hhea.cc \ 40 third_party/ots/src/hmtx.cc \ 41 third_party/ots/src/kern.cc \ 42 third_party/ots/src/layout.cc \ 43 third_party/ots/src/loca.cc \ 44 third_party/ots/src/ltsh.cc \ 45 third_party/ots/src/maxp.cc \ 46 third_party/ots/src/math.cc \ 47 third_party/ots/src/metrics.cc \ 48 third_party/ots/src/name.cc \ 49 third_party/ots/src/os2.cc \ 50 third_party/ots/src/ots.cc \ 51 third_party/ots/src/post.cc \ 52 third_party/ots/src/prep.cc \ 53 third_party/ots/src/vdmx.cc \ 54 third_party/ots/src/vhea.cc \ 55 third_party/ots/src/vmtx.cc \ 56 third_party/ots/src/vorg.cc \ 57 third_party/ots/src/woff2.cc 58 59 60# Flags passed to both C and C++ files. 61MY_CFLAGS_Debug := \ 62 -fstack-protector \ 63 --param=ssp-buffer-size=4 \ 64 -Werror \ 65 -fno-exceptions \ 66 -fno-strict-aliasing \ 67 -Wall \ 68 -Wno-unused-parameter \ 69 -Wno-missing-field-initializers \ 70 -fvisibility=hidden \ 71 -pipe \ 72 -fPIC \ 73 -Wno-unused-local-typedefs \ 74 -m64 \ 75 -march=x86-64 \ 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 -Os \ 89 -g \ 90 -fdata-sections \ 91 -ffunction-sections \ 92 -fomit-frame-pointer \ 93 -funwind-tables 94 95MY_DEFS_Debug := \ 96 '-DV8_DEPRECATION_WARNINGS' \ 97 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 98 '-D_FILE_OFFSET_BITS=64' \ 99 '-DNO_TCMALLOC' \ 100 '-DDISABLE_NACL' \ 101 '-DCHROMIUM_BUILD' \ 102 '-DUSE_LIBJPEG_TURBO=1' \ 103 '-DENABLE_WEBRTC=1' \ 104 '-DUSE_PROPRIETARY_CODECS' \ 105 '-DENABLE_BROWSER_CDMS' \ 106 '-DENABLE_CONFIGURATION_POLICY' \ 107 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 108 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 109 '-DENABLE_EGLIMAGE=1' \ 110 '-DCLD_VERSION=1' \ 111 '-DENABLE_PRINTING=1' \ 112 '-DENABLE_MANAGED_USERS=1' \ 113 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 114 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 115 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 116 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 117 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 118 '-DVIDEO_HOLE=1' \ 119 '-DUSE_OPENSSL=1' \ 120 '-DUSE_OPENSSL_CERTS=1' \ 121 '-D__STDC_CONSTANT_MACROS' \ 122 '-D__STDC_FORMAT_MACROS' \ 123 '-DANDROID' \ 124 '-D__GNU_SOURCE=1' \ 125 '-DUSE_STLPORT=1' \ 126 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 127 '-DCHROME_BUILD_ID=""' \ 128 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 129 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 130 '-D_DEBUG' 131 132 133# Include paths placed before CFLAGS/CPPFLAGS 134LOCAL_C_INCLUDES_Debug := \ 135 $(gyp_shared_intermediate_dir) \ 136 $(LOCAL_PATH) \ 137 $(LOCAL_PATH)/third_party/ots/include \ 138 $(LOCAL_PATH)/third_party/zlib \ 139 $(PWD)/frameworks/wilhelm/include \ 140 $(PWD)/bionic \ 141 $(PWD)/external/stlport/stlport 142 143 144# Flags passed to only C++ (and not C) files. 145LOCAL_CPPFLAGS_Debug := \ 146 -fno-rtti \ 147 -fno-threadsafe-statics \ 148 -fvisibility-inlines-hidden \ 149 -Wsign-compare \ 150 -Wno-non-virtual-dtor \ 151 -Wno-sign-promo 152 153 154LOCAL_FDO_SUPPORT_Debug := false 155 156# Flags passed to both C and C++ files. 157MY_CFLAGS_Release := \ 158 -fstack-protector \ 159 --param=ssp-buffer-size=4 \ 160 -Werror \ 161 -fno-exceptions \ 162 -fno-strict-aliasing \ 163 -Wall \ 164 -Wno-unused-parameter \ 165 -Wno-missing-field-initializers \ 166 -fvisibility=hidden \ 167 -pipe \ 168 -fPIC \ 169 -Wno-unused-local-typedefs \ 170 -m64 \ 171 -march=x86-64 \ 172 -ffunction-sections \ 173 -funwind-tables \ 174 -g \ 175 -fstack-protector \ 176 -fno-short-enums \ 177 -finline-limit=64 \ 178 -Wa,--noexecstack \ 179 -U_FORTIFY_SOURCE \ 180 -Wno-extra \ 181 -Wno-ignored-qualifiers \ 182 -Wno-type-limits \ 183 -Wno-unused-but-set-variable \ 184 -Os \ 185 -fno-ident \ 186 -fdata-sections \ 187 -ffunction-sections \ 188 -fomit-frame-pointer \ 189 -funwind-tables 190 191MY_DEFS_Release := \ 192 '-DV8_DEPRECATION_WARNINGS' \ 193 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 194 '-D_FILE_OFFSET_BITS=64' \ 195 '-DNO_TCMALLOC' \ 196 '-DDISABLE_NACL' \ 197 '-DCHROMIUM_BUILD' \ 198 '-DUSE_LIBJPEG_TURBO=1' \ 199 '-DENABLE_WEBRTC=1' \ 200 '-DUSE_PROPRIETARY_CODECS' \ 201 '-DENABLE_BROWSER_CDMS' \ 202 '-DENABLE_CONFIGURATION_POLICY' \ 203 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 204 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 205 '-DENABLE_EGLIMAGE=1' \ 206 '-DCLD_VERSION=1' \ 207 '-DENABLE_PRINTING=1' \ 208 '-DENABLE_MANAGED_USERS=1' \ 209 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 210 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 211 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 212 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 213 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 214 '-DVIDEO_HOLE=1' \ 215 '-DUSE_OPENSSL=1' \ 216 '-DUSE_OPENSSL_CERTS=1' \ 217 '-D__STDC_CONSTANT_MACROS' \ 218 '-D__STDC_FORMAT_MACROS' \ 219 '-DANDROID' \ 220 '-D__GNU_SOURCE=1' \ 221 '-DUSE_STLPORT=1' \ 222 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 223 '-DCHROME_BUILD_ID=""' \ 224 '-DNDEBUG' \ 225 '-DNVALGRIND' \ 226 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 227 '-D_FORTIFY_SOURCE=2' 228 229 230# Include paths placed before CFLAGS/CPPFLAGS 231LOCAL_C_INCLUDES_Release := \ 232 $(gyp_shared_intermediate_dir) \ 233 $(LOCAL_PATH) \ 234 $(LOCAL_PATH)/third_party/ots/include \ 235 $(LOCAL_PATH)/third_party/zlib \ 236 $(PWD)/frameworks/wilhelm/include \ 237 $(PWD)/bionic \ 238 $(PWD)/external/stlport/stlport 239 240 241# Flags passed to only C++ (and not C) files. 242LOCAL_CPPFLAGS_Release := \ 243 -fno-rtti \ 244 -fno-threadsafe-statics \ 245 -fvisibility-inlines-hidden \ 246 -Wsign-compare \ 247 -Wno-non-virtual-dtor \ 248 -Wno-sign-promo 249 250 251LOCAL_FDO_SUPPORT_Release := false 252 253LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 254LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 255LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 256LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 257LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 258### Rules for final target. 259 260LOCAL_LDFLAGS_Debug := \ 261 -Wl,-z,now \ 262 -Wl,-z,relro \ 263 -Wl,--fatal-warnings \ 264 -Wl,-z,noexecstack \ 265 -fPIC \ 266 -m64 \ 267 -fuse-ld=gold \ 268 -nostdlib \ 269 -Wl,--no-undefined \ 270 -Wl,--exclude-libs=ALL \ 271 -Wl,--warn-shared-textrel \ 272 -Wl,-O1 \ 273 -Wl,--as-needed 274 275 276LOCAL_LDFLAGS_Release := \ 277 -Wl,-z,now \ 278 -Wl,-z,relro \ 279 -Wl,--fatal-warnings \ 280 -Wl,-z,noexecstack \ 281 -fPIC \ 282 -m64 \ 283 -fuse-ld=gold \ 284 -nostdlib \ 285 -Wl,--no-undefined \ 286 -Wl,--exclude-libs=ALL \ 287 -Wl,-O1 \ 288 -Wl,--as-needed \ 289 -Wl,--gc-sections \ 290 -Wl,--warn-shared-textrel 291 292 293LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 294 295LOCAL_STATIC_LIBRARIES := 296 297# Enable grouping to fix circular references 298LOCAL_GROUP_STATIC_LIBRARIES := true 299 300LOCAL_SHARED_LIBRARIES := \ 301 libstlport \ 302 libdl 303 304# Add target alias to "gyp_all_modules" target. 305.PHONY: gyp_all_modules 306gyp_all_modules: third_party_ots_ots_gyp 307 308# Alias gyp target name. 309.PHONY: ots 310ots: third_party_ots_ots_gyp 311 312include $(BUILD_STATIC_LIBRARY) 313