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