Home | History | Annotate | Download | only in freetype
      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 	-fstack-protector \
     50 	--param=ssp-buffer-size=4 \
     51 	-fno-exceptions \
     52 	-fno-strict-aliasing \
     53 	-Wno-unused-parameter \
     54 	-Wno-missing-field-initializers \
     55 	-fvisibility=hidden \
     56 	-pipe \
     57 	-fPIC \
     58 	-Wno-format \
     59 	-fno-tree-sra \
     60 	-fuse-ld=gold \
     61 	-Wno-psabi \
     62 	-ffunction-sections \
     63 	-funwind-tables \
     64 	-g \
     65 	-fstack-protector \
     66 	-fno-short-enums \
     67 	-finline-limit=64 \
     68 	-Wa,--noexecstack \
     69 	-U_FORTIFY_SOURCE \
     70 	-Wno-extra \
     71 	-Wno-ignored-qualifiers \
     72 	-Wno-type-limits \
     73 	-Wno-address \
     74 	-Wno-format-security \
     75 	-Wno-return-type \
     76 	-Wno-sequence-point \
     77 	-Os \
     78 	-g \
     79 	-fomit-frame-pointer \
     80 	-fdata-sections \
     81 	-ffunction-sections
     82 
     83 MY_DEFS_Debug := \
     84 	'-DANGLE_DX11' \
     85 	'-D_FILE_OFFSET_BITS=64' \
     86 	'-DNO_TCMALLOC' \
     87 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     88 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     89 	'-DDISABLE_NACL' \
     90 	'-DCHROMIUM_BUILD' \
     91 	'-DUSE_LIBJPEG_TURBO=1' \
     92 	'-DUSE_PROPRIETARY_CODECS' \
     93 	'-DENABLE_CONFIGURATION_POLICY' \
     94 	'-DENABLE_GPU=1' \
     95 	'-DUSE_OPENSSL=1' \
     96 	'-DENABLE_EGLIMAGE=1' \
     97 	'-DFT2_BUILD_LIBRARY' \
     98 	'-DDARWIN_NO_CARBON' \
     99 	'-DANDROID' \
    100 	'-D__GNU_SOURCE=1' \
    101 	'-DUSE_STLPORT=1' \
    102 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    103 	'-DCHROME_BUILD_ID=""' \
    104 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    105 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    106 	'-D_DEBUG'
    107 
    108 
    109 # Include paths placed before CFLAGS/CPPFLAGS
    110 LOCAL_C_INCLUDES_Debug := \
    111 	$(LOCAL_PATH)/third_party/freetype/build \
    112 	$(LOCAL_PATH)/third_party/freetype/include \
    113 	$(PWD)/frameworks/wilhelm/include \
    114 	$(PWD)/bionic \
    115 	$(PWD)/external/stlport/stlport
    116 
    117 
    118 # Flags passed to only C++ (and not C) files.
    119 LOCAL_CPPFLAGS_Debug := \
    120 	-fno-rtti \
    121 	-fno-threadsafe-statics \
    122 	-fvisibility-inlines-hidden \
    123 	-Wno-deprecated \
    124 	-Wno-abi \
    125 	-Wno-error=c++0x-compat \
    126 	-Wno-non-virtual-dtor \
    127 	-Wno-sign-promo \
    128 	-Wno-non-virtual-dtor
    129 
    130 
    131 # Flags passed to both C and C++ files.
    132 MY_CFLAGS_Release := \
    133 	-fstack-protector \
    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 	-fno-tree-sra \
    144 	-fuse-ld=gold \
    145 	-Wno-psabi \
    146 	-ffunction-sections \
    147 	-funwind-tables \
    148 	-g \
    149 	-fstack-protector \
    150 	-fno-short-enums \
    151 	-finline-limit=64 \
    152 	-Wa,--noexecstack \
    153 	-U_FORTIFY_SOURCE \
    154 	-Wno-extra \
    155 	-Wno-ignored-qualifiers \
    156 	-Wno-type-limits \
    157 	-Wno-address \
    158 	-Wno-format-security \
    159 	-Wno-return-type \
    160 	-Wno-sequence-point \
    161 	-Os \
    162 	-fno-ident \
    163 	-fdata-sections \
    164 	-ffunction-sections \
    165 	-fomit-frame-pointer
    166 
    167 MY_DEFS_Release := \
    168 	'-DANGLE_DX11' \
    169 	'-D_FILE_OFFSET_BITS=64' \
    170 	'-DNO_TCMALLOC' \
    171 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    172 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    173 	'-DDISABLE_NACL' \
    174 	'-DCHROMIUM_BUILD' \
    175 	'-DUSE_LIBJPEG_TURBO=1' \
    176 	'-DUSE_PROPRIETARY_CODECS' \
    177 	'-DENABLE_CONFIGURATION_POLICY' \
    178 	'-DENABLE_GPU=1' \
    179 	'-DUSE_OPENSSL=1' \
    180 	'-DENABLE_EGLIMAGE=1' \
    181 	'-DFT2_BUILD_LIBRARY' \
    182 	'-DDARWIN_NO_CARBON' \
    183 	'-DANDROID' \
    184 	'-D__GNU_SOURCE=1' \
    185 	'-DUSE_STLPORT=1' \
    186 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    187 	'-DCHROME_BUILD_ID=""' \
    188 	'-DNDEBUG' \
    189 	'-DNVALGRIND' \
    190 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    191 
    192 
    193 # Include paths placed before CFLAGS/CPPFLAGS
    194 LOCAL_C_INCLUDES_Release := \
    195 	$(LOCAL_PATH)/third_party/freetype/build \
    196 	$(LOCAL_PATH)/third_party/freetype/include \
    197 	$(PWD)/frameworks/wilhelm/include \
    198 	$(PWD)/bionic \
    199 	$(PWD)/external/stlport/stlport
    200 
    201 
    202 # Flags passed to only C++ (and not C) files.
    203 LOCAL_CPPFLAGS_Release := \
    204 	-fno-rtti \
    205 	-fno-threadsafe-statics \
    206 	-fvisibility-inlines-hidden \
    207 	-Wno-deprecated \
    208 	-Wno-abi \
    209 	-Wno-error=c++0x-compat \
    210 	-Wno-non-virtual-dtor \
    211 	-Wno-sign-promo \
    212 	-Wno-non-virtual-dtor
    213 
    214 
    215 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    216 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    217 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    218 ### Rules for final target.
    219 
    220 LOCAL_LDFLAGS_Debug := \
    221 	-Wl,-z,now \
    222 	-Wl,-z,relro \
    223 	-Wl,-z,noexecstack \
    224 	-fPIC \
    225 	-Wl,-z,relro \
    226 	-Wl,-z,now \
    227 	-fuse-ld=gold \
    228 	-nostdlib \
    229 	-Wl,--no-undefined \
    230 	-Wl,--exclude-libs=ALL \
    231 	-Wl,--icf=safe \
    232 	-Wl,--fatal-warnings \
    233 	-Wl,--gc-sections \
    234 	-Wl,--warn-shared-textrel \
    235 	-Wl,-O1 \
    236 	-Wl,--as-needed
    237 
    238 
    239 LOCAL_LDFLAGS_Release := \
    240 	-Wl,-z,now \
    241 	-Wl,-z,relro \
    242 	-Wl,-z,noexecstack \
    243 	-fPIC \
    244 	-Wl,-z,relro \
    245 	-Wl,-z,now \
    246 	-fuse-ld=gold \
    247 	-nostdlib \
    248 	-Wl,--no-undefined \
    249 	-Wl,--exclude-libs=ALL \
    250 	-Wl,--icf=safe \
    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