configure

branch
newapi
changeset 404
384f6d1f5784
parent 302
b00cbbfeec7a
equal deleted inserted replaced
403:b59935b2de79 404:384f6d1f5784
70 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 70 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
71 71
72 Options: 72 Options:
73 --debug add extra compile flags for debug builds 73 --debug add extra compile flags for debug builds
74 --release add extra compile flags for release builds 74 --release add extra compile flags for release builds
75 --toolkit=(libadwaita|gtk4|gtk3|gtk2|gtk2legacy|qt5|qt4|motif) 75 --toolkit=(libadwaita|gtk4|gtk3|gtk2|gtk2legacy|qt5|qt4|cocoa|motif)
76 76
77 __EOF__ 77 __EOF__
78 } 78 }
79 79
80 # 80 #
670 TOOLKIT = qt 670 TOOLKIT = qt
671 LD = $(CXX) 671 LD = $(CXX)
672 __EOF__ 672 __EOF__
673 return 0 673 return 0
674 } 674 }
675 checkopt_toolkit_cocoa()
676 {
677 VERR=0
678 if dependency_error_cocoa ; then
679 VERR=1
680 fi
681 if [ $VERR -ne 0 ]; then
682 return 1
683 fi
684 cat >> "$TEMP_DIR/make.mk" << __EOF__
685 TOOLKIT = cocoa
686 __EOF__
687 return 0
688 }
675 checkopt_toolkit_motif() 689 checkopt_toolkit_motif()
676 { 690 {
677 VERR=0 691 VERR=0
678 if dependency_error_motif ; then 692 if dependency_error_motif ; then
679 VERR=1 693 VERR=1
814 : 828 :
815 else 829 else
816 ERROR=1 830 ERROR=1
817 DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED" 831 DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
818 fi 832 fi
833 elif [ "$OPT_TOOLKIT" = "cocoa" ]; then
834 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options
835 if checkopt_toolkit_cocoa ; then
836 :
837 else
838 ERROR=1
839 DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
840 fi
819 elif [ "$OPT_TOOLKIT" = "motif" ]; then 841 elif [ "$OPT_TOOLKIT" = "motif" ]; then
820 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options 842 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options
821 if checkopt_toolkit_motif ; then 843 if checkopt_toolkit_motif ; then
822 : 844 :
823 else 845 else

mercurial