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