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_freetype_ft2_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_GENERATED_SOURCES := 21 22 GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24 LOCAL_SRC_FILES := \ 25 third_party/freetype/src/base/ftbbox.c \ 26 third_party/freetype/src/base/ftbitmap.c \ 27 third_party/freetype/src/base/ftfstype.c \ 28 third_party/freetype/src/base/ftglyph.c \ 29 third_party/freetype/src/base/ftlcdfil.c \ 30 third_party/freetype/src/base/ftstroke.c \ 31 third_party/freetype/src/base/ftxf86.c \ 32 third_party/freetype/src/base/ftbase.c \ 33 third_party/freetype/src/base/ftsystem.c \ 34 third_party/freetype/src/base/ftinit.c \ 35 third_party/freetype/src/base/ftgasp.c \ 36 third_party/freetype/src/base/fttype1.c \ 37 third_party/freetype/src/raster/raster.c \ 38 third_party/freetype/src/sfnt/sfnt.c \ 39 third_party/freetype/src/smooth/smooth.c \ 40 third_party/freetype/src/autofit/autofit.c \ 41 third_party/freetype/src/truetype/truetype.c \ 42 third_party/freetype/src/cff/cff.c \ 43 third_party/freetype/src/psnames/psnames.c \ 44 third_party/freetype/src/pshinter/pshinter.c 45 46 47 # Flags passed to both C and C++ files. 48 MY_CFLAGS_Debug := \ 49 --param=ssp-buffer-size=4 \ 50 -fno-exceptions \ 51 -fno-strict-aliasing \ 52 -Wno-unused-parameter \ 53 -Wno-missing-field-initializers \ 54 -fvisibility=hidden \ 55 -pipe \ 56 -fPIC \ 57 -Wno-format \ 58 -m32 \ 59 -mmmx \ 60 -march=pentium4 \ 61 -msse2 \ 62 -mfpmath=sse \ 63 -fuse-ld=gold \ 64 -ffunction-sections \ 65 -funwind-tables \ 66 -g \ 67 -fno-short-enums \ 68 -finline-limit=64 \ 69 -Wa,--noexecstack \ 70 -U_FORTIFY_SOURCE \ 71 -Wno-extra \ 72 -Wno-ignored-qualifiers \ 73 -Wno-type-limits \ 74 -Wno-address \ 75 -Wno-format-security \ 76 -Wno-return-type \ 77 -Wno-sequence-point \ 78 -fno-stack-protector \ 79 -Os \ 80 -g \ 81 -fomit-frame-pointer \ 82 -fdata-sections \ 83 -ffunction-sections 84 85 MY_DEFS_Debug := \ 86 '-DANGLE_DX11' \ 87 '-D_FILE_OFFSET_BITS=64' \ 88 '-DNO_TCMALLOC' \ 89 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 90 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 91 '-DDISABLE_NACL' \ 92 '-DCHROMIUM_BUILD' \ 93 '-DUSE_LIBJPEG_TURBO=1' \ 94 '-DUSE_PROPRIETARY_CODECS' \ 95 '-DENABLE_CONFIGURATION_POLICY' \ 96 '-DENABLE_GPU=1' \ 97 '-DUSE_OPENSSL=1' \ 98 '-DENABLE_EGLIMAGE=1' \ 99 '-DFT2_BUILD_LIBRARY' \ 100 '-DDARWIN_NO_CARBON' \ 101 '-DANDROID' \ 102 '-D__GNU_SOURCE=1' \ 103 '-DUSE_STLPORT=1' \ 104 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 105 '-DCHROME_BUILD_ID=""' \ 106 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 107 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 108 '-D_DEBUG' 109 110 111 # Include paths placed before CFLAGS/CPPFLAGS 112 LOCAL_C_INCLUDES_Debug := \ 113 $(LOCAL_PATH)/third_party/freetype/build \ 114 $(LOCAL_PATH)/third_party/freetype/include \ 115 $(PWD)/frameworks/wilhelm/include \ 116 $(PWD)/bionic \ 117 $(PWD)/external/stlport/stlport 118 119 120 # Flags passed to only C++ (and not C) files. 121 LOCAL_CPPFLAGS_Debug := \ 122 -fno-rtti \ 123 -fno-threadsafe-statics \ 124 -fvisibility-inlines-hidden \ 125 -Wno-deprecated \ 126 -Wno-error=c++0x-compat \ 127 -Wno-non-virtual-dtor \ 128 -Wno-sign-promo \ 129 -Wno-non-virtual-dtor 130 131 132 # Flags passed to both C and C++ files. 133 MY_CFLAGS_Release := \ 134 --param=ssp-buffer-size=4 \ 135 -fno-exceptions \ 136 -fno-strict-aliasing \ 137 -Wno-unused-parameter \ 138 -Wno-missing-field-initializers \ 139 -fvisibility=hidden \ 140 -pipe \ 141 -fPIC \ 142 -Wno-format \ 143 -m32 \ 144 -mmmx \ 145 -march=pentium4 \ 146 -msse2 \ 147 -mfpmath=sse \ 148 -fuse-ld=gold \ 149 -ffunction-sections \ 150 -funwind-tables \ 151 -g \ 152 -fno-short-enums \ 153 -finline-limit=64 \ 154 -Wa,--noexecstack \ 155 -U_FORTIFY_SOURCE \ 156 -Wno-extra \ 157 -Wno-ignored-qualifiers \ 158 -Wno-type-limits \ 159 -Wno-address \ 160 -Wno-format-security \ 161 -Wno-return-type \ 162 -Wno-sequence-point \ 163 -fno-stack-protector \ 164 -Os \ 165 -fno-ident \ 166 -fdata-sections \ 167 -ffunction-sections \ 168 -fomit-frame-pointer \ 169 -fno-unwind-tables \ 170 -fno-asynchronous-unwind-tables 171 172 MY_DEFS_Release := \ 173 '-DANGLE_DX11' \ 174 '-D_FILE_OFFSET_BITS=64' \ 175 '-DNO_TCMALLOC' \ 176 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 177 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 178 '-DDISABLE_NACL' \ 179 '-DCHROMIUM_BUILD' \ 180 '-DUSE_LIBJPEG_TURBO=1' \ 181 '-DUSE_PROPRIETARY_CODECS' \ 182 '-DENABLE_CONFIGURATION_POLICY' \ 183 '-DENABLE_GPU=1' \ 184 '-DUSE_OPENSSL=1' \ 185 '-DENABLE_EGLIMAGE=1' \ 186 '-DFT2_BUILD_LIBRARY' \ 187 '-DDARWIN_NO_CARBON' \ 188 '-DANDROID' \ 189 '-D__GNU_SOURCE=1' \ 190 '-DUSE_STLPORT=1' \ 191 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 192 '-DCHROME_BUILD_ID=""' \ 193 '-DNDEBUG' \ 194 '-DNVALGRIND' \ 195 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 196 197 198 # Include paths placed before CFLAGS/CPPFLAGS 199 LOCAL_C_INCLUDES_Release := \ 200 $(LOCAL_PATH)/third_party/freetype/build \ 201 $(LOCAL_PATH)/third_party/freetype/include \ 202 $(PWD)/frameworks/wilhelm/include \ 203 $(PWD)/bionic \ 204 $(PWD)/external/stlport/stlport 205 206 207 # Flags passed to only C++ (and not C) files. 208 LOCAL_CPPFLAGS_Release := \ 209 -fno-rtti \ 210 -fno-threadsafe-statics \ 211 -fvisibility-inlines-hidden \ 212 -Wno-deprecated \ 213 -Wno-error=c++0x-compat \ 214 -Wno-non-virtual-dtor \ 215 -Wno-sign-promo \ 216 -Wno-non-virtual-dtor 217 218 219 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 220 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 221 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 222 ### Rules for final target. 223 224 LOCAL_LDFLAGS_Debug := \ 225 -Wl,-z,now \ 226 -Wl,-z,relro \ 227 -Wl,-z,noexecstack \ 228 -fPIC \ 229 -m32 \ 230 -fuse-ld=gold \ 231 -nostdlib \ 232 -Wl,--no-undefined \ 233 -Wl,--exclude-libs=ALL \ 234 -Wl,--fatal-warnings \ 235 -Wl,--gc-sections \ 236 -Wl,--warn-shared-textrel \ 237 -Wl,-O1 \ 238 -Wl,--as-needed 239 240 241 LOCAL_LDFLAGS_Release := \ 242 -Wl,-z,now \ 243 -Wl,-z,relro \ 244 -Wl,-z,noexecstack \ 245 -fPIC \ 246 -m32 \ 247 -fuse-ld=gold \ 248 -nostdlib \ 249 -Wl,--no-undefined \ 250 -Wl,--exclude-libs=ALL \ 251 -Wl,-O1 \ 252 -Wl,--as-needed \ 253 -Wl,--gc-sections \ 254 -Wl,--fatal-warnings \ 255 -Wl,--warn-shared-textrel 256 257 258 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 259 260 LOCAL_STATIC_LIBRARIES := 261 262 # Enable grouping to fix circular references 263 LOCAL_GROUP_STATIC_LIBRARIES := true 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_freetype_ft2_gyp 272 273 # Alias gyp target name. 274 .PHONY: ft2 275 ft2: third_party_freetype_ft2_gyp 276 277 include $(BUILD_STATIC_LIBRARY) 278