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