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 -fstack-protector \ 64 --param=ssp-buffer-size=4 \ 65 -Werror \ 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 -gdwarf-4 \ 91 -fdata-sections \ 92 -ffunction-sections \ 93 -fomit-frame-pointer \ 94 -funwind-tables 95 96 MY_DEFS_Debug := \ 97 '-DV8_DEPRECATION_WARNINGS' \ 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="https://proxy-dev.googlezip.net:443/"' \ 115 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 116 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 117 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 118 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 119 '-DVIDEO_HOLE=1' \ 120 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 121 '-DUSE_OPENSSL=1' \ 122 '-DUSE_OPENSSL_CERTS=1' \ 123 '-D__STDC_CONSTANT_MACROS' \ 124 '-D__STDC_FORMAT_MACROS' \ 125 '-DANDROID' \ 126 '-D__GNU_SOURCE=1' \ 127 '-DUSE_STLPORT=1' \ 128 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 129 '-DCHROME_BUILD_ID=""' \ 130 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 131 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 132 '-D_DEBUG' 133 134 135 # Include paths placed before CFLAGS/CPPFLAGS 136 LOCAL_C_INCLUDES_Debug := \ 137 $(gyp_shared_intermediate_dir) \ 138 $(LOCAL_PATH) \ 139 $(LOCAL_PATH)/third_party/ots/include \ 140 $(LOCAL_PATH)/third_party/zlib \ 141 $(PWD)/frameworks/wilhelm/include \ 142 $(PWD)/bionic \ 143 $(PWD)/external/stlport/stlport 144 145 146 # Flags passed to only C++ (and not C) files. 147 LOCAL_CPPFLAGS_Debug := \ 148 -fno-exceptions \ 149 -fno-rtti \ 150 -fno-threadsafe-statics \ 151 -fvisibility-inlines-hidden \ 152 -Wsign-compare \ 153 -std=gnu++11 \ 154 -Wno-narrowing \ 155 -Wno-literal-suffix \ 156 -Wno-non-virtual-dtor \ 157 -Wno-sign-promo 158 159 160 # Flags passed to both C and C++ files. 161 MY_CFLAGS_Release := \ 162 -fstack-protector \ 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 -m64 \ 174 -march=x86-64 \ 175 -ffunction-sections \ 176 -funwind-tables \ 177 -g \ 178 -fstack-protector \ 179 -fno-short-enums \ 180 -finline-limit=64 \ 181 -Wa,--noexecstack \ 182 -U_FORTIFY_SOURCE \ 183 -Wno-extra \ 184 -Wno-ignored-qualifiers \ 185 -Wno-type-limits \ 186 -Wno-unused-but-set-variable \ 187 -Os \ 188 -fno-ident \ 189 -fdata-sections \ 190 -ffunction-sections \ 191 -fomit-frame-pointer \ 192 -funwind-tables 193 194 MY_DEFS_Release := \ 195 '-DV8_DEPRECATION_WARNINGS' \ 196 '-D_FILE_OFFSET_BITS=64' \ 197 '-DNO_TCMALLOC' \ 198 '-DDISABLE_NACL' \ 199 '-DCHROMIUM_BUILD' \ 200 '-DUSE_LIBJPEG_TURBO=1' \ 201 '-DENABLE_WEBRTC=1' \ 202 '-DUSE_PROPRIETARY_CODECS' \ 203 '-DENABLE_BROWSER_CDMS' \ 204 '-DENABLE_CONFIGURATION_POLICY' \ 205 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 206 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 207 '-DENABLE_EGLIMAGE=1' \ 208 '-DCLD_VERSION=1' \ 209 '-DENABLE_PRINTING=1' \ 210 '-DENABLE_MANAGED_USERS=1' \ 211 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 212 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 213 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 214 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 215 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 216 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 217 '-DVIDEO_HOLE=1' \ 218 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 219 '-DUSE_OPENSSL=1' \ 220 '-DUSE_OPENSSL_CERTS=1' \ 221 '-D__STDC_CONSTANT_MACROS' \ 222 '-D__STDC_FORMAT_MACROS' \ 223 '-DANDROID' \ 224 '-D__GNU_SOURCE=1' \ 225 '-DUSE_STLPORT=1' \ 226 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 227 '-DCHROME_BUILD_ID=""' \ 228 '-DNDEBUG' \ 229 '-DNVALGRIND' \ 230 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 231 '-D_FORTIFY_SOURCE=2' 232 233 234 # Include paths placed before CFLAGS/CPPFLAGS 235 LOCAL_C_INCLUDES_Release := \ 236 $(gyp_shared_intermediate_dir) \ 237 $(LOCAL_PATH) \ 238 $(LOCAL_PATH)/third_party/ots/include \ 239 $(LOCAL_PATH)/third_party/zlib \ 240 $(PWD)/frameworks/wilhelm/include \ 241 $(PWD)/bionic \ 242 $(PWD)/external/stlport/stlport 243 244 245 # Flags passed to only C++ (and not C) files. 246 LOCAL_CPPFLAGS_Release := \ 247 -fno-exceptions \ 248 -fno-rtti \ 249 -fno-threadsafe-statics \ 250 -fvisibility-inlines-hidden \ 251 -Wsign-compare \ 252 -std=gnu++11 \ 253 -Wno-narrowing \ 254 -Wno-literal-suffix \ 255 -Wno-non-virtual-dtor \ 256 -Wno-sign-promo 257 258 259 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 260 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 261 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 262 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 263 ### Rules for final target. 264 265 LOCAL_SHARED_LIBRARIES := \ 266 libstlport \ 267 libdl 268 269 # Add target alias to "gyp_all_modules" target. 270 .PHONY: gyp_all_modules 271 gyp_all_modules: third_party_ots_ots_gyp 272 273 # Alias gyp target name. 274 .PHONY: ots 275 ots: third_party_ots_ots_gyp 276 277 include $(BUILD_STATIC_LIBRARY) 278