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_TAGS := optional
      9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
     10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     12 
     13 # Make sure our deps are built first.
     14 GYP_TARGET_DEPENDENCIES :=
     15 
     16 GYP_GENERATED_OUTPUTS :=
     17 
     18 # Make sure our deps and generated files are built first.
     19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     20 
     21 LOCAL_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_SRC_FILES := \
     26 	third_party/libwebp/demux/demux.c
     27 
     28 
     29 # Flags passed to both C and C++ files.
     30 MY_CFLAGS_Debug := \
     31 	-fstack-protector \
     32 	--param=ssp-buffer-size=4 \
     33 	-fno-exceptions \
     34 	-fno-strict-aliasing \
     35 	-Wno-unused-parameter \
     36 	-Wno-missing-field-initializers \
     37 	-fvisibility=hidden \
     38 	-pipe \
     39 	-fPIC \
     40 	-Wno-unused-local-typedefs \
     41 	-Wno-format \
     42 	-fno-tree-sra \
     43 	-fno-partial-inlining \
     44 	-fno-early-inlining \
     45 	-fno-tree-copy-prop \
     46 	-fno-tree-loop-optimize \
     47 	-fno-move-loop-invariants \
     48 	-fno-caller-saves \
     49 	-Wno-psabi \
     50 	-ffunction-sections \
     51 	-funwind-tables \
     52 	-g \
     53 	-fstack-protector \
     54 	-fno-short-enums \
     55 	-finline-limit=64 \
     56 	-Wa,--noexecstack \
     57 	-U_FORTIFY_SOURCE \
     58 	-Wno-extra \
     59 	-Wno-ignored-qualifiers \
     60 	-Wno-type-limits \
     61 	-Wno-unused-but-set-variable \
     62 	-Wno-address \
     63 	-Wno-format-security \
     64 	-Wno-return-type \
     65 	-Wno-sequence-point \
     66 	-Os \
     67 	-g \
     68 	-fdata-sections \
     69 	-ffunction-sections \
     70 	-fomit-frame-pointer \
     71 	-funwind-tables
     72 
     73 MY_DEFS_Debug := \
     74 	'-DV8_DEPRECATION_WARNINGS' \
     75 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
     76 	'-D_FILE_OFFSET_BITS=64' \
     77 	'-DNO_TCMALLOC' \
     78 	'-DDISABLE_NACL' \
     79 	'-DCHROMIUM_BUILD' \
     80 	'-DUSE_LIBJPEG_TURBO=1' \
     81 	'-DENABLE_WEBRTC=1' \
     82 	'-DUSE_PROPRIETARY_CODECS' \
     83 	'-DENABLE_BROWSER_CDMS' \
     84 	'-DENABLE_CONFIGURATION_POLICY' \
     85 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     86 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     87 	'-DENABLE_EGLIMAGE=1' \
     88 	'-DCLD_VERSION=1' \
     89 	'-DENABLE_PRINTING=1' \
     90 	'-DENABLE_MANAGED_USERS=1' \
     91 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     92 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
     93 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     94 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     95 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     96 	'-DVIDEO_HOLE=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-rtti \
    121 	-fno-threadsafe-statics \
    122 	-fvisibility-inlines-hidden \
    123 	-Wno-deprecated \
    124 	-Wno-abi \
    125 	-Wno-non-virtual-dtor \
    126 	-Wno-sign-promo \
    127 	-Wno-non-virtual-dtor
    128 
    129 
    130 LOCAL_FDO_SUPPORT_Debug := false
    131 
    132 # Flags passed to both C and C++ files.
    133 MY_CFLAGS_Release := \
    134 	-fstack-protector \
    135 	--param=ssp-buffer-size=4 \
    136 	-fno-exceptions \
    137 	-fno-strict-aliasing \
    138 	-Wno-unused-parameter \
    139 	-Wno-missing-field-initializers \
    140 	-fvisibility=hidden \
    141 	-pipe \
    142 	-fPIC \
    143 	-Wno-unused-local-typedefs \
    144 	-Wno-format \
    145 	-fno-tree-sra \
    146 	-fno-partial-inlining \
    147 	-fno-early-inlining \
    148 	-fno-tree-copy-prop \
    149 	-fno-tree-loop-optimize \
    150 	-fno-move-loop-invariants \
    151 	-fno-caller-saves \
    152 	-Wno-psabi \
    153 	-ffunction-sections \
    154 	-funwind-tables \
    155 	-g \
    156 	-fstack-protector \
    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 	-Wno-address \
    166 	-Wno-format-security \
    167 	-Wno-return-type \
    168 	-Wno-sequence-point \
    169 	-Os \
    170 	-fno-ident \
    171 	-fdata-sections \
    172 	-ffunction-sections \
    173 	-fomit-frame-pointer \
    174 	-funwind-tables
    175 
    176 MY_DEFS_Release := \
    177 	'-DV8_DEPRECATION_WARNINGS' \
    178 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    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="http://proxy-dev.googlezip.net:80/"' \
    196 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    197 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    198 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    199 	'-DVIDEO_HOLE=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-rtti \
    224 	-fno-threadsafe-statics \
    225 	-fvisibility-inlines-hidden \
    226 	-Wno-deprecated \
    227 	-Wno-abi \
    228 	-Wno-non-virtual-dtor \
    229 	-Wno-sign-promo \
    230 	-Wno-non-virtual-dtor
    231 
    232 
    233 LOCAL_FDO_SUPPORT_Release := false
    234 
    235 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    236 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(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_LDFLAGS_Debug := \
    243 	-Wl,-z,now \
    244 	-Wl,-z,relro \
    245 	-Wl,--fatal-warnings \
    246 	-Wl,-z,noexecstack \
    247 	-fPIC \
    248 	-Wl,-z,relro \
    249 	-Wl,-z,now \
    250 	-fuse-ld=gold \
    251 	-nostdlib \
    252 	-Wl,--no-undefined \
    253 	-Wl,--exclude-libs=ALL \
    254 	-Wl,--icf=safe \
    255 	-Wl,--warn-shared-textrel \
    256 	-Wl,-O1 \
    257 	-Wl,--as-needed
    258 
    259 
    260 LOCAL_LDFLAGS_Release := \
    261 	-Wl,-z,now \
    262 	-Wl,-z,relro \
    263 	-Wl,--fatal-warnings \
    264 	-Wl,-z,noexecstack \
    265 	-fPIC \
    266 	-Wl,-z,relro \
    267 	-Wl,-z,now \
    268 	-fuse-ld=gold \
    269 	-nostdlib \
    270 	-Wl,--no-undefined \
    271 	-Wl,--exclude-libs=ALL \
    272 	-Wl,--icf=safe \
    273 	-Wl,-O1 \
    274 	-Wl,--as-needed \
    275 	-Wl,--gc-sections \
    276 	-Wl,--warn-shared-textrel
    277 
    278 
    279 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    280 
    281 LOCAL_STATIC_LIBRARIES :=
    282 
    283 # Enable grouping to fix circular references
    284 LOCAL_GROUP_STATIC_LIBRARIES := true
    285 
    286 LOCAL_SHARED_LIBRARIES := \
    287 	libstlport \
    288 	libdl
    289 
    290 # Add target alias to "gyp_all_modules" target.
    291 .PHONY: gyp_all_modules
    292 gyp_all_modules: third_party_libwebp_libwebp_demux_gyp
    293 
    294 # Alias gyp target name.
    295 .PHONY: libwebp_demux
    296 libwebp_demux: third_party_libwebp_libwebp_demux_gyp
    297 
    298 include $(BUILD_STATIC_LIBRARY)
    299