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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_CPP_EXTENSION := .cc 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_SRC_FILES := \ 26 third_party/ots/src/cbdt.cc \ 27 third_party/ots/src/cblc.cc \ 28 third_party/ots/src/cff.cc \ 29 third_party/ots/src/cff_type2_charstring.cc \ 30 third_party/ots/src/cmap.cc \ 31 third_party/ots/src/cvt.cc \ 32 third_party/ots/src/fpgm.cc \ 33 third_party/ots/src/gasp.cc \ 34 third_party/ots/src/gdef.cc \ 35 third_party/ots/src/glyf.cc \ 36 third_party/ots/src/gpos.cc \ 37 third_party/ots/src/gsub.cc \ 38 third_party/ots/src/hdmx.cc \ 39 third_party/ots/src/head.cc \ 40 third_party/ots/src/hhea.cc \ 41 third_party/ots/src/hmtx.cc \ 42 third_party/ots/src/kern.cc \ 43 third_party/ots/src/layout.cc \ 44 third_party/ots/src/loca.cc \ 45 third_party/ots/src/ltsh.cc \ 46 third_party/ots/src/maxp.cc \ 47 third_party/ots/src/math.cc \ 48 third_party/ots/src/metrics.cc \ 49 third_party/ots/src/name.cc \ 50 third_party/ots/src/os2.cc \ 51 third_party/ots/src/ots.cc \ 52 third_party/ots/src/post.cc \ 53 third_party/ots/src/prep.cc \ 54 third_party/ots/src/vdmx.cc \ 55 third_party/ots/src/vhea.cc \ 56 third_party/ots/src/vmtx.cc \ 57 third_party/ots/src/vorg.cc \ 58 third_party/ots/src/woff2.cc 59 60 61# Flags passed to both C and C++ files. 62MY_CFLAGS_Debug := \ 63 --param=ssp-buffer-size=4 \ 64 -Werror \ 65 -fno-strict-aliasing \ 66 -Wall \ 67 -Wno-unused-parameter \ 68 -Wno-missing-field-initializers \ 69 -fvisibility=hidden \ 70 -pipe \ 71 -fPIC \ 72 -Wno-unused-local-typedefs \ 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-unused-but-set-variable \ 84 -Os \ 85 -g \ 86 -gdwarf-4 \ 87 -fdata-sections \ 88 -ffunction-sections \ 89 -funwind-tables 90 91MY_DEFS_Debug := \ 92 '-DV8_DEPRECATION_WARNINGS' \ 93 '-D_FILE_OFFSET_BITS=64' \ 94 '-DNO_TCMALLOC' \ 95 '-DDISABLE_NACL' \ 96 '-DCHROMIUM_BUILD' \ 97 '-DUSE_LIBJPEG_TURBO=1' \ 98 '-DENABLE_WEBRTC=1' \ 99 '-DUSE_PROPRIETARY_CODECS' \ 100 '-DENABLE_BROWSER_CDMS' \ 101 '-DENABLE_CONFIGURATION_POLICY' \ 102 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 103 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 104 '-DENABLE_EGLIMAGE=1' \ 105 '-DCLD_VERSION=1' \ 106 '-DENABLE_PRINTING=1' \ 107 '-DENABLE_MANAGED_USERS=1' \ 108 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 109 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 110 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 111 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 112 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 113 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 114 '-DVIDEO_HOLE=1' \ 115 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 116 '-DUSE_OPENSSL=1' \ 117 '-DUSE_OPENSSL_CERTS=1' \ 118 '-D__STDC_CONSTANT_MACROS' \ 119 '-D__STDC_FORMAT_MACROS' \ 120 '-DANDROID' \ 121 '-D__GNU_SOURCE=1' \ 122 '-DUSE_STLPORT=1' \ 123 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 124 '-DCHROME_BUILD_ID=""' \ 125 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 126 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 127 '-D_DEBUG' 128 129 130# Include paths placed before CFLAGS/CPPFLAGS 131LOCAL_C_INCLUDES_Debug := \ 132 $(gyp_shared_intermediate_dir) \ 133 $(LOCAL_PATH) \ 134 $(LOCAL_PATH)/third_party/ots/include \ 135 $(LOCAL_PATH)/third_party/zlib \ 136 $(PWD)/frameworks/wilhelm/include \ 137 $(PWD)/bionic \ 138 $(PWD)/external/stlport/stlport 139 140 141# Flags passed to only C++ (and not C) files. 142LOCAL_CPPFLAGS_Debug := \ 143 -fno-exceptions \ 144 -fno-rtti \ 145 -fno-threadsafe-statics \ 146 -fvisibility-inlines-hidden \ 147 -Wsign-compare \ 148 -std=gnu++11 \ 149 -Wno-narrowing \ 150 -Wno-literal-suffix \ 151 -Wno-non-virtual-dtor \ 152 -Wno-sign-promo 153 154 155# Flags passed to both C and C++ files. 156MY_CFLAGS_Release := \ 157 --param=ssp-buffer-size=4 \ 158 -Werror \ 159 -fno-strict-aliasing \ 160 -Wall \ 161 -Wno-unused-parameter \ 162 -Wno-missing-field-initializers \ 163 -fvisibility=hidden \ 164 -pipe \ 165 -fPIC \ 166 -Wno-unused-local-typedefs \ 167 -ffunction-sections \ 168 -funwind-tables \ 169 -g \ 170 -fno-short-enums \ 171 -finline-limit=64 \ 172 -Wa,--noexecstack \ 173 -U_FORTIFY_SOURCE \ 174 -Wno-extra \ 175 -Wno-ignored-qualifiers \ 176 -Wno-type-limits \ 177 -Wno-unused-but-set-variable \ 178 -Os \ 179 -fno-ident \ 180 -fdata-sections \ 181 -ffunction-sections \ 182 -funwind-tables 183 184MY_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 '-DENABLE_WEBRTC=1' \ 192 '-DUSE_PROPRIETARY_CODECS' \ 193 '-DENABLE_BROWSER_CDMS' \ 194 '-DENABLE_CONFIGURATION_POLICY' \ 195 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 196 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 197 '-DENABLE_EGLIMAGE=1' \ 198 '-DCLD_VERSION=1' \ 199 '-DENABLE_PRINTING=1' \ 200 '-DENABLE_MANAGED_USERS=1' \ 201 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 202 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 203 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 204 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 205 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 206 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 207 '-DVIDEO_HOLE=1' \ 208 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 209 '-DUSE_OPENSSL=1' \ 210 '-DUSE_OPENSSL_CERTS=1' \ 211 '-D__STDC_CONSTANT_MACROS' \ 212 '-D__STDC_FORMAT_MACROS' \ 213 '-DANDROID' \ 214 '-D__GNU_SOURCE=1' \ 215 '-DUSE_STLPORT=1' \ 216 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 217 '-DCHROME_BUILD_ID=""' \ 218 '-DNDEBUG' \ 219 '-DNVALGRIND' \ 220 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 221 '-D_FORTIFY_SOURCE=2' 222 223 224# Include paths placed before CFLAGS/CPPFLAGS 225LOCAL_C_INCLUDES_Release := \ 226 $(gyp_shared_intermediate_dir) \ 227 $(LOCAL_PATH) \ 228 $(LOCAL_PATH)/third_party/ots/include \ 229 $(LOCAL_PATH)/third_party/zlib \ 230 $(PWD)/frameworks/wilhelm/include \ 231 $(PWD)/bionic \ 232 $(PWD)/external/stlport/stlport 233 234 235# Flags passed to only C++ (and not C) files. 236LOCAL_CPPFLAGS_Release := \ 237 -fno-exceptions \ 238 -fno-rtti \ 239 -fno-threadsafe-statics \ 240 -fvisibility-inlines-hidden \ 241 -Wsign-compare \ 242 -std=gnu++11 \ 243 -Wno-narrowing \ 244 -Wno-literal-suffix \ 245 -Wno-non-virtual-dtor \ 246 -Wno-sign-promo 247 248 249LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 250LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 251LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 252LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 253### Rules for final target. 254 255LOCAL_SHARED_LIBRARIES := \ 256 libstlport \ 257 libdl 258 259# Add target alias to "gyp_all_modules" target. 260.PHONY: gyp_all_modules 261gyp_all_modules: third_party_ots_ots_gyp 262 263# Alias gyp target name. 264.PHONY: ots 265ots: third_party_ots_ots_gyp 266 267include $(BUILD_STATIC_LIBRARY) 268