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