Changeset 370899f


Ignore:
Timestamp:
2011-04-12T00:16:35Z (14 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
17dd2ed, bf8ee39
Parents:
43b1cd7
Message:

Add build system support for building the skype plugin

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r43b1cd7 r370899f  
    2727subdirobjs = $(foreach dir,$(subdirs),$(dir)/$(dir).o)
    2828
    29 all: $(OUTFILE) $(OTR_PI) systemd
     29all: $(OUTFILE) $(OTR_PI) $(SKYPE_PI) systemd
    3030        $(MAKE) -C doc
    3131
     
    109109        install -m 0755 otr.so $(DESTDIR)$(PLUGINDIR)
    110110endif
     111ifdef SKYPE_PI
     112        mkdir -p $(DESTDIR)$(PLUGINDIR)
     113        install -m 0755 skype.so $(DESTDIR)$(PLUGINDIR)
     114endif
    111115
    112116systemd:
     
    141145        @$(CC) $(CFLAGS) $(OTRFLAGS) -fPIC -shared $< -o $@
    142146
     147$(SKYPE_PI): $(SRCDIR)protocols/skype/skype.c
     148        @echo '*' Building plugin skype
     149        @$(CC) $(CFLAGS) -fPIC -shared $< -o $@
     150
    143151$(objects): %.o: $(SRCDIR)%.c
    144152        @echo '*' Compiling $<
  • configure

    r43b1cd7 r370899f  
    3636plugins=1
    3737otr=0
     38skype=0
    3839
    3940events=glib
     
    8384--otr=0/1/auto/plugin
    8485                Disable/enable OTR encryption support   $otr
     86--skype=0/plugin
     87                Disable/enable Skype support            $skype
    8588
    8689--events=...    Event handler (glib, libevent)          $events
     
    538541fi
    539542
     543if [ "$skype" = "plugin" ]; then
     544        echo 'SKYPE_PI=skype.so' >> Makefile.settings
     545fi
     546
    540547if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; then
    541548        echo
     
    738745else
    739746        echo '  Off-the-Record (OTR) Messaging disabled.'
     747fi
     748
     749if [ "$skype" = "plugin" ]; then
     750        echo '  Skype enabled (as a plugin).'
     751else
     752        echo '  Skype disabled.'
    740753fi
    741754
Note: See TracChangeset for help on using the changeset viewer.