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 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 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/cff.cc \ 27 third_party/ots/src/cff_type2_charstring.cc \ 28 third_party/ots/src/cmap.cc \ 29 third_party/ots/src/cvt.cc \ 30 third_party/ots/src/fpgm.cc \ 31 third_party/ots/src/gasp.cc \ 32 third_party/ots/src/gdef.cc \ 33 third_party/ots/src/glyf.cc \ 34 third_party/ots/src/gpos.cc \ 35 third_party/ots/src/gsub.cc \ 36 third_party/ots/src/hdmx.cc \ 37 third_party/ots/src/head.cc \ 38 third_party/ots/src/hhea.cc \ 39 third_party/ots/src/hmtx.cc \ 40 third_party/ots/src/kern.cc \ 41 third_party/ots/src/layout.cc \ 42 third_party/ots/src/loca.cc \ 43 third_party/ots/src/ltsh.cc \ 44 third_party/ots/src/maxp.cc \ 45 third_party/ots/src/metrics.cc \ 46 third_party/ots/src/name.cc \ 47 third_party/ots/src/os2.cc \ 48 third_party/ots/src/ots.cc \ 49 third_party/ots/src/post.cc \ 50 third_party/ots/src/prep.cc \ 51 third_party/ots/src/vdmx.cc \ 52 third_party/ots/src/vhea.cc \ 53 third_party/ots/src/vmtx.cc \ 54 third_party/ots/src/vorg.cc \ 55 third_party/ots/src/woff2.cc 56 57 58 # Flags passed to both C and C++ files. 59 MY_CFLAGS_Debug := \ 60 --param=ssp-buffer-size=4 \ 61 -Werror \ 62 -fno-exceptions \ 63 -fno-strict-aliasing \ 64 -Wall \ 65 -Wno-unused-parameter \ 66 -Wno-missing-field-initializers \ 67 -fvisibility=hidden \ 68 -pipe \ 69 -fPIC \ 70 -m32 \ 71 -mmmx \ 72 -march=pentium4 \ 73 -msse2 \ 74 -mfpmath=sse \ 75 -fuse-ld=gold \ 76 -ffunction-sections \ 77 -funwind-tables \ 78 -g \ 79 -fno-short-enums \ 80 -finline-limit=64 \ 81 -Wa,--noexecstack \ 82 -U_FORTIFY_SOURCE \ 83 -Wno-extra \ 84 -Wno-ignored-qualifiers \ 85 -Wno-type-limits \ 86 -fno-stack-protector \ 87 -Os \ 88 -g \ 89 -fomit-frame-pointer \ 90 -fdata-sections \ 91 -ffunction-sections 92 93 MY_DEFS_Debug := \ 94 '-DV8_DEPRECATION_WARNINGS' \ 95 '-D_FILE_OFFSET_BITS=64' \ 96 '-DNO_TCMALLOC' \ 97 '-DDISABLE_NACL' \ 98 '-DCHROMIUM_BUILD' \ 99 '-DUSE_LIBJPEG_TURBO=1' \ 100 '-DUSE_PROPRIETARY_CODECS' \ 101 '-DENABLE_CONFIGURATION_POLICY' \ 102 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 103 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 104 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 105 '-DUSE_OPENSSL=1' \ 106 '-DENABLE_EGLIMAGE=1' \ 107 '-DCLD_VERSION=1' \ 108 '-DENABLE_PRINTING=1' \ 109 '-DENABLE_MANAGED_USERS=1' \ 110 '-D__STDC_CONSTANT_MACROS' \ 111 '-D__STDC_FORMAT_MACROS' \ 112 '-DANDROID' \ 113 '-D__GNU_SOURCE=1' \ 114 '-DUSE_STLPORT=1' \ 115 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 116 '-DCHROME_BUILD_ID=""' \ 117 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 118 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 119 '-D_DEBUG' 120 121 122 # Include paths placed before CFLAGS/CPPFLAGS 123 LOCAL_C_INCLUDES_Debug := \ 124 $(LOCAL_PATH) \ 125 $(LOCAL_PATH)/third_party/ots/include \ 126 $(LOCAL_PATH)/third_party/lzma_sdk \ 127 $(LOCAL_PATH)/third_party/zlib \ 128 $(PWD)/frameworks/wilhelm/include \ 129 $(PWD)/bionic \ 130 $(PWD)/external/stlport/stlport 131 132 133 # Flags passed to only C++ (and not C) files. 134 LOCAL_CPPFLAGS_Debug := \ 135 -fno-rtti \ 136 -fno-threadsafe-statics \ 137 -fvisibility-inlines-hidden \ 138 -Wsign-compare \ 139 -Wno-error=c++0x-compat \ 140 -Wno-non-virtual-dtor \ 141 -Wno-sign-promo 142 143 144 # Flags passed to both C and C++ files. 145 MY_CFLAGS_Release := \ 146 --param=ssp-buffer-size=4 \ 147 -Werror \ 148 -fno-exceptions \ 149 -fno-strict-aliasing \ 150 -Wall \ 151 -Wno-unused-parameter \ 152 -Wno-missing-field-initializers \ 153 -fvisibility=hidden \ 154 -pipe \ 155 -fPIC \ 156 -m32 \ 157 -mmmx \ 158 -march=pentium4 \ 159 -msse2 \ 160 -mfpmath=sse \ 161 -fuse-ld=gold \ 162 -ffunction-sections \ 163 -funwind-tables \ 164 -g \ 165 -fno-short-enums \ 166 -finline-limit=64 \ 167 -Wa,--noexecstack \ 168 -U_FORTIFY_SOURCE \ 169 -Wno-extra \ 170 -Wno-ignored-qualifiers \ 171 -Wno-type-limits \ 172 -fno-stack-protector \ 173 -Os \ 174 -fno-ident \ 175 -fdata-sections \ 176 -ffunction-sections \ 177 -fomit-frame-pointer \ 178 -fno-unwind-tables \ 179 -fno-asynchronous-unwind-tables 180 181 MY_DEFS_Release := \ 182 '-DV8_DEPRECATION_WARNINGS' \ 183 '-D_FILE_OFFSET_BITS=64' \ 184 '-DNO_TCMALLOC' \ 185 '-DDISABLE_NACL' \ 186 '-DCHROMIUM_BUILD' \ 187 '-DUSE_LIBJPEG_TURBO=1' \ 188 '-DUSE_PROPRIETARY_CODECS' \ 189 '-DENABLE_CONFIGURATION_POLICY' \ 190 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 191 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 192 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 193 '-DUSE_OPENSSL=1' \ 194 '-DENABLE_EGLIMAGE=1' \ 195 '-DCLD_VERSION=1' \ 196 '-DENABLE_PRINTING=1' \ 197 '-DENABLE_MANAGED_USERS=1' \ 198 '-D__STDC_CONSTANT_MACROS' \ 199 '-D__STDC_FORMAT_MACROS' \ 200 '-DANDROID' \ 201 '-D__GNU_SOURCE=1' \ 202 '-DUSE_STLPORT=1' \ 203 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 204 '-DCHROME_BUILD_ID=""' \ 205 '-DNDEBUG' \ 206 '-DNVALGRIND' \ 207 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 208 '-D_FORTIFY_SOURCE=2' 209 210 211 # Include paths placed before CFLAGS/CPPFLAGS 212 LOCAL_C_INCLUDES_Release := \ 213 $(LOCAL_PATH) \ 214 $(LOCAL_PATH)/third_party/ots/include \ 215 $(LOCAL_PATH)/third_party/lzma_sdk \ 216 $(LOCAL_PATH)/third_party/zlib \ 217 $(PWD)/frameworks/wilhelm/include \ 218 $(PWD)/bionic \ 219 $(PWD)/external/stlport/stlport 220 221 222 # Flags passed to only C++ (and not C) files. 223 LOCAL_CPPFLAGS_Release := \ 224 -fno-rtti \ 225 -fno-threadsafe-statics \ 226 -fvisibility-inlines-hidden \ 227 -Wsign-compare \ 228 -Wno-error=c++0x-compat \ 229 -Wno-non-virtual-dtor \ 230 -Wno-sign-promo 231 232 233 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 234 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 235 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 236 ### Rules for final target. 237 238 LOCAL_LDFLAGS_Debug := \ 239 -Wl,-z,now \ 240 -Wl,-z,relro \ 241 -Wl,-z,noexecstack \ 242 -fPIC \ 243 -m32 \ 244 -fuse-ld=gold \ 245 -nostdlib \ 246 -Wl,--no-undefined \ 247 -Wl,--exclude-libs=ALL \ 248 -Wl,--fatal-warnings \ 249 -Wl,--gc-sections \ 250 -Wl,--warn-shared-textrel \ 251 -Wl,-O1 \ 252 -Wl,--as-needed 253 254 255 LOCAL_LDFLAGS_Release := \ 256 -Wl,-z,now \ 257 -Wl,-z,relro \ 258 -Wl,-z,noexecstack \ 259 -fPIC \ 260 -m32 \ 261 -fuse-ld=gold \ 262 -nostdlib \ 263 -Wl,--no-undefined \ 264 -Wl,--exclude-libs=ALL \ 265 -Wl,-O1 \ 266 -Wl,--as-needed \ 267 -Wl,--gc-sections \ 268 -Wl,--fatal-warnings \ 269 -Wl,--warn-shared-textrel 270 271 272 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 273 274 LOCAL_STATIC_LIBRARIES := 275 276 # Enable grouping to fix circular references 277 LOCAL_GROUP_STATIC_LIBRARIES := true 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