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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_CPP_EXTENSION := .cc 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_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. 62 MY_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 -msse2 \ 74 -mfpmath=sse \ 75 -mmmx \ 76 -m32 \ 77 -ffunction-sections \ 78 -funwind-tables \ 79 -g \ 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 -fno-stack-protector \ 89 -Os \ 90 -g \ 91 -gdwarf-4 \ 92 -fdata-sections \ 93 -ffunction-sections \ 94 -fomit-frame-pointer \ 95 -funwind-tables 96 97 MY_DEFS_Debug := \ 98 '-DV8_DEPRECATION_WARNINGS' \ 99 '-D_FILE_OFFSET_BITS=64' \ 100 '-DNO_TCMALLOC' \ 101 '-DDISABLE_NACL' \ 102 '-DCHROMIUM_BUILD' \ 103 '-DUSE_LIBJPEG_TURBO=1' \ 104 '-DENABLE_WEBRTC=1' \ 105 '-DUSE_PROPRIETARY_CODECS' \ 106 '-DENABLE_BROWSER_CDMS' \ 107 '-DENABLE_CONFIGURATION_POLICY' \ 108 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 109 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 110 '-DENABLE_EGLIMAGE=1' \ 111 '-DCLD_VERSION=1' \ 112 '-DENABLE_PRINTING=1' \ 113 '-DENABLE_MANAGED_USERS=1' \ 114 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 115 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 116 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 117 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 118 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 119 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 120 '-DVIDEO_HOLE=1' \ 121 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 122 '-DUSE_OPENSSL=1' \ 123 '-DUSE_OPENSSL_CERTS=1' \ 124 '-D__STDC_CONSTANT_MACROS' \ 125 '-D__STDC_FORMAT_MACROS' \ 126 '-DANDROID' \ 127 '-D__GNU_SOURCE=1' \ 128 '-DUSE_STLPORT=1' \ 129 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 130 '-DCHROME_BUILD_ID=""' \ 131 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 132 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 133 '-D_DEBUG' 134 135 136 # Include paths placed before CFLAGS/CPPFLAGS 137 LOCAL_C_INCLUDES_Debug := \ 138 $(gyp_shared_intermediate_dir) \ 139 $(LOCAL_PATH) \ 140 $(LOCAL_PATH)/third_party/ots/include \ 141 $(LOCAL_PATH)/third_party/zlib \ 142 $(PWD)/frameworks/wilhelm/include \ 143 $(PWD)/bionic \ 144 $(PWD)/external/stlport/stlport 145 146 147 # Flags passed to only C++ (and not C) files. 148 LOCAL_CPPFLAGS_Debug := \ 149 -fno-exceptions \ 150 -fno-rtti \ 151 -fno-threadsafe-statics \ 152 -fvisibility-inlines-hidden \ 153 -Wsign-compare \ 154 -std=gnu++11 \ 155 -Wno-narrowing \ 156 -Wno-literal-suffix \ 157 -Wno-non-virtual-dtor \ 158 -Wno-sign-promo 159 160 161 # Flags passed to both C and C++ files. 162 MY_CFLAGS_Release := \ 163 --param=ssp-buffer-size=4 \ 164 -Werror \ 165 -fno-strict-aliasing \ 166 -Wall \ 167 -Wno-unused-parameter \ 168 -Wno-missing-field-initializers \ 169 -fvisibility=hidden \ 170 -pipe \ 171 -fPIC \ 172 -Wno-unused-local-typedefs \ 173 -msse2 \ 174 -mfpmath=sse \ 175 -mmmx \ 176 -m32 \ 177 -ffunction-sections \ 178 -funwind-tables \ 179 -g \ 180 -fno-short-enums \ 181 -finline-limit=64 \ 182 -Wa,--noexecstack \ 183 -U_FORTIFY_SOURCE \ 184 -Wno-extra \ 185 -Wno-ignored-qualifiers \ 186 -Wno-type-limits \ 187 -Wno-unused-but-set-variable \ 188 -fno-stack-protector \ 189 -Os \ 190 -fno-ident \ 191 -fdata-sections \ 192 -ffunction-sections \ 193 -fomit-frame-pointer \ 194 -funwind-tables 195 196 MY_DEFS_Release := \ 197 '-DV8_DEPRECATION_WARNINGS' \ 198 '-D_FILE_OFFSET_BITS=64' \ 199 '-DNO_TCMALLOC' \ 200 '-DDISABLE_NACL' \ 201 '-DCHROMIUM_BUILD' \ 202 '-DUSE_LIBJPEG_TURBO=1' \ 203 '-DENABLE_WEBRTC=1' \ 204 '-DUSE_PROPRIETARY_CODECS' \ 205 '-DENABLE_BROWSER_CDMS' \ 206 '-DENABLE_CONFIGURATION_POLICY' \ 207 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 208 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 209 '-DENABLE_EGLIMAGE=1' \ 210 '-DCLD_VERSION=1' \ 211 '-DENABLE_PRINTING=1' \ 212 '-DENABLE_MANAGED_USERS=1' \ 213 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 214 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 215 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 216 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 217 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 218 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 219 '-DVIDEO_HOLE=1' \ 220 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 221 '-DUSE_OPENSSL=1' \ 222 '-DUSE_OPENSSL_CERTS=1' \ 223 '-D__STDC_CONSTANT_MACROS' \ 224 '-D__STDC_FORMAT_MACROS' \ 225 '-DANDROID' \ 226 '-D__GNU_SOURCE=1' \ 227 '-DUSE_STLPORT=1' \ 228 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 229 '-DCHROME_BUILD_ID=""' \ 230 '-DNDEBUG' \ 231 '-DNVALGRIND' \ 232 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 233 '-D_FORTIFY_SOURCE=2' 234 235 236 # Include paths placed before CFLAGS/CPPFLAGS 237 LOCAL_C_INCLUDES_Release := \ 238 $(gyp_shared_intermediate_dir) \ 239 $(LOCAL_PATH) \ 240 $(LOCAL_PATH)/third_party/ots/include \ 241 $(LOCAL_PATH)/third_party/zlib \ 242 $(PWD)/frameworks/wilhelm/include \ 243 $(PWD)/bionic \ 244 $(PWD)/external/stlport/stlport 245 246 247 # Flags passed to only C++ (and not C) files. 248 LOCAL_CPPFLAGS_Release := \ 249 -fno-exceptions \ 250 -fno-rtti \ 251 -fno-threadsafe-statics \ 252 -fvisibility-inlines-hidden \ 253 -Wsign-compare \ 254 -std=gnu++11 \ 255 -Wno-narrowing \ 256 -Wno-literal-suffix \ 257 -Wno-non-virtual-dtor \ 258 -Wno-sign-promo 259 260 261 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 262 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 263 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 264 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 265 ### Rules for final target. 266 267 LOCAL_SHARED_LIBRARIES := \ 268 libstlport \ 269 libdl 270 271 # Add target alias to "gyp_all_modules" target. 272 .PHONY: gyp_all_modules 273 gyp_all_modules: third_party_ots_ots_gyp 274 275 # Alias gyp target name. 276 .PHONY: ots 277 ots: third_party_ots_ots_gyp 278 279 include $(BUILD_STATIC_LIBRARY) 280