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_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 
     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/rescaler.c \
     34 	third_party/libwebp/utils/thread.c \
     35 	third_party/libwebp/utils/utils.c
     36 
     37 
     38 # Flags passed to both C and C++ files.
     39 MY_CFLAGS_Debug := \
     40 	--param=ssp-buffer-size=4 \
     41 	-fno-exceptions \
     42 	-fno-strict-aliasing \
     43 	-Wno-unused-parameter \
     44 	-Wno-missing-field-initializers \
     45 	-fvisibility=hidden \
     46 	-pipe \
     47 	-fPIC \
     48 	-Wno-format \
     49 	-m32 \
     50 	-mmmx \
     51 	-march=pentium4 \
     52 	-msse2 \
     53 	-mfpmath=sse \
     54 	-fuse-ld=gold \
     55 	-ffunction-sections \
     56 	-funwind-tables \
     57 	-g \
     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 	-fno-stack-protector \
     70 	-Os \
     71 	-g \
     72 	-fomit-frame-pointer \
     73 	-fdata-sections \
     74 	-ffunction-sections
     75 
     76 MY_DEFS_Debug := \
     77 	'-DANGLE_DX11' \
     78 	'-D_FILE_OFFSET_BITS=64' \
     79 	'-DNO_TCMALLOC' \
     80 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     81 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     82 	'-DDISABLE_NACL' \
     83 	'-DCHROMIUM_BUILD' \
     84 	'-DUSE_LIBJPEG_TURBO=1' \
     85 	'-DUSE_PROPRIETARY_CODECS' \
     86 	'-DENABLE_CONFIGURATION_POLICY' \
     87 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     88 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     89 	'-DENABLE_GPU=1' \
     90 	'-DUSE_OPENSSL=1' \
     91 	'-DENABLE_EGLIMAGE=1' \
     92 	'-DENABLE_PRINTING=1' \
     93 	'-DANDROID' \
     94 	'-D__GNU_SOURCE=1' \
     95 	'-DUSE_STLPORT=1' \
     96 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     97 	'-DCHROME_BUILD_ID=""' \
     98 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     99 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    100 	'-D_DEBUG'
    101 
    102 
    103 # Include paths placed before CFLAGS/CPPFLAGS
    104 LOCAL_C_INCLUDES_Debug := \
    105 	$(LOCAL_PATH)/third_party/libwebp \
    106 	$(PWD)/frameworks/wilhelm/include \
    107 	$(PWD)/bionic \
    108 	$(PWD)/external/stlport/stlport
    109 
    110 
    111 # Flags passed to only C++ (and not C) files.
    112 LOCAL_CPPFLAGS_Debug := \
    113 	-fno-rtti \
    114 	-fno-threadsafe-statics \
    115 	-fvisibility-inlines-hidden \
    116 	-Wno-deprecated \
    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 	--param=ssp-buffer-size=4 \
    126 	-fno-exceptions \
    127 	-fno-strict-aliasing \
    128 	-Wno-unused-parameter \
    129 	-Wno-missing-field-initializers \
    130 	-fvisibility=hidden \
    131 	-pipe \
    132 	-fPIC \
    133 	-Wno-format \
    134 	-m32 \
    135 	-mmmx \
    136 	-march=pentium4 \
    137 	-msse2 \
    138 	-mfpmath=sse \
    139 	-fuse-ld=gold \
    140 	-ffunction-sections \
    141 	-funwind-tables \
    142 	-g \
    143 	-fno-short-enums \
    144 	-finline-limit=64 \
    145 	-Wa,--noexecstack \
    146 	-U_FORTIFY_SOURCE \
    147 	-Wno-extra \
    148 	-Wno-ignored-qualifiers \
    149 	-Wno-type-limits \
    150 	-Wno-address \
    151 	-Wno-format-security \
    152 	-Wno-return-type \
    153 	-Wno-sequence-point \
    154 	-fno-stack-protector \
    155 	-Os \
    156 	-fno-ident \
    157 	-fdata-sections \
    158 	-ffunction-sections \
    159 	-fomit-frame-pointer \
    160 	-fno-unwind-tables \
    161 	-fno-asynchronous-unwind-tables
    162 
    163 MY_DEFS_Release := \
    164 	'-DANGLE_DX11' \
    165 	'-D_FILE_OFFSET_BITS=64' \
    166 	'-DNO_TCMALLOC' \
    167 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    168 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    169 	'-DDISABLE_NACL' \
    170 	'-DCHROMIUM_BUILD' \
    171 	'-DUSE_LIBJPEG_TURBO=1' \
    172 	'-DUSE_PROPRIETARY_CODECS' \
    173 	'-DENABLE_CONFIGURATION_POLICY' \
    174 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    175 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    176 	'-DENABLE_GPU=1' \
    177 	'-DUSE_OPENSSL=1' \
    178 	'-DENABLE_EGLIMAGE=1' \
    179 	'-DENABLE_PRINTING=1' \
    180 	'-DANDROID' \
    181 	'-D__GNU_SOURCE=1' \
    182 	'-DUSE_STLPORT=1' \
    183 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    184 	'-DCHROME_BUILD_ID=""' \
    185 	'-DNDEBUG' \
    186 	'-DNVALGRIND' \
    187 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    188 
    189 
    190 # Include paths placed before CFLAGS/CPPFLAGS
    191 LOCAL_C_INCLUDES_Release := \
    192 	$(LOCAL_PATH)/third_party/libwebp \
    193 	$(PWD)/frameworks/wilhelm/include \
    194 	$(PWD)/bionic \
    195 	$(PWD)/external/stlport/stlport
    196 
    197 
    198 # Flags passed to only C++ (and not C) files.
    199 LOCAL_CPPFLAGS_Release := \
    200 	-fno-rtti \
    201 	-fno-threadsafe-statics \
    202 	-fvisibility-inlines-hidden \
    203 	-Wno-deprecated \
    204 	-Wno-error=c++0x-compat \
    205 	-Wno-non-virtual-dtor \
    206 	-Wno-sign-promo \
    207 	-Wno-non-virtual-dtor
    208 
    209 
    210 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    211 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    212 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    213 ### Rules for final target.
    214 
    215 LOCAL_LDFLAGS_Debug := \
    216 	-Wl,-z,now \
    217 	-Wl,-z,relro \
    218 	-Wl,-z,noexecstack \
    219 	-fPIC \
    220 	-m32 \
    221 	-fuse-ld=gold \
    222 	-nostdlib \
    223 	-Wl,--no-undefined \
    224 	-Wl,--exclude-libs=ALL \
    225 	-Wl,--fatal-warnings \
    226 	-Wl,--gc-sections \
    227 	-Wl,--warn-shared-textrel \
    228 	-Wl,-O1 \
    229 	-Wl,--as-needed
    230 
    231 
    232 LOCAL_LDFLAGS_Release := \
    233 	-Wl,-z,now \
    234 	-Wl,-z,relro \
    235 	-Wl,-z,noexecstack \
    236 	-fPIC \
    237 	-m32 \
    238 	-fuse-ld=gold \
    239 	-nostdlib \
    240 	-Wl,--no-undefined \
    241 	-Wl,--exclude-libs=ALL \
    242 	-Wl,-O1 \
    243 	-Wl,--as-needed \
    244 	-Wl,--gc-sections \
    245 	-Wl,--fatal-warnings \
    246 	-Wl,--warn-shared-textrel
    247 
    248 
    249 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    250 
    251 LOCAL_STATIC_LIBRARIES :=
    252 
    253 # Enable grouping to fix circular references
    254 LOCAL_GROUP_STATIC_LIBRARIES := true
    255 
    256 LOCAL_SHARED_LIBRARIES := \
    257 	libstlport \
    258 	libdl
    259 
    260 # Add target alias to "gyp_all_modules" target.
    261 .PHONY: gyp_all_modules
    262 gyp_all_modules: third_party_libwebp_libwebp_utils_gyp
    263 
    264 # Alias gyp target name.
    265 .PHONY: libwebp_utils
    266 libwebp_utils: third_party_libwebp_libwebp_utils_gyp
    267 
    268 include $(BUILD_STATIC_LIBRARY)
    269