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