Home | History | Annotate | Download | only in sfntly
      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_sfntly_sfntly_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 	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp
     15 
     16 GYP_GENERATED_OUTPUTS :=
     17 
     18 # Make sure our deps and generated files are built first.
     19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     20 
     21 LOCAL_CPP_EXTENSION := .cc
     22 LOCAL_GENERATED_SOURCES :=
     23 
     24 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     25 
     26 LOCAL_SRC_FILES := \
     27 	third_party/sfntly/cpp/src/sfntly/data/byte_array.cc \
     28 	third_party/sfntly/cpp/src/sfntly/data/font_data.cc \
     29 	third_party/sfntly/cpp/src/sfntly/data/font_input_stream.cc \
     30 	third_party/sfntly/cpp/src/sfntly/data/font_output_stream.cc \
     31 	third_party/sfntly/cpp/src/sfntly/data/growable_memory_byte_array.cc \
     32 	third_party/sfntly/cpp/src/sfntly/data/memory_byte_array.cc \
     33 	third_party/sfntly/cpp/src/sfntly/data/readable_font_data.cc \
     34 	third_party/sfntly/cpp/src/sfntly/data/writable_font_data.cc \
     35 	third_party/sfntly/cpp/src/sfntly/font.cc \
     36 	third_party/sfntly/cpp/src/sfntly/font_factory.cc \
     37 	third_party/sfntly/cpp/src/sfntly/port/file_input_stream.cc \
     38 	third_party/sfntly/cpp/src/sfntly/port/lock.cc \
     39 	third_party/sfntly/cpp/src/sfntly/port/memory_input_stream.cc \
     40 	third_party/sfntly/cpp/src/sfntly/port/memory_output_stream.cc \
     41 	third_party/sfntly/cpp/src/sfntly/table/bitmap/big_glyph_metrics.cc \
     42 	third_party/sfntly/cpp/src/sfntly/table/bitmap/bitmap_glyph.cc \
     43 	third_party/sfntly/cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc \
     44 	third_party/sfntly/cpp/src/sfntly/table/bitmap/bitmap_size_table.cc \
     45 	third_party/sfntly/cpp/src/sfntly/table/bitmap/composite_bitmap_glyph.cc \
     46 	third_party/sfntly/cpp/src/sfntly/table/bitmap/ebdt_table.cc \
     47 	third_party/sfntly/cpp/src/sfntly/table/bitmap/eblc_table.cc \
     48 	third_party/sfntly/cpp/src/sfntly/table/bitmap/ebsc_table.cc \
     49 	third_party/sfntly/cpp/src/sfntly/table/bitmap/glyph_metrics.cc \
     50 	third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table.cc \
     51 	third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format1.cc \
     52 	third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format2.cc \
     53 	third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format3.cc \
     54 	third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format4.cc \
     55 	third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format5.cc \
     56 	third_party/sfntly/cpp/src/sfntly/table/bitmap/simple_bitmap_glyph.cc \
     57 	third_party/sfntly/cpp/src/sfntly/table/bitmap/small_glyph_metrics.cc \
     58 	third_party/sfntly/cpp/src/sfntly/table/byte_array_table_builder.cc \
     59 	third_party/sfntly/cpp/src/sfntly/table/core/cmap_table.cc \
     60 	third_party/sfntly/cpp/src/sfntly/table/core/font_header_table.cc \
     61 	third_party/sfntly/cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc \
     62 	third_party/sfntly/cpp/src/sfntly/table/core/horizontal_header_table.cc \
     63 	third_party/sfntly/cpp/src/sfntly/table/core/horizontal_metrics_table.cc \
     64 	third_party/sfntly/cpp/src/sfntly/table/core/maximum_profile_table.cc \
     65 	third_party/sfntly/cpp/src/sfntly/table/core/name_table.cc \
     66 	third_party/sfntly/cpp/src/sfntly/table/core/os2_table.cc \
     67 	third_party/sfntly/cpp/src/sfntly/table/font_data_table.cc \
     68 	third_party/sfntly/cpp/src/sfntly/table/generic_table_builder.cc \
     69 	third_party/sfntly/cpp/src/sfntly/table/header.cc \
     70 	third_party/sfntly/cpp/src/sfntly/table/subtable.cc \
     71 	third_party/sfntly/cpp/src/sfntly/table/table.cc \
     72 	third_party/sfntly/cpp/src/sfntly/table/table_based_table_builder.cc \
     73 	third_party/sfntly/cpp/src/sfntly/table/truetype/glyph_table.cc \
     74 	third_party/sfntly/cpp/src/sfntly/table/truetype/loca_table.cc \
     75 	third_party/sfntly/cpp/src/sfntly/tag.cc \
     76 	third_party/sfntly/cpp/src/sample/chromium/font_subsetter.cc \
     77 	third_party/sfntly/cpp/src/sample/chromium/subsetter_impl.cc
     78 
     79 
     80 # Flags passed to both C and C++ files.
     81 MY_CFLAGS_Debug := \
     82 	--param=ssp-buffer-size=4 \
     83 	-Werror \
     84 	-fno-exceptions \
     85 	-fno-strict-aliasing \
     86 	-Wall \
     87 	-Wno-unused-parameter \
     88 	-Wno-missing-field-initializers \
     89 	-fvisibility=hidden \
     90 	-pipe \
     91 	-fPIC \
     92 	-m32 \
     93 	-mmmx \
     94 	-march=pentium4 \
     95 	-msse2 \
     96 	-mfpmath=sse \
     97 	-fuse-ld=gold \
     98 	-ffunction-sections \
     99 	-funwind-tables \
    100 	-g \
    101 	-fno-short-enums \
    102 	-finline-limit=64 \
    103 	-Wa,--noexecstack \
    104 	-U_FORTIFY_SOURCE \
    105 	-Wno-extra \
    106 	-Wno-ignored-qualifiers \
    107 	-Wno-type-limits \
    108 	-fno-stack-protector \
    109 	-Os \
    110 	-g \
    111 	-fomit-frame-pointer \
    112 	-fdata-sections \
    113 	-ffunction-sections
    114 
    115 MY_DEFS_Debug := \
    116 	'-DV8_DEPRECATION_WARNINGS' \
    117 	'-D_FILE_OFFSET_BITS=64' \
    118 	'-DNO_TCMALLOC' \
    119 	'-DDISABLE_NACL' \
    120 	'-DCHROMIUM_BUILD' \
    121 	'-DUSE_LIBJPEG_TURBO=1' \
    122 	'-DUSE_PROPRIETARY_CODECS' \
    123 	'-DENABLE_CONFIGURATION_POLICY' \
    124 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    125 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    126 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    127 	'-DUSE_OPENSSL=1' \
    128 	'-DENABLE_EGLIMAGE=1' \
    129 	'-DCLD_VERSION=1' \
    130 	'-DENABLE_PRINTING=1' \
    131 	'-DENABLE_MANAGED_USERS=1' \
    132 	'-DSFNTLY_NO_EXCEPTION' \
    133 	'-DU_USING_ICU_NAMESPACE=0' \
    134 	'-D__STDC_CONSTANT_MACROS' \
    135 	'-D__STDC_FORMAT_MACROS' \
    136 	'-DANDROID' \
    137 	'-D__GNU_SOURCE=1' \
    138 	'-DUSE_STLPORT=1' \
    139 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    140 	'-DCHROME_BUILD_ID=""' \
    141 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    142 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    143 	'-D_DEBUG'
    144 
    145 
    146 # Include paths placed before CFLAGS/CPPFLAGS
    147 LOCAL_C_INCLUDES_Debug := \
    148 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    149 	$(LOCAL_PATH)/third_party/sfntly/cpp/src \
    150 	$(LOCAL_PATH) \
    151 	$(PWD)/external/icu4c/common \
    152 	$(PWD)/external/icu4c/i18n \
    153 	$(PWD)/frameworks/wilhelm/include \
    154 	$(PWD)/bionic \
    155 	$(PWD)/external/stlport/stlport
    156 
    157 
    158 # Flags passed to only C++ (and not C) files.
    159 LOCAL_CPPFLAGS_Debug := \
    160 	-fno-rtti \
    161 	-fno-threadsafe-statics \
    162 	-fvisibility-inlines-hidden \
    163 	-Wsign-compare \
    164 	-Wno-error=c++0x-compat \
    165 	-Wno-non-virtual-dtor \
    166 	-Wno-sign-promo
    167 
    168 
    169 # Flags passed to both C and C++ files.
    170 MY_CFLAGS_Release := \
    171 	--param=ssp-buffer-size=4 \
    172 	-Werror \
    173 	-fno-exceptions \
    174 	-fno-strict-aliasing \
    175 	-Wall \
    176 	-Wno-unused-parameter \
    177 	-Wno-missing-field-initializers \
    178 	-fvisibility=hidden \
    179 	-pipe \
    180 	-fPIC \
    181 	-m32 \
    182 	-mmmx \
    183 	-march=pentium4 \
    184 	-msse2 \
    185 	-mfpmath=sse \
    186 	-fuse-ld=gold \
    187 	-ffunction-sections \
    188 	-funwind-tables \
    189 	-g \
    190 	-fno-short-enums \
    191 	-finline-limit=64 \
    192 	-Wa,--noexecstack \
    193 	-U_FORTIFY_SOURCE \
    194 	-Wno-extra \
    195 	-Wno-ignored-qualifiers \
    196 	-Wno-type-limits \
    197 	-fno-stack-protector \
    198 	-Os \
    199 	-fno-ident \
    200 	-fdata-sections \
    201 	-ffunction-sections \
    202 	-fomit-frame-pointer \
    203 	-fno-unwind-tables \
    204 	-fno-asynchronous-unwind-tables
    205 
    206 MY_DEFS_Release := \
    207 	'-DV8_DEPRECATION_WARNINGS' \
    208 	'-D_FILE_OFFSET_BITS=64' \
    209 	'-DNO_TCMALLOC' \
    210 	'-DDISABLE_NACL' \
    211 	'-DCHROMIUM_BUILD' \
    212 	'-DUSE_LIBJPEG_TURBO=1' \
    213 	'-DUSE_PROPRIETARY_CODECS' \
    214 	'-DENABLE_CONFIGURATION_POLICY' \
    215 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    216 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    217 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    218 	'-DUSE_OPENSSL=1' \
    219 	'-DENABLE_EGLIMAGE=1' \
    220 	'-DCLD_VERSION=1' \
    221 	'-DENABLE_PRINTING=1' \
    222 	'-DENABLE_MANAGED_USERS=1' \
    223 	'-DSFNTLY_NO_EXCEPTION' \
    224 	'-DU_USING_ICU_NAMESPACE=0' \
    225 	'-D__STDC_CONSTANT_MACROS' \
    226 	'-D__STDC_FORMAT_MACROS' \
    227 	'-DANDROID' \
    228 	'-D__GNU_SOURCE=1' \
    229 	'-DUSE_STLPORT=1' \
    230 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    231 	'-DCHROME_BUILD_ID=""' \
    232 	'-DNDEBUG' \
    233 	'-DNVALGRIND' \
    234 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    235 	'-D_FORTIFY_SOURCE=2'
    236 
    237 
    238 # Include paths placed before CFLAGS/CPPFLAGS
    239 LOCAL_C_INCLUDES_Release := \
    240 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    241 	$(LOCAL_PATH)/third_party/sfntly/cpp/src \
    242 	$(LOCAL_PATH) \
    243 	$(PWD)/external/icu4c/common \
    244 	$(PWD)/external/icu4c/i18n \
    245 	$(PWD)/frameworks/wilhelm/include \
    246 	$(PWD)/bionic \
    247 	$(PWD)/external/stlport/stlport
    248 
    249 
    250 # Flags passed to only C++ (and not C) files.
    251 LOCAL_CPPFLAGS_Release := \
    252 	-fno-rtti \
    253 	-fno-threadsafe-statics \
    254 	-fvisibility-inlines-hidden \
    255 	-Wsign-compare \
    256 	-Wno-error=c++0x-compat \
    257 	-Wno-non-virtual-dtor \
    258 	-Wno-sign-promo
    259 
    260 
    261 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    262 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    263 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    264 ### Rules for final target.
    265 
    266 LOCAL_LDFLAGS_Debug := \
    267 	-Wl,-z,now \
    268 	-Wl,-z,relro \
    269 	-Wl,-z,noexecstack \
    270 	-fPIC \
    271 	-m32 \
    272 	-fuse-ld=gold \
    273 	-nostdlib \
    274 	-Wl,--no-undefined \
    275 	-Wl,--exclude-libs=ALL \
    276 	-Wl,--fatal-warnings \
    277 	-Wl,--gc-sections \
    278 	-Wl,--warn-shared-textrel \
    279 	-Wl,-O1 \
    280 	-Wl,--as-needed
    281 
    282 
    283 LOCAL_LDFLAGS_Release := \
    284 	-Wl,-z,now \
    285 	-Wl,-z,relro \
    286 	-Wl,-z,noexecstack \
    287 	-fPIC \
    288 	-m32 \
    289 	-fuse-ld=gold \
    290 	-nostdlib \
    291 	-Wl,--no-undefined \
    292 	-Wl,--exclude-libs=ALL \
    293 	-Wl,-O1 \
    294 	-Wl,--as-needed \
    295 	-Wl,--gc-sections \
    296 	-Wl,--fatal-warnings \
    297 	-Wl,--warn-shared-textrel
    298 
    299 
    300 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    301 
    302 LOCAL_STATIC_LIBRARIES :=
    303 
    304 # Enable grouping to fix circular references
    305 LOCAL_GROUP_STATIC_LIBRARIES := true
    306 
    307 LOCAL_SHARED_LIBRARIES := \
    308 	libstlport \
    309 	libdl
    310 
    311 # Add target alias to "gyp_all_modules" target.
    312 .PHONY: gyp_all_modules
    313 gyp_all_modules: third_party_sfntly_sfntly_gyp
    314 
    315 # Alias gyp target name.
    316 .PHONY: sfntly
    317 sfntly: third_party_sfntly_sfntly_gyp
    318 
    319 include $(BUILD_STATIC_LIBRARY)
    320