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_demux_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/demux/demux.c
     26 
     27 
     28 # Flags passed to both C and C++ files.
     29 MY_CFLAGS_Debug := \
     30 	-fstack-protector \
     31 	--param=ssp-buffer-size=4 \
     32 	-fno-strict-aliasing \
     33 	-Wno-unused-parameter \
     34 	-Wno-missing-field-initializers \
     35 	-fvisibility=hidden \
     36 	-pipe \
     37 	-fPIC \
     38 	-Wno-unused-local-typedefs \
     39 	-Wno-format \
     40 	-fno-tree-sra \
     41 	-fno-caller-saves \
     42 	-Wno-psabi \
     43 	-fno-partial-inlining \
     44 	-fno-early-inlining \
     45 	-fno-tree-copy-prop \
     46 	-fno-tree-loop-optimize \
     47 	-fno-move-loop-invariants \
     48 	-ffunction-sections \
     49 	-funwind-tables \
     50 	-g \
     51 	-fstack-protector \
     52 	-fno-short-enums \
     53 	-finline-limit=64 \
     54 	-Wa,--noexecstack \
     55 	-U_FORTIFY_SOURCE \
     56 	-Wno-extra \
     57 	-Wno-ignored-qualifiers \
     58 	-Wno-type-limits \
     59 	-Wno-unused-but-set-variable \
     60 	-Wno-address \
     61 	-Wno-format-security \
     62 	-Wno-return-type \
     63 	-Wno-sequence-point \
     64 	-Os \
     65 	-g \
     66 	-gdwarf-4 \
     67 	-fdata-sections \
     68 	-ffunction-sections \
     69 	-fomit-frame-pointer \
     70 	-funwind-tables
     71 
     72 MY_DEFS_Debug := \
     73 	'-DV8_DEPRECATION_WARNINGS' \
     74 	'-D_FILE_OFFSET_BITS=64' \
     75 	'-DNO_TCMALLOC' \
     76 	'-DDISABLE_NACL' \
     77 	'-DCHROMIUM_BUILD' \
     78 	'-DUSE_LIBJPEG_TURBO=1' \
     79 	'-DENABLE_WEBRTC=1' \
     80 	'-DUSE_PROPRIETARY_CODECS' \
     81 	'-DENABLE_BROWSER_CDMS' \
     82 	'-DENABLE_CONFIGURATION_POLICY' \
     83 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     84 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     85 	'-DENABLE_EGLIMAGE=1' \
     86 	'-DCLD_VERSION=1' \
     87 	'-DENABLE_PRINTING=1' \
     88 	'-DENABLE_MANAGED_USERS=1' \
     89 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     90 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     91 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     92 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     93 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     94 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     95 	'-DVIDEO_HOLE=1' \
     96 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     97 	'-DUSE_OPENSSL=1' \
     98 	'-DUSE_OPENSSL_CERTS=1' \
     99 	'-DANDROID' \
    100 	'-D__GNU_SOURCE=1' \
    101 	'-DUSE_STLPORT=1' \
    102 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    103 	'-DCHROME_BUILD_ID=""' \
    104 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    105 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    106 	'-D_DEBUG'
    107 
    108 
    109 # Include paths placed before CFLAGS/CPPFLAGS
    110 LOCAL_C_INCLUDES_Debug := \
    111 	$(gyp_shared_intermediate_dir) \
    112 	$(LOCAL_PATH)/third_party/libwebp \
    113 	$(PWD)/frameworks/wilhelm/include \
    114 	$(PWD)/bionic \
    115 	$(PWD)/external/stlport/stlport
    116 
    117 
    118 # Flags passed to only C++ (and not C) files.
    119 LOCAL_CPPFLAGS_Debug := \
    120 	-fno-exceptions \
    121 	-fno-rtti \
    122 	-fno-threadsafe-statics \
    123 	-fvisibility-inlines-hidden \
    124 	-Wno-deprecated \
    125 	-Wno-abi \
    126 	-std=gnu++11 \
    127 	-Wno-narrowing \
    128 	-Wno-literal-suffix \
    129 	-Wno-non-virtual-dtor \
    130 	-Wno-sign-promo \
    131 	-Wno-non-virtual-dtor
    132 
    133 
    134 # Flags passed to both C and C++ files.
    135 MY_CFLAGS_Release := \
    136 	-fstack-protector \
    137 	--param=ssp-buffer-size=4 \
    138 	-fno-strict-aliasing \
    139 	-Wno-unused-parameter \
    140 	-Wno-missing-field-initializers \
    141 	-fvisibility=hidden \
    142 	-pipe \
    143 	-fPIC \
    144 	-Wno-unused-local-typedefs \
    145 	-Wno-format \
    146 	-fno-tree-sra \
    147 	-fno-caller-saves \
    148 	-Wno-psabi \
    149 	-fno-partial-inlining \
    150 	-fno-early-inlining \
    151 	-fno-tree-copy-prop \
    152 	-fno-tree-loop-optimize \
    153 	-fno-move-loop-invariants \
    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/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 	-Wno-abi \
    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_libwebp_libwebp_demux_gyp
    252 
    253 # Alias gyp target name.
    254 .PHONY: libwebp_demux
    255 libwebp_demux: third_party_libwebp_libwebp_demux_gyp
    256 
    257 include $(BUILD_STATIC_LIBRARY)
    258