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