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_dec_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TAGS := optional
      9 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES := \
     14 	$(call intermediates-dir-for,GYP,third_party_libwebp_libwebp_dsp_neon_gyp)/libwebp_dsp_neon.stamp
     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/dec/alpha.c \
     27 	third_party/libwebp/dec/buffer.c \
     28 	third_party/libwebp/dec/frame.c \
     29 	third_party/libwebp/dec/idec.c \
     30 	third_party/libwebp/dec/io.c \
     31 	third_party/libwebp/dec/layer.c \
     32 	third_party/libwebp/dec/quant.c \
     33 	third_party/libwebp/dec/tree.c \
     34 	third_party/libwebp/dec/vp8.c \
     35 	third_party/libwebp/dec/vp8l.c \
     36 	third_party/libwebp/dec/webp.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 	 \
     44 	-fno-exceptions \
     45 	-fno-strict-aliasing \
     46 	-Wno-unused-parameter \
     47 	-Wno-missing-field-initializers \
     48 	-fvisibility=hidden \
     49 	-pipe \
     50 	-fPIC \
     51 	-Wno-format \
     52 	-EL \
     53 	-mhard-float \
     54 	-ffunction-sections \
     55 	-funwind-tables \
     56 	-g \
     57 	-fstack-protector \
     58 	-fno-short-enums \
     59 	-finline-limit=64 \
     60 	-Wa,--noexecstack \
     61 	-U_FORTIFY_SOURCE \
     62 	-Wno-extra \
     63 	-Wno-ignored-qualifiers \
     64 	-Wno-type-limits \
     65 	-Wno-address \
     66 	-Wno-format-security \
     67 	-Wno-return-type \
     68 	-Wno-sequence-point \
     69 	-Os \
     70 	-g \
     71 	-fomit-frame-pointer \
     72 	-fdata-sections \
     73 	-ffunction-sections
     74 
     75 MY_DEFS_Debug := \
     76 	'-DV8_DEPRECATION_WARNINGS' \
     77 	'-D_FILE_OFFSET_BITS=64' \
     78 	'-DNO_TCMALLOC' \
     79 	'-DDISABLE_NACL' \
     80 	'-DCHROMIUM_BUILD' \
     81 	'-DUSE_LIBJPEG_TURBO=1' \
     82 	'-DUSE_PROPRIETARY_CODECS' \
     83 	'-DENABLE_CONFIGURATION_POLICY' \
     84 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     85 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     86 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     87 	'-DUSE_OPENSSL=1' \
     88 	'-DENABLE_EGLIMAGE=1' \
     89 	'-DCLD_VERSION=1' \
     90 	'-DENABLE_PRINTING=1' \
     91 	'-DENABLE_MANAGED_USERS=1' \
     92 	'-DANDROID' \
     93 	'-D__GNU_SOURCE=1' \
     94 	'-DUSE_STLPORT=1' \
     95 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     96 	'-DCHROME_BUILD_ID=""' \
     97 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     98 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     99 	'-D_DEBUG'
    100 
    101 
    102 # Include paths placed before CFLAGS/CPPFLAGS
    103 LOCAL_C_INCLUDES_Debug := \
    104 	$(LOCAL_PATH)/third_party/libwebp \
    105 	$(PWD)/frameworks/wilhelm/include \
    106 	$(PWD)/bionic \
    107 	$(PWD)/external/stlport/stlport
    108 
    109 
    110 # Flags passed to only C++ (and not C) files.
    111 LOCAL_CPPFLAGS_Debug := \
    112 	-fno-rtti \
    113 	-fno-threadsafe-statics \
    114 	-fvisibility-inlines-hidden \
    115 	-Wno-deprecated \
    116 	-Wno-uninitialized \
    117 	-Wno-error=c++0x-compat \
    118 	-Wno-non-virtual-dtor \
    119 	-Wno-sign-promo \
    120 	-Wno-non-virtual-dtor
    121 
    122 
    123 # Flags passed to both C and C++ files.
    124 MY_CFLAGS_Release := \
    125 	-fstack-protector \
    126 	--param=ssp-buffer-size=4 \
    127 	 \
    128 	-fno-exceptions \
    129 	-fno-strict-aliasing \
    130 	-Wno-unused-parameter \
    131 	-Wno-missing-field-initializers \
    132 	-fvisibility=hidden \
    133 	-pipe \
    134 	-fPIC \
    135 	-Wno-format \
    136 	-EL \
    137 	-mhard-float \
    138 	-ffunction-sections \
    139 	-funwind-tables \
    140 	-g \
    141 	-fstack-protector \
    142 	-fno-short-enums \
    143 	-finline-limit=64 \
    144 	-Wa,--noexecstack \
    145 	-U_FORTIFY_SOURCE \
    146 	-Wno-extra \
    147 	-Wno-ignored-qualifiers \
    148 	-Wno-type-limits \
    149 	-Wno-address \
    150 	-Wno-format-security \
    151 	-Wno-return-type \
    152 	-Wno-sequence-point \
    153 	-Os \
    154 	-fno-ident \
    155 	-fdata-sections \
    156 	-ffunction-sections \
    157 	-fomit-frame-pointer
    158 
    159 MY_DEFS_Release := \
    160 	'-DV8_DEPRECATION_WARNINGS' \
    161 	'-D_FILE_OFFSET_BITS=64' \
    162 	'-DNO_TCMALLOC' \
    163 	'-DDISABLE_NACL' \
    164 	'-DCHROMIUM_BUILD' \
    165 	'-DUSE_LIBJPEG_TURBO=1' \
    166 	'-DUSE_PROPRIETARY_CODECS' \
    167 	'-DENABLE_CONFIGURATION_POLICY' \
    168 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    169 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    170 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    171 	'-DUSE_OPENSSL=1' \
    172 	'-DENABLE_EGLIMAGE=1' \
    173 	'-DCLD_VERSION=1' \
    174 	'-DENABLE_PRINTING=1' \
    175 	'-DENABLE_MANAGED_USERS=1' \
    176 	'-DANDROID' \
    177 	'-D__GNU_SOURCE=1' \
    178 	'-DUSE_STLPORT=1' \
    179 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    180 	'-DCHROME_BUILD_ID=""' \
    181 	'-DNDEBUG' \
    182 	'-DNVALGRIND' \
    183 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    184 
    185 
    186 # Include paths placed before CFLAGS/CPPFLAGS
    187 LOCAL_C_INCLUDES_Release := \
    188 	$(LOCAL_PATH)/third_party/libwebp \
    189 	$(PWD)/frameworks/wilhelm/include \
    190 	$(PWD)/bionic \
    191 	$(PWD)/external/stlport/stlport
    192 
    193 
    194 # Flags passed to only C++ (and not C) files.
    195 LOCAL_CPPFLAGS_Release := \
    196 	-fno-rtti \
    197 	-fno-threadsafe-statics \
    198 	-fvisibility-inlines-hidden \
    199 	-Wno-deprecated \
    200 	-Wno-uninitialized \
    201 	-Wno-error=c++0x-compat \
    202 	-Wno-non-virtual-dtor \
    203 	-Wno-sign-promo \
    204 	-Wno-non-virtual-dtor
    205 
    206 
    207 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    208 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    209 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    210 ### Rules for final target.
    211 
    212 LOCAL_LDFLAGS_Debug := \
    213 	-Wl,-z,now \
    214 	-Wl,-z,relro \
    215 	-Wl,-z,noexecstack \
    216 	-fPIC \
    217 	-EL \
    218 	-Wl,--no-keep-memory \
    219 	-nostdlib \
    220 	-Wl,--no-undefined \
    221 	-Wl,--exclude-libs=ALL \
    222 	-Wl,--fatal-warnings \
    223 	-Wl,--gc-sections \
    224 	-Wl,--warn-shared-textrel \
    225 	-Wl,-O1 \
    226 	-Wl,--as-needed
    227 
    228 
    229 LOCAL_LDFLAGS_Release := \
    230 	-Wl,-z,now \
    231 	-Wl,-z,relro \
    232 	-Wl,-z,noexecstack \
    233 	-fPIC \
    234 	-EL \
    235 	-Wl,--no-keep-memory \
    236 	-nostdlib \
    237 	-Wl,--no-undefined \
    238 	-Wl,--exclude-libs=ALL \
    239 	-Wl,-O1 \
    240 	-Wl,--as-needed \
    241 	-Wl,--gc-sections \
    242 	-Wl,--fatal-warnings \
    243 	-Wl,--warn-shared-textrel
    244 
    245 
    246 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    247 
    248 LOCAL_STATIC_LIBRARIES :=
    249 
    250 # Enable grouping to fix circular references
    251 LOCAL_GROUP_STATIC_LIBRARIES := true
    252 
    253 LOCAL_SHARED_LIBRARIES := \
    254 	libstlport \
    255 	libdl
    256 
    257 # Add target alias to "gyp_all_modules" target.
    258 .PHONY: gyp_all_modules
    259 gyp_all_modules: third_party_libwebp_libwebp_dec_gyp
    260 
    261 # Alias gyp target name.
    262 .PHONY: libwebp_dec
    263 libwebp_dec: third_party_libwebp_libwebp_dec_gyp
    264 
    265 include $(BUILD_STATIC_LIBRARY)
    266