Home | History | Annotate | Download | only in libjpeg_turbo
      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_libjpeg_turbo_libjpeg_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES :=
     14 
     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/libjpeg_turbo/jcapimin.c \
     27 	third_party/libjpeg_turbo/jcapistd.c \
     28 	third_party/libjpeg_turbo/jccoefct.c \
     29 	third_party/libjpeg_turbo/jccolor.c \
     30 	third_party/libjpeg_turbo/jcdctmgr.c \
     31 	third_party/libjpeg_turbo/jchuff.c \
     32 	third_party/libjpeg_turbo/jcinit.c \
     33 	third_party/libjpeg_turbo/jcmainct.c \
     34 	third_party/libjpeg_turbo/jcmarker.c \
     35 	third_party/libjpeg_turbo/jcmaster.c \
     36 	third_party/libjpeg_turbo/jcomapi.c \
     37 	third_party/libjpeg_turbo/jcparam.c \
     38 	third_party/libjpeg_turbo/jcphuff.c \
     39 	third_party/libjpeg_turbo/jcprepct.c \
     40 	third_party/libjpeg_turbo/jcsample.c \
     41 	third_party/libjpeg_turbo/jdapimin.c \
     42 	third_party/libjpeg_turbo/jdapistd.c \
     43 	third_party/libjpeg_turbo/jdatadst.c \
     44 	third_party/libjpeg_turbo/jdatasrc.c \
     45 	third_party/libjpeg_turbo/jdcoefct.c \
     46 	third_party/libjpeg_turbo/jdcolor.c \
     47 	third_party/libjpeg_turbo/jddctmgr.c \
     48 	third_party/libjpeg_turbo/jdhuff.c \
     49 	third_party/libjpeg_turbo/jdinput.c \
     50 	third_party/libjpeg_turbo/jdmainct.c \
     51 	third_party/libjpeg_turbo/jdmarker.c \
     52 	third_party/libjpeg_turbo/jdmaster.c \
     53 	third_party/libjpeg_turbo/jdmerge.c \
     54 	third_party/libjpeg_turbo/jdphuff.c \
     55 	third_party/libjpeg_turbo/jdpostct.c \
     56 	third_party/libjpeg_turbo/jdsample.c \
     57 	third_party/libjpeg_turbo/jerror.c \
     58 	third_party/libjpeg_turbo/jfdctflt.c \
     59 	third_party/libjpeg_turbo/jfdctfst.c \
     60 	third_party/libjpeg_turbo/jfdctint.c \
     61 	third_party/libjpeg_turbo/jidctflt.c \
     62 	third_party/libjpeg_turbo/jidctfst.c \
     63 	third_party/libjpeg_turbo/jidctint.c \
     64 	third_party/libjpeg_turbo/jidctred.c \
     65 	third_party/libjpeg_turbo/jmemmgr.c \
     66 	third_party/libjpeg_turbo/jmemnobs.c \
     67 	third_party/libjpeg_turbo/jquant1.c \
     68 	third_party/libjpeg_turbo/jquant2.c \
     69 	third_party/libjpeg_turbo/jutils.c \
     70 	third_party/libjpeg_turbo/jsimd_none.c
     71 
     72 
     73 # Flags passed to both C and C++ files.
     74 MY_CFLAGS_Debug := \
     75 	-fstack-protector \
     76 	--param=ssp-buffer-size=4 \
     77 	 \
     78 	-fno-strict-aliasing \
     79 	-Wno-unused-parameter \
     80 	-Wno-missing-field-initializers \
     81 	-fvisibility=hidden \
     82 	-pipe \
     83 	-fPIC \
     84 	-Wno-unused-local-typedefs \
     85 	-Wno-format \
     86 	-ffunction-sections \
     87 	-funwind-tables \
     88 	-g \
     89 	-fstack-protector \
     90 	-fno-short-enums \
     91 	-finline-limit=64 \
     92 	-Wa,--noexecstack \
     93 	-U_FORTIFY_SOURCE \
     94 	-Wno-extra \
     95 	-Wno-ignored-qualifiers \
     96 	-Wno-type-limits \
     97 	-Wno-unused-but-set-variable \
     98 	-Wno-address \
     99 	-Wno-format-security \
    100 	-Wno-return-type \
    101 	-Wno-sequence-point \
    102 	-Os \
    103 	-g \
    104 	-gdwarf-4 \
    105 	-fdata-sections \
    106 	-ffunction-sections \
    107 	-fomit-frame-pointer \
    108 	-funwind-tables
    109 
    110 MY_DEFS_Debug := \
    111 	'-DV8_DEPRECATION_WARNINGS' \
    112 	'-D_FILE_OFFSET_BITS=64' \
    113 	'-DNO_TCMALLOC' \
    114 	'-DDISABLE_NACL' \
    115 	'-DCHROMIUM_BUILD' \
    116 	'-DUSE_LIBJPEG_TURBO=1' \
    117 	'-DENABLE_WEBRTC=1' \
    118 	'-DUSE_PROPRIETARY_CODECS' \
    119 	'-DENABLE_BROWSER_CDMS' \
    120 	'-DENABLE_CONFIGURATION_POLICY' \
    121 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    122 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    123 	'-DENABLE_EGLIMAGE=1' \
    124 	'-DCLD_VERSION=1' \
    125 	'-DENABLE_PRINTING=1' \
    126 	'-DENABLE_MANAGED_USERS=1' \
    127 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    128 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    129 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    130 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    131 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    132 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    133 	'-DVIDEO_HOLE=1' \
    134 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    135 	'-DWITH_SIMD' \
    136 	'-DMOTION_JPEG_SUPPORTED' \
    137 	'-DNO_GETENV' \
    138 	'-DUSE_OPENSSL=1' \
    139 	'-DUSE_OPENSSL_CERTS=1' \
    140 	'-DANDROID' \
    141 	'-D__GNU_SOURCE=1' \
    142 	'-DUSE_STLPORT=1' \
    143 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    144 	'-DCHROME_BUILD_ID=""' \
    145 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    146 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    147 	'-D_DEBUG'
    148 
    149 
    150 # Include paths placed before CFLAGS/CPPFLAGS
    151 LOCAL_C_INCLUDES_Debug := \
    152 	$(gyp_shared_intermediate_dir) \
    153 	$(LOCAL_PATH)/third_party/libjpeg_turbo \
    154 	$(PWD)/frameworks/wilhelm/include \
    155 	$(PWD)/bionic \
    156 	$(PWD)/external/stlport/stlport
    157 
    158 
    159 # Flags passed to only C++ (and not C) files.
    160 LOCAL_CPPFLAGS_Debug := \
    161 	-fno-exceptions \
    162 	-fno-rtti \
    163 	-fno-threadsafe-statics \
    164 	-fvisibility-inlines-hidden \
    165 	-Wno-deprecated \
    166 	-Wno-uninitialized \
    167 	-std=gnu++11 \
    168 	-Wno-narrowing \
    169 	-Wno-literal-suffix \
    170 	-Wno-non-virtual-dtor \
    171 	-Wno-sign-promo \
    172 	-Wno-non-virtual-dtor
    173 
    174 
    175 # Flags passed to both C and C++ files.
    176 MY_CFLAGS_Release := \
    177 	-fstack-protector \
    178 	--param=ssp-buffer-size=4 \
    179 	 \
    180 	-fno-strict-aliasing \
    181 	-Wno-unused-parameter \
    182 	-Wno-missing-field-initializers \
    183 	-fvisibility=hidden \
    184 	-pipe \
    185 	-fPIC \
    186 	-Wno-unused-local-typedefs \
    187 	-Wno-format \
    188 	-ffunction-sections \
    189 	-funwind-tables \
    190 	-g \
    191 	-fstack-protector \
    192 	-fno-short-enums \
    193 	-finline-limit=64 \
    194 	-Wa,--noexecstack \
    195 	-U_FORTIFY_SOURCE \
    196 	-Wno-extra \
    197 	-Wno-ignored-qualifiers \
    198 	-Wno-type-limits \
    199 	-Wno-unused-but-set-variable \
    200 	-Wno-address \
    201 	-Wno-format-security \
    202 	-Wno-return-type \
    203 	-Wno-sequence-point \
    204 	-Os \
    205 	-fno-ident \
    206 	-fdata-sections \
    207 	-ffunction-sections \
    208 	-fomit-frame-pointer \
    209 	-funwind-tables
    210 
    211 MY_DEFS_Release := \
    212 	'-DV8_DEPRECATION_WARNINGS' \
    213 	'-D_FILE_OFFSET_BITS=64' \
    214 	'-DNO_TCMALLOC' \
    215 	'-DDISABLE_NACL' \
    216 	'-DCHROMIUM_BUILD' \
    217 	'-DUSE_LIBJPEG_TURBO=1' \
    218 	'-DENABLE_WEBRTC=1' \
    219 	'-DUSE_PROPRIETARY_CODECS' \
    220 	'-DENABLE_BROWSER_CDMS' \
    221 	'-DENABLE_CONFIGURATION_POLICY' \
    222 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    223 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    224 	'-DENABLE_EGLIMAGE=1' \
    225 	'-DCLD_VERSION=1' \
    226 	'-DENABLE_PRINTING=1' \
    227 	'-DENABLE_MANAGED_USERS=1' \
    228 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    229 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    230 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    231 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    232 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    233 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    234 	'-DVIDEO_HOLE=1' \
    235 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    236 	'-DWITH_SIMD' \
    237 	'-DMOTION_JPEG_SUPPORTED' \
    238 	'-DNO_GETENV' \
    239 	'-DUSE_OPENSSL=1' \
    240 	'-DUSE_OPENSSL_CERTS=1' \
    241 	'-DANDROID' \
    242 	'-D__GNU_SOURCE=1' \
    243 	'-DUSE_STLPORT=1' \
    244 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    245 	'-DCHROME_BUILD_ID=""' \
    246 	'-DNDEBUG' \
    247 	'-DNVALGRIND' \
    248 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    249 
    250 
    251 # Include paths placed before CFLAGS/CPPFLAGS
    252 LOCAL_C_INCLUDES_Release := \
    253 	$(gyp_shared_intermediate_dir) \
    254 	$(LOCAL_PATH)/third_party/libjpeg_turbo \
    255 	$(PWD)/frameworks/wilhelm/include \
    256 	$(PWD)/bionic \
    257 	$(PWD)/external/stlport/stlport
    258 
    259 
    260 # Flags passed to only C++ (and not C) files.
    261 LOCAL_CPPFLAGS_Release := \
    262 	-fno-exceptions \
    263 	-fno-rtti \
    264 	-fno-threadsafe-statics \
    265 	-fvisibility-inlines-hidden \
    266 	-Wno-deprecated \
    267 	-Wno-uninitialized \
    268 	-std=gnu++11 \
    269 	-Wno-narrowing \
    270 	-Wno-literal-suffix \
    271 	-Wno-non-virtual-dtor \
    272 	-Wno-sign-promo \
    273 	-Wno-non-virtual-dtor
    274 
    275 
    276 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    277 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    278 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    279 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    280 ### Rules for final target.
    281 
    282 LOCAL_SHARED_LIBRARIES := \
    283 	libstlport \
    284 	libdl
    285 
    286 # Add target alias to "gyp_all_modules" target.
    287 .PHONY: gyp_all_modules
    288 gyp_all_modules: third_party_libjpeg_turbo_libjpeg_gyp
    289 
    290 # Alias gyp target name.
    291 .PHONY: libjpeg
    292 libjpeg: third_party_libjpeg_turbo_libjpeg_gyp
    293 
    294 include $(BUILD_STATIC_LIBRARY)
    295