summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-06-01 16:59:02 -0700
committerTom Hacohen <tom@stosb.com>2016-06-02 11:35:05 +0100
commit6b5ed1b7118cd99b99a8d133b3e466952885f945 (patch)
treee800e00e4d7239499198598151f50e055d11de4e /configure.ac
parent36f15d761a2d39fc81c38a9db7b13d1d571ef453 (diff)
evas: integrate evas generic loaders into our single tree build system.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac93
1 files changed, 93 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1f70416..f9d6a56 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2807,6 +2807,99 @@ EFL_ADD_FEATURE([EVAS], [tile-rotate])
2807EFL_ADD_FEATURE([EVAS], [dither-mask], [${build_evas_dither_mask}]) 2807EFL_ADD_FEATURE([EVAS], [dither-mask], [${build_evas_dither_mask}])
2808EFL_ADD_FEATURE([EVAS], [hyphen]) 2808EFL_ADD_FEATURE([EVAS], [hyphen])
2809 2809
2810#### Generic backend
2811
2812### Option to turn on generic loader for evas
2813want_poppler="no"
2814want_spectre="no"
2815want_libraw="no"
2816want_rsvg="no"
2817
2818AC_ARG_ENABLE([poppler],
2819 [AC_HELP_STRING([--enable-poppler], [enable poppler support @<:@default==disabled@:>@])],
2820 [want_poppler=$enableval])
2821
2822AC_ARG_ENABLE([spectre],
2823 [AC_HELP_STRING([--enable-spectre], [enable spectre support @<:@default==disabled@:>@])],
2824 [want_spectre=$enableval])
2825
2826AC_ARG_ENABLE([libraw],
2827 [AC_HELP_STRING([--enable-libraw], [enable libraw support @<:@default==disabled@:>@])],
2828 [want_libraw=$enableval])
2829
2830AC_ARG_ENABLE([librsvg],
2831 [AC_HELP_STRING([--enable-librsvg], [enable svg support @<:@default==disabled@:>@])],
2832 [want_rsvg=$enableval])
2833
2834have_poppler="no"
2835have_spectre="no"
2836have_raw="no"
2837have_rsvg="no"
2838
2839### Check needed dependency for each generic loader
2840if test "x${want_poppler}" = "xyes"; then
2841 PKG_CHECK_EXISTS([poppler >= 0.12 poppler < 0.20],
2842 [
2843 poppler_pc="poppler >= 0.12 poppler < 0.20"
2844 have_poppler="yes"
2845 ],
2846 [have_poppler="no"])
2847
2848 if test "x${have_poppler}" = "xno" ; then
2849 PKG_CHECK_EXISTS([poppler >= 0.20 poppler < 0.31],
2850 [
2851 poppler_pc="poppler >= 0.20 poppler < 0.31"
2852 AC_DEFINE(HAVE_POPPLER_020, 1, [Have poppler 0.20])
2853 have_poppler="yes"
2854 ],
2855 [have_poppler="no"])
2856 fi
2857
2858 if test "x${have_poppler}" = "xno" ; then
2859 PKG_CHECK_EXISTS([poppler >= 0.31],
2860 [
2861 poppler_pc="poppler >= 0.31"
2862 AC_DEFINE(HAVE_POPPLER_031, 1, [Have poppler 0.31])
2863 have_poppler="yes"
2864 ],
2865 [have_poppler="no"])
2866 fi
2867
2868 if test "x${have_poppler}" = "xyes" ; then
2869 PKG_CHECK_MODULES([POPPLER], [${poppler_pc}],
2870 [have_poppler="yes"])
2871 fi
2872fi
2873
2874if test "x${want_spectre}" = "xyes"; then
2875 PKG_CHECK_MODULES([SPECTRE], [libspectre], [have_spectre="yes"])
2876fi
2877
2878if test "x${want_libraw}" = "xyes"; then
2879 PKG_CHECK_MODULES([LIBRAW], [libraw], [have_raw="yes"])
2880fi
2881
2882if test "x${want_librsvg}" = "xyes"; then
2883 PKG_CHECK_MODULES([RSVG], [librsvg-2.0 >= 2.14.0 cairo >= 1.0.0], [have_rsvg="yes"])
2884 PKG_CHECK_MODULES(
2885 [SVG_2_36], [librsvg-2.0 >= 2.36.0 cairo >= 1.0.0],
2886 [
2887 have_rsvg_2_36="yes"
2888 AC_DEFINE(HAVE_SVG_2_36, 1, [Have librsvg >= 2.36])
2889 ],
2890 [have_rsvg_2_36="no"])
2891fi
2892
2893AM_CONDITIONAL([HAVE_POPPLER], [test "x${have_poppler}" = "xyes"])
2894AM_CONDITIONAL([HAVE_SPECTRE], [test "x${have_spectre}" = "xyes"])
2895AM_CONDITIONAL([HAVE_LIBRAW], [test "x${have_raw}" = "xyes"])
2896AM_CONDITIONAL([HAVE_RSVG], [test "x${have_rsvg}" = "xyes"])
2897
2898EFL_ADD_FEATURE([EVAS_LOADER], [poppler], [${want_poppler}])
2899EFL_ADD_FEATURE([EVAS_LOADER], [spectre], [${want_spectre}])
2900EFL_ADD_FEATURE([EVAS_LOADER], [raw], [${want_libraw}])
2901EFL_ADD_FEATURE([EVAS_LOADER], [rsvg], [${want_rsvg}])
2902
2810EFL_LIB_END([Evas]) 2903EFL_LIB_END([Evas])
2811#### End of Evas 2904#### End of Evas
2812 2905