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/simd/jsimd_arm64.c \
     71 	third_party/libjpeg_turbo/simd/jsimd_arm64_neon.S
     72 
     73 
     74 # Flags passed to both C and C++ files.
     75 MY_CFLAGS_Debug := \
     76 	--param=ssp-buffer-size=4 \
     77 	-fno-strict-aliasing \
     78 	-Wno-unused-parameter \
     79 	-Wno-missing-field-initializers \
     80 	-fvisibility=hidden \
     81 	-pipe \
     82 	-fPIC \
     83 	-Wno-unused-local-typedefs \
     84 	-Wno-format \
     85 	-ffunction-sections \
     86 	-funwind-tables \
     87 	-g \
     88 	-fno-short-enums \
     89 	-finline-limit=64 \
     90 	-Wa,--noexecstack \
     91 	-U_FORTIFY_SOURCE \
     92 	-Wno-extra \
     93 	-Wno-ignored-qualifiers \
     94 	-Wno-type-limits \
     95 	-Wno-unused-but-set-variable \
     96 	-Wno-address \
     97 	-Wno-format-security \
     98 	-Wno-return-type \
     99 	-Wno-sequence-point \
    100 	-Os \
    101 	-g \
    102 	-gdwarf-4 \
    103 	-fdata-sections \
    104 	-ffunction-sections \
    105 	-funwind-tables
    106 
    107 MY_DEFS_Debug := \
    108 	'-DV8_DEPRECATION_WARNINGS' \
    109 	'-D_FILE_OFFSET_BITS=64' \
    110 	'-DNO_TCMALLOC' \
    111 	'-DDISABLE_NACL' \
    112 	'-DCHROMIUM_BUILD' \
    113 	'-DUSE_LIBJPEG_TURBO=1' \
    114 	'-DENABLE_WEBRTC=1' \
    115 	'-DUSE_PROPRIETARY_CODECS' \
    116 	'-DENABLE_BROWSER_CDMS' \
    117 	'-DENABLE_CONFIGURATION_POLICY' \
    118 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    119 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    120 	'-DENABLE_EGLIMAGE=1' \
    121 	'-DCLD_VERSION=1' \
    122 	'-DENABLE_PRINTING=1' \
    123 	'-DENABLE_MANAGED_USERS=1' \
    124 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    125 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    126 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    127 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    128 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    129 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    130 	'-DVIDEO_HOLE=1' \
    131 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    132 	'-DWITH_SIMD' \
    133 	'-DMOTION_JPEG_SUPPORTED' \
    134 	'-DNO_GETENV' \
    135 	'-DUSE_OPENSSL=1' \
    136 	'-DUSE_OPENSSL_CERTS=1' \
    137 	'-DANDROID' \
    138 	'-D__GNU_SOURCE=1' \
    139 	'-DUSE_STLPORT=1' \
    140 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    141 	'-DCHROME_BUILD_ID=""' \
    142 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    143 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    144 	'-D_DEBUG'
    145 
    146 
    147 # Include paths placed before CFLAGS/CPPFLAGS
    148 LOCAL_C_INCLUDES_Debug := \
    149 	$(gyp_shared_intermediate_dir) \
    150 	$(LOCAL_PATH)/third_party/libjpeg_turbo \
    151 	$(PWD)/frameworks/wilhelm/include \
    152 	$(PWD)/bionic \
    153 	$(PWD)/external/stlport/stlport
    154 
    155 
    156 # Flags passed to only C++ (and not C) files.
    157 LOCAL_CPPFLAGS_Debug := \
    158 	-fno-exceptions \
    159 	-fno-rtti \
    160 	-fno-threadsafe-statics \
    161 	-fvisibility-inlines-hidden \
    162 	-Wno-deprecated \
    163 	-std=gnu++11 \
    164 	-Wno-narrowing \
    165 	-Wno-literal-suffix \
    166 	-Wno-non-virtual-dtor \
    167 	-Wno-sign-promo \
    168 	-Wno-non-virtual-dtor
    169 
    170 
    171 # Flags passed to both C and C++ files.
    172 MY_CFLAGS_Release := \
    173 	--param=ssp-buffer-size=4 \
    174 	-fno-strict-aliasing \
    175 	-Wno-unused-parameter \
    176 	-Wno-missing-field-initializers \
    177 	-fvisibility=hidden \
    178 	-pipe \
    179 	-fPIC \
    180 	-Wno-unused-local-typedefs \
    181 	-Wno-format \
    182 	-ffunction-sections \
    183 	-funwind-tables \
    184 	-g \
    185 	-fno-short-enums \
    186 	-finline-limit=64 \
    187 	-Wa,--noexecstack \
    188 	-U_FORTIFY_SOURCE \
    189 	-Wno-extra \
    190 	-Wno-ignored-qualifiers \
    191 	-Wno-type-limits \
    192 	-Wno-unused-but-set-variable \
    193 	-Wno-address \
    194 	-Wno-format-security \
    195 	-Wno-return-type \
    196 	-Wno-sequence-point \
    197 	-Os \
    198 	-fno-ident \
    199 	-fdata-sections \
    200 	-ffunction-sections \
    201 	-funwind-tables
    202 
    203 MY_DEFS_Release := \
    204 	'-DV8_DEPRECATION_WARNINGS' \
    205 	'-D_FILE_OFFSET_BITS=64' \
    206 	'-DNO_TCMALLOC' \
    207 	'-DDISABLE_NACL' \
    208 	'-DCHROMIUM_BUILD' \
    209 	'-DUSE_LIBJPEG_TURBO=1' \
    210 	'-DENABLE_WEBRTC=1' \
    211 	'-DUSE_PROPRIETARY_CODECS' \
    212 	'-DENABLE_BROWSER_CDMS' \
    213 	'-DENABLE_CONFIGURATION_POLICY' \
    214 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    215 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    216 	'-DENABLE_EGLIMAGE=1' \
    217 	'-DCLD_VERSION=1' \
    218 	'-DENABLE_PRINTING=1' \
    219 	'-DENABLE_MANAGED_USERS=1' \
    220 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    221 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    222 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    223 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    224 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    225 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    226 	'-DVIDEO_HOLE=1' \
    227 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    228 	'-DWITH_SIMD' \
    229 	'-DMOTION_JPEG_SUPPORTED' \
    230 	'-DNO_GETENV' \
    231 	'-DUSE_OPENSSL=1' \
    232 	'-DUSE_OPENSSL_CERTS=1' \
    233 	'-DANDROID' \
    234 	'-D__GNU_SOURCE=1' \
    235 	'-DUSE_STLPORT=1' \
    236 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    237 	'-DCHROME_BUILD_ID=""' \
    238 	'-DNDEBUG' \
    239 	'-DNVALGRIND' \
    240 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    241 
    242 
    243 # Include paths placed before CFLAGS/CPPFLAGS
    244 LOCAL_C_INCLUDES_Release := \
    245 	$(gyp_shared_intermediate_dir) \
    246 	$(LOCAL_PATH)/third_party/libjpeg_turbo \
    247 	$(PWD)/frameworks/wilhelm/include \
    248 	$(PWD)/bionic \
    249 	$(PWD)/external/stlport/stlport
    250 
    251 
    252 # Flags passed to only C++ (and not C) files.
    253 LOCAL_CPPFLAGS_Release := \
    254 	-fno-exceptions \
    255 	-fno-rtti \
    256 	-fno-threadsafe-statics \
    257 	-fvisibility-inlines-hidden \
    258 	-Wno-deprecated \
    259 	-std=gnu++11 \
    260 	-Wno-narrowing \
    261 	-Wno-literal-suffix \
    262 	-Wno-non-virtual-dtor \
    263 	-Wno-sign-promo \
    264 	-Wno-non-virtual-dtor
    265 
    266 
    267 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    268 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    269 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    270 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    271 ### Rules for final target.
    272 
    273 LOCAL_SHARED_LIBRARIES := \
    274 	libstlport \
    275 	libdl
    276 
    277 # Add target alias to "gyp_all_modules" target.
    278 .PHONY: gyp_all_modules
    279 gyp_all_modules: third_party_libjpeg_turbo_libjpeg_gyp
    280 
    281 # Alias gyp target name.
    282 .PHONY: libjpeg
    283 libjpeg: third_party_libjpeg_turbo_libjpeg_gyp
    284 
    285 include $(BUILD_STATIC_LIBRARY)
    286