Home | History | Annotate | Download | only in zlib
      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_zlib_zlib_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     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/zlib/adler32.c \
     26 	third_party/zlib/compress.c \
     27 	third_party/zlib/crc32.c \
     28 	third_party/zlib/deflate.c \
     29 	third_party/zlib/gzclose.c \
     30 	third_party/zlib/gzlib.c \
     31 	third_party/zlib/gzread.c \
     32 	third_party/zlib/gzwrite.c \
     33 	third_party/zlib/infback.c \
     34 	third_party/zlib/inffast.c \
     35 	third_party/zlib/inflate.c \
     36 	third_party/zlib/inftrees.c \
     37 	third_party/zlib/trees.c \
     38 	third_party/zlib/uncompr.c \
     39 	third_party/zlib/zutil.c
     40 
     41 
     42 # Flags passed to both C and C++ files.
     43 MY_CFLAGS_Debug := \
     44 	-fstack-protector \
     45 	--param=ssp-buffer-size=4 \
     46 	 \
     47 	-fno-strict-aliasing \
     48 	-Wno-unused-parameter \
     49 	-Wno-missing-field-initializers \
     50 	-fvisibility=hidden \
     51 	-pipe \
     52 	-fPIC \
     53 	-Wno-unused-local-typedefs \
     54 	-Wno-format \
     55 	-ffunction-sections \
     56 	-funwind-tables \
     57 	-g \
     58 	-fstack-protector \
     59 	-fno-short-enums \
     60 	-finline-limit=64 \
     61 	-Wa,--noexecstack \
     62 	-U_FORTIFY_SOURCE \
     63 	-Wno-extra \
     64 	-Wno-ignored-qualifiers \
     65 	-Wno-type-limits \
     66 	-Wno-unused-but-set-variable \
     67 	-Wno-address \
     68 	-Wno-format-security \
     69 	-Wno-return-type \
     70 	-Wno-sequence-point \
     71 	-Os \
     72 	-g \
     73 	-gdwarf-4 \
     74 	-fdata-sections \
     75 	-ffunction-sections \
     76 	-fomit-frame-pointer \
     77 	-funwind-tables
     78 
     79 MY_DEFS_Debug := \
     80 	'-DV8_DEPRECATION_WARNINGS' \
     81 	'-D_FILE_OFFSET_BITS=64' \
     82 	'-DNO_TCMALLOC' \
     83 	'-DDISABLE_NACL' \
     84 	'-DCHROMIUM_BUILD' \
     85 	'-DUSE_LIBJPEG_TURBO=1' \
     86 	'-DENABLE_WEBRTC=1' \
     87 	'-DUSE_PROPRIETARY_CODECS' \
     88 	'-DENABLE_BROWSER_CDMS' \
     89 	'-DENABLE_CONFIGURATION_POLICY' \
     90 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     91 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     92 	'-DENABLE_EGLIMAGE=1' \
     93 	'-DCLD_VERSION=1' \
     94 	'-DENABLE_PRINTING=1' \
     95 	'-DENABLE_MANAGED_USERS=1' \
     96 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     97 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     98 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     99 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    100 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    101 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    102 	'-DVIDEO_HOLE=1' \
    103 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    104 	'-DUSE_OPENSSL=1' \
    105 	'-DUSE_OPENSSL_CERTS=1' \
    106 	'-DANDROID' \
    107 	'-D__GNU_SOURCE=1' \
    108 	'-DUSE_STLPORT=1' \
    109 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    110 	'-DCHROME_BUILD_ID=""' \
    111 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    112 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    113 	'-D_DEBUG'
    114 
    115 
    116 # Include paths placed before CFLAGS/CPPFLAGS
    117 LOCAL_C_INCLUDES_Debug := \
    118 	$(gyp_shared_intermediate_dir) \
    119 	$(LOCAL_PATH)/third_party/zlib \
    120 	$(PWD)/frameworks/wilhelm/include \
    121 	$(PWD)/bionic \
    122 	$(PWD)/external/stlport/stlport
    123 
    124 
    125 # Flags passed to only C++ (and not C) files.
    126 LOCAL_CPPFLAGS_Debug := \
    127 	-fno-exceptions \
    128 	-fno-rtti \
    129 	-fno-threadsafe-statics \
    130 	-fvisibility-inlines-hidden \
    131 	-Wno-deprecated \
    132 	-Wno-uninitialized \
    133 	-std=gnu++11 \
    134 	-Wno-narrowing \
    135 	-Wno-literal-suffix \
    136 	-Wno-non-virtual-dtor \
    137 	-Wno-sign-promo \
    138 	-Wno-non-virtual-dtor
    139 
    140 
    141 # Flags passed to both C and C++ files.
    142 MY_CFLAGS_Release := \
    143 	-fstack-protector \
    144 	--param=ssp-buffer-size=4 \
    145 	 \
    146 	-fno-strict-aliasing \
    147 	-Wno-unused-parameter \
    148 	-Wno-missing-field-initializers \
    149 	-fvisibility=hidden \
    150 	-pipe \
    151 	-fPIC \
    152 	-Wno-unused-local-typedefs \
    153 	-Wno-format \
    154 	-ffunction-sections \
    155 	-funwind-tables \
    156 	-g \
    157 	-fstack-protector \
    158 	-fno-short-enums \
    159 	-finline-limit=64 \
    160 	-Wa,--noexecstack \
    161 	-U_FORTIFY_SOURCE \
    162 	-Wno-extra \
    163 	-Wno-ignored-qualifiers \
    164 	-Wno-type-limits \
    165 	-Wno-unused-but-set-variable \
    166 	-Wno-address \
    167 	-Wno-format-security \
    168 	-Wno-return-type \
    169 	-Wno-sequence-point \
    170 	-Os \
    171 	-fno-ident \
    172 	-fdata-sections \
    173 	-ffunction-sections \
    174 	-fomit-frame-pointer \
    175 	-funwind-tables
    176 
    177 MY_DEFS_Release := \
    178 	'-DV8_DEPRECATION_WARNINGS' \
    179 	'-D_FILE_OFFSET_BITS=64' \
    180 	'-DNO_TCMALLOC' \
    181 	'-DDISABLE_NACL' \
    182 	'-DCHROMIUM_BUILD' \
    183 	'-DUSE_LIBJPEG_TURBO=1' \
    184 	'-DENABLE_WEBRTC=1' \
    185 	'-DUSE_PROPRIETARY_CODECS' \
    186 	'-DENABLE_BROWSER_CDMS' \
    187 	'-DENABLE_CONFIGURATION_POLICY' \
    188 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    189 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    190 	'-DENABLE_EGLIMAGE=1' \
    191 	'-DCLD_VERSION=1' \
    192 	'-DENABLE_PRINTING=1' \
    193 	'-DENABLE_MANAGED_USERS=1' \
    194 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    195 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    196 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    197 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    198 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    199 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    200 	'-DVIDEO_HOLE=1' \
    201 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    202 	'-DUSE_OPENSSL=1' \
    203 	'-DUSE_OPENSSL_CERTS=1' \
    204 	'-DANDROID' \
    205 	'-D__GNU_SOURCE=1' \
    206 	'-DUSE_STLPORT=1' \
    207 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    208 	'-DCHROME_BUILD_ID=""' \
    209 	'-DNDEBUG' \
    210 	'-DNVALGRIND' \
    211 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    212 
    213 
    214 # Include paths placed before CFLAGS/CPPFLAGS
    215 LOCAL_C_INCLUDES_Release := \
    216 	$(gyp_shared_intermediate_dir) \
    217 	$(LOCAL_PATH)/third_party/zlib \
    218 	$(PWD)/frameworks/wilhelm/include \
    219 	$(PWD)/bionic \
    220 	$(PWD)/external/stlport/stlport
    221 
    222 
    223 # Flags passed to only C++ (and not C) files.
    224 LOCAL_CPPFLAGS_Release := \
    225 	-fno-exceptions \
    226 	-fno-rtti \
    227 	-fno-threadsafe-statics \
    228 	-fvisibility-inlines-hidden \
    229 	-Wno-deprecated \
    230 	-Wno-uninitialized \
    231 	-std=gnu++11 \
    232 	-Wno-narrowing \
    233 	-Wno-literal-suffix \
    234 	-Wno-non-virtual-dtor \
    235 	-Wno-sign-promo \
    236 	-Wno-non-virtual-dtor
    237 
    238 
    239 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    240 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    241 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    242 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    243 ### Rules for final target.
    244 
    245 LOCAL_SHARED_LIBRARIES := \
    246 	libstlport \
    247 	libdl
    248 
    249 # Add target alias to "gyp_all_modules" target.
    250 .PHONY: gyp_all_modules
    251 gyp_all_modules: third_party_zlib_zlib_gyp
    252 
    253 # Alias gyp target name.
    254 .PHONY: zlib
    255 zlib: third_party_zlib_zlib_gyp
    256 
    257 include $(BUILD_STATIC_LIBRARY)
    258