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