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