Home | History | Annotate | Download | only in libwebp
      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_libwebp_libwebp_utils_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/libwebp/utils/bit_reader.c \
     26 	third_party/libwebp/utils/bit_writer.c \
     27 	third_party/libwebp/utils/color_cache.c \
     28 	third_party/libwebp/utils/filters.c \
     29 	third_party/libwebp/utils/huffman.c \
     30 	third_party/libwebp/utils/huffman_encode.c \
     31 	third_party/libwebp/utils/quant_levels.c \
     32 	third_party/libwebp/utils/quant_levels_dec.c \
     33 	third_party/libwebp/utils/random.c \
     34 	third_party/libwebp/utils/rescaler.c \
     35 	third_party/libwebp/utils/thread.c \
     36 	third_party/libwebp/utils/utils.c
     37 
     38 
     39 # Flags passed to both C and C++ files.
     40 MY_CFLAGS_Debug := \
     41 	--param=ssp-buffer-size=4 \
     42 	-fno-strict-aliasing \
     43 	-Wno-unused-parameter \
     44 	-Wno-missing-field-initializers \
     45 	-fvisibility=hidden \
     46 	-pipe \
     47 	-fPIC \
     48 	-Wno-unused-local-typedefs \
     49 	-Wno-format \
     50 	-msse2 \
     51 	-mfpmath=sse \
     52 	-mmmx \
     53 	-m32 \
     54 	-ffunction-sections \
     55 	-funwind-tables \
     56 	-g \
     57 	-fno-short-enums \
     58 	-finline-limit=64 \
     59 	-Wa,--noexecstack \
     60 	-U_FORTIFY_SOURCE \
     61 	-Wno-extra \
     62 	-Wno-ignored-qualifiers \
     63 	-Wno-type-limits \
     64 	-Wno-unused-but-set-variable \
     65 	-fno-stack-protector \
     66 	-Wno-address \
     67 	-Wno-format-security \
     68 	-Wno-return-type \
     69 	-Wno-sequence-point \
     70 	-Os \
     71 	-g \
     72 	-gdwarf-4 \
     73 	-fdata-sections \
     74 	-ffunction-sections \
     75 	-fomit-frame-pointer \
     76 	-funwind-tables
     77 
     78 MY_DEFS_Debug := \
     79 	'-DV8_DEPRECATION_WARNINGS' \
     80 	'-D_FILE_OFFSET_BITS=64' \
     81 	'-DNO_TCMALLOC' \
     82 	'-DDISABLE_NACL' \
     83 	'-DCHROMIUM_BUILD' \
     84 	'-DUSE_LIBJPEG_TURBO=1' \
     85 	'-DENABLE_WEBRTC=1' \
     86 	'-DUSE_PROPRIETARY_CODECS' \
     87 	'-DENABLE_BROWSER_CDMS' \
     88 	'-DENABLE_CONFIGURATION_POLICY' \
     89 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     90 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     91 	'-DENABLE_EGLIMAGE=1' \
     92 	'-DCLD_VERSION=1' \
     93 	'-DENABLE_PRINTING=1' \
     94 	'-DENABLE_MANAGED_USERS=1' \
     95 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     96 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     97 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     98 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     99 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    100 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    101 	'-DVIDEO_HOLE=1' \
    102 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    103 	'-DUSE_OPENSSL=1' \
    104 	'-DUSE_OPENSSL_CERTS=1' \
    105 	'-DANDROID' \
    106 	'-D__GNU_SOURCE=1' \
    107 	'-DUSE_STLPORT=1' \
    108 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    109 	'-DCHROME_BUILD_ID=""' \
    110 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    111 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    112 	'-D_DEBUG'
    113 
    114 
    115 # Include paths placed before CFLAGS/CPPFLAGS
    116 LOCAL_C_INCLUDES_Debug := \
    117 	$(gyp_shared_intermediate_dir) \
    118 	$(LOCAL_PATH)/third_party/libwebp \
    119 	$(PWD)/frameworks/wilhelm/include \
    120 	$(PWD)/bionic \
    121 	$(PWD)/external/stlport/stlport
    122 
    123 
    124 # Flags passed to only C++ (and not C) files.
    125 LOCAL_CPPFLAGS_Debug := \
    126 	-fno-exceptions \
    127 	-fno-rtti \
    128 	-fno-threadsafe-statics \
    129 	-fvisibility-inlines-hidden \
    130 	-Wno-deprecated \
    131 	-std=gnu++11 \
    132 	-Wno-narrowing \
    133 	-Wno-literal-suffix \
    134 	-Wno-non-virtual-dtor \
    135 	-Wno-sign-promo \
    136 	-Wno-non-virtual-dtor
    137 
    138 
    139 # Flags passed to both C and C++ files.
    140 MY_CFLAGS_Release := \
    141 	--param=ssp-buffer-size=4 \
    142 	-fno-strict-aliasing \
    143 	-Wno-unused-parameter \
    144 	-Wno-missing-field-initializers \
    145 	-fvisibility=hidden \
    146 	-pipe \
    147 	-fPIC \
    148 	-Wno-unused-local-typedefs \
    149 	-Wno-format \
    150 	-msse2 \
    151 	-mfpmath=sse \
    152 	-mmmx \
    153 	-m32 \
    154 	-ffunction-sections \
    155 	-funwind-tables \
    156 	-g \
    157 	-fno-short-enums \
    158 	-finline-limit=64 \
    159 	-Wa,--noexecstack \
    160 	-U_FORTIFY_SOURCE \
    161 	-Wno-extra \
    162 	-Wno-ignored-qualifiers \
    163 	-Wno-type-limits \
    164 	-Wno-unused-but-set-variable \
    165 	-fno-stack-protector \
    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/libwebp \
    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 	-std=gnu++11 \
    231 	-Wno-narrowing \
    232 	-Wno-literal-suffix \
    233 	-Wno-non-virtual-dtor \
    234 	-Wno-sign-promo \
    235 	-Wno-non-virtual-dtor
    236 
    237 
    238 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    239 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    240 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    241 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    242 ### Rules for final target.
    243 
    244 LOCAL_SHARED_LIBRARIES := \
    245 	libstlport \
    246 	libdl
    247 
    248 # Add target alias to "gyp_all_modules" target.
    249 .PHONY: gyp_all_modules
    250 gyp_all_modules: third_party_libwebp_libwebp_utils_gyp
    251 
    252 # Alias gyp target name.
    253 .PHONY: libwebp_utils
    254 libwebp_utils: third_party_libwebp_libwebp_utils_gyp
    255 
    256 include $(BUILD_STATIC_LIBRARY)
    257