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