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