• Otto Ryynänen's avatar
    Support for Q_OS_ANDROID_EMBEDDED and android-embedded builds · 2dae7743
    Otto Ryynänen authored
    
    The Embedded Android build (Boot to Qt Android injection) is defined by
    having both Q_OS_ANDROID and Q_OS_ANDROID_EMBEDDED flags defined,
    as well as having Qt config android-embedded.
    Those flags are set in mkspecs when building for embedded Android.
    This commit enables the possibility to build embedded Android builds.
    (i.e. Qt build for Android baselayer only, without JNI)
    
    Change-Id: I8d139b6d7b61c00ad44079cbfa6e5c77e8618a7b
    Reviewed-by: default avatarEirik Aavitsland <eirik.aavitsland@qt.io>
    2dae7743
libwebp.pri 6.11 KiB
INCLUDEPATH += \
    $$PWD/libwebp \
    $$PWD/libwebp/src \
    $$PWD/libwebp/src/dec \
    $$PWD/libwebp/src/enc \
    $$PWD/libwebp/src/dsp \
    $$PWD/libwebp/src/mux \
    $$PWD/libwebp/src/utils \
    $$PWD/libwebp/src/webp
SOURCES += \
    $$PWD/libwebp/src/dec/alpha_dec.c \
    $$PWD/libwebp/src/dec/buffer_dec.c \
    $$PWD/libwebp/src/dec/frame_dec.c \
    $$PWD/libwebp/src/dec/idec_dec.c \
    $$PWD/libwebp/src/dec/io_dec.c \
    $$PWD/libwebp/src/dec/quant_dec.c \
    $$PWD/libwebp/src/dec/tree_dec.c \
    $$PWD/libwebp/src/dec/vp8_dec.c \
    $$PWD/libwebp/src/dec/vp8l_dec.c \
    $$PWD/libwebp/src/dec/webp_dec.c \
    $$PWD/libwebp/src/demux/demux.c \
    $$PWD/libwebp/src/demux/anim_decode.c \
    $$PWD/libwebp/src/dsp/alpha_processing.c \
    $$PWD/libwebp/src/dsp/alpha_processing_mips_dsp_r2.c \
    $$PWD/libwebp/src/dsp/alpha_processing_sse2.c \
    $$PWD/libwebp/src/dsp/alpha_processing_sse41.c \
    $$PWD/libwebp/src/dsp/argb.c \
    $$PWD/libwebp/src/dsp/argb_mips_dsp_r2.c \
    $$PWD/libwebp/src/dsp/argb_sse2.c \
    $$PWD/libwebp/src/dsp/cost.c \
    $$PWD/libwebp/src/dsp/cost_mips32.c \
    $$PWD/libwebp/src/dsp/cost_mips_dsp_r2.c \
    $$PWD/libwebp/src/dsp/cost_sse2.c \
    $$PWD/libwebp/src/dsp/cpu.c \
    $$PWD/libwebp/src/dsp/dec.c \
    $$PWD/libwebp/src/dsp/dec_clip_tables.c \
    $$PWD/libwebp/src/dsp/dec_mips32.c \
    $$PWD/libwebp/src/dsp/dec_mips_dsp_r2.c \
    $$PWD/libwebp/src/dsp/dec_msa.c \
    $$PWD/libwebp/src/dsp/dec_sse2.c \
    $$PWD/libwebp/src/dsp/dec_sse41.c \
    $$PWD/libwebp/src/dsp/enc.c \
    $$PWD/libwebp/src/dsp/enc_avx2.c \
    $$PWD/libwebp/src/dsp/enc_mips32.c \
    $$PWD/libwebp/src/dsp/enc_mips_dsp_r2.c \
    $$PWD/libwebp/src/dsp/enc_msa.c \
    $$PWD/libwebp/src/dsp/enc_sse2.c \
    $$PWD/libwebp/src/dsp/enc_sse41.c \
    $$PWD/libwebp/src/dsp/filters.c \
    $$PWD/libwebp/src/dsp/filters_mips_dsp_r2.c \
    $$PWD/libwebp/src/dsp/filters_msa.c \
    $$PWD/libwebp/src/dsp/filters_sse2.c \
    $$PWD/libwebp/src/dsp/lossless.c \
    $$PWD/libwebp/src/dsp/lossless_enc.c \
    $$PWD/libwebp/src/dsp/lossless_enc_mips32.c \
    $$PWD/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c \
    $$PWD/libwebp/src/dsp/lossless_enc_msa.c \
    $$PWD/libwebp/src/dsp/lossless_enc_sse2.c \
    $$PWD/libwebp/src/dsp/lossless_enc_sse41.c \
    $$PWD/libwebp/src/dsp/lossless_mips_dsp_r2.c \
    $$PWD/libwebp/src/dsp/rescaler.c \
    $$PWD/libwebp/src/dsp/rescaler_mips32.c \
    $$PWD/libwebp/src/dsp/rescaler_mips_dsp_r2.c \
    $$PWD/libwebp/src/dsp/rescaler_msa.c \
    $$PWD/libwebp/src/dsp/rescaler_sse2.c \
    $$PWD/libwebp/src/dsp/upsampling.c \
    $$PWD/libwebp/src/dsp/upsampling_mips_dsp_r2.c \
    $$PWD/libwebp/src/dsp/upsampling_msa.c \
    $$PWD/libwebp/src/dsp/upsampling_sse2.c \
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
$$PWD/libwebp/src/dsp/yuv.c \ $$PWD/libwebp/src/dsp/yuv_mips_dsp_r2.c \ $$PWD/libwebp/src/dsp/lossless_sse2.c \ $$PWD/libwebp/src/dsp/yuv_mips32.c \ $$PWD/libwebp/src/dsp/yuv_sse2.c \ $$PWD/libwebp/src/enc/alpha_enc.c \ $$PWD/libwebp/src/enc/analysis_enc.c \ $$PWD/libwebp/src/enc/backward_references_enc.c \ $$PWD/libwebp/src/enc/config_enc.c \ $$PWD/libwebp/src/enc/cost_enc.c \ $$PWD/libwebp/src/enc/delta_palettization_enc.c \ $$PWD/libwebp/src/enc/filter_enc.c \ $$PWD/libwebp/src/enc/frame_enc.c \ $$PWD/libwebp/src/enc/histogram_enc.c \ $$PWD/libwebp/src/enc/iterator_enc.c \ $$PWD/libwebp/src/enc/near_lossless_enc.c \ $$PWD/libwebp/src/enc/picture_enc.c \ $$PWD/libwebp/src/enc/picture_csp_enc.c \ $$PWD/libwebp/src/enc/picture_psnr_enc.c \ $$PWD/libwebp/src/enc/picture_rescale_enc.c \ $$PWD/libwebp/src/enc/picture_tools_enc.c \ $$PWD/libwebp/src/enc/predictor_enc.c \ $$PWD/libwebp/src/enc/quant_enc.c \ $$PWD/libwebp/src/enc/syntax_enc.c \ $$PWD/libwebp/src/enc/token_enc.c \ $$PWD/libwebp/src/enc/tree_enc.c \ $$PWD/libwebp/src/enc/vp8l_enc.c \ $$PWD/libwebp/src/enc/webp_enc.c \ $$PWD/libwebp/src/mux/anim_encode.c \ $$PWD/libwebp/src/mux/muxedit.c \ $$PWD/libwebp/src/mux/muxinternal.c \ $$PWD/libwebp/src/mux/muxread.c \ $$PWD/libwebp/src/utils/bit_reader_utils.c \ $$PWD/libwebp/src/utils/bit_writer_utils.c \ $$PWD/libwebp/src/utils/color_cache_utils.c \ $$PWD/libwebp/src/utils/filters_utils.c \ $$PWD/libwebp/src/utils/huffman_utils.c \ $$PWD/libwebp/src/utils/huffman_encode_utils.c \ $$PWD/libwebp/src/utils/quant_levels_utils.c \ $$PWD/libwebp/src/utils/quant_levels_dec_utils.c \ $$PWD/libwebp/src/utils/random_utils.c \ $$PWD/libwebp/src/utils/rescaler_utils.c \ $$PWD/libwebp/src/utils/thread_utils.c \ $$PWD/libwebp/src/utils/utils.c android:!android-embedded { SOURCES += $$NDK_ROOT/sources/android/cpufeatures/cpu-features.c INCLUDEPATH += $$NDK_ROOT/sources/android/cpufeatures } integrity { QMAKE_CFLAGS += -c99 } equals(QT_ARCH, arm)|equals(QT_ARCH, arm64) { SOURCES_FOR_NEON += \ $$PWD/libwebp/src/dsp/alpha_processing_neon.c \ $$PWD/libwebp/src/dsp/dec_neon.c \ $$PWD/libwebp/src/dsp/enc_neon.c \ $$PWD/libwebp/src/dsp/filters_neon.c \ $$PWD/libwebp/src/dsp/lossless_enc_neon.c \ $$PWD/libwebp/src/dsp/lossless_neon.c \ $$PWD/libwebp/src/dsp/rescaler_neon.c \ $$PWD/libwebp/src/dsp/upsampling_neon.c contains(QT_CPU_FEATURES.$$QT_ARCH, neon) { # Default compiler settings include this feature, so just add to SOURCES SOURCES += $$SOURCES_FOR_NEON } else { neon_comp.commands = $$QMAKE_CC -c $(CFLAGS)
141142143144145146147148149150151152153154
neon_comp.commands += $$QMAKE_CFLAGS_NEON neon_comp.commands += $(INCPATH) ${QMAKE_FILE_IN} msvc: neon_comp.commands += -Fo${QMAKE_FILE_OUT} else: neon_comp.commands += -o ${QMAKE_FILE_OUT} neon_comp.dependency_type = TYPE_C neon_comp.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)} neon_comp.input = SOURCES_FOR_NEON neon_comp.variable_out = OBJECTS neon_comp.name = compiling[neon] ${QMAKE_FILE_IN} silent: neon_comp.commands = @echo compiling[neon] ${QMAKE_FILE_IN} && $$neon_comp.commands QMAKE_EXTRA_COMPILERS += neon_comp } }