Makefile.am 4 KB
Newer Older
aymeric's avatar
aymeric committed
1

2
EXTRA_DIST=mediastreamer-config.h.in pkg.list autogen.sh mediastreamer.pc.in mediastreamer2.spec.in mediastreamer2.spec
aymeric's avatar
aymeric committed
3

Yann Diorcet's avatar
Yann Diorcet committed
4 5
ACLOCAL_AMFLAGS = -I m4 $(ACLOCAL_MACOS_FLAGS)

Ghislain MARY's avatar
Ghislain MARY committed
6
SUBDIRS=po src build m4 include tools tester help
Yann Diorcet's avatar
Yann Diorcet committed
7 8

ACLOCAL_FLAGS=-I$(top_srcdir)/m4
aymeric's avatar
aymeric committed
9 10 11 12

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = mediastreamer.pc

Guillaume Beraudo's avatar
Guillaume Beraudo committed
13
unit-test:
Ghislain MARY's avatar
Ghislain MARY committed
14 15
	cd tester && $(MAKE) test

aymeric's avatar
aymeric committed
16 17 18 19 20 21 22 23 24 25 26
## oRTP packaging methods:

# `make rpm'

.phony: rpm

rpm:
	$(MAKE) dist
# <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=206841>
	TAR_OPTIONS=--wildcards rpmbuild -ta --clean --rmsource --rmspec $(PACKAGE)-$(VERSION).tar.gz

Simon Morlat's avatar
Simon Morlat committed
27 28 29 30 31 32
rpm-novideo:
	$(MAKE) dist
# <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=206841>
	TAR_OPTIONS=--wildcards rpmbuild -ta --clean --rmsource --rmspec --without video $(PACKAGE)-$(VERSION).tar.gz 


aymeric's avatar
aymeric committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
# `make package'

if WITH_EPM

.PHONY: package

PKG_NAME = $(PACKAGE)-$(VERSION)-$(RELEASE)
BUILDROOT=`pwd`/epm-install

package: $(srcdir)/pkg.list $(srcdir)/configure
	[ -n "$(BUILDROOT)" ] && rm -rf $(BUILDROOT)/*
	[ -n "$(PKG_NAME).*" ] && rm -f $(PKG_NAME).*
	$(MAKE) install DESTDIR=$(BUILDROOT)
	$(MKEPMLIST) -u $(SYS_USER) -g $(SYS_GROUP) --prefix $(prefix) \
		$(BUILDROOT)/$(prefix) > files.list
	$(EPM) -v -f native -g -n -a $(ARCH) --keep-files --output-dir pkg \
		srcdir=$(srcdir) \
		top_srcdir=$(top_srcdir) \
		top_builddir=$(top_builddir) \
		PACKAGE=$(PACKAGE) \
		SUMMARY="$(SUMMARY)" \
		VERSION=$(ORTP_PKGCONFIG_VERSION) \
		RELEASE=$(RELEASE) \
		LICENSE="$(LICENSE)" \
		VENDOR="$(VENDOR)" \
		PACKAGER="$(PACKAGER)" \
		$(PACKAGE) $(srcdir)/pkg.list
	rm -rf $(BUILDROOT)
	mv -f pkg/$(PACKAGE)-$(ORTP_PKGCONFIG_VERSION)-$(RELEASE).$(EPM_PKG_EXT) $(PKG_NAME).$(ARCH).$(EPM_PKG_EXT)

clean-local:
	rm -rf pkg $(BUILDROOT)
	rm -f files.list

endif WITH_EPM
Simon Morlat's avatar
Simon Morlat committed
68

Guillaume Beraudo's avatar
Guillaume Beraudo committed
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
deb:
	$(MAKE) dist
	mv $(distdir).tar.gz ../mediastreamer2_$(VERSION).orig.tar.gz
	dpkg-buildpackage -us -uc -sa


EXTRA_DIST += README-ANDROID \
build/android/Android.mk \
build/android/basedescs.h \
build/android/libmediastreamer2_AndroidConfig.h \
build/android/voipdescs.h \
build/git-pre-commit-hook \
build/iphone/basedescs.h \
build/iphone/voipdescs.h \
build/winmob/echo/echo.vcproj \
Ghislain MARY's avatar
Ghislain MARY committed
84
build/wp8 \
Guillaume Beraudo's avatar
Guillaume Beraudo committed
85 86 87 88
java/.classpath \
java/.project \
java/AndroidManifest.xml \
java/proguard.cfg \
Ghislain MARY's avatar
Ghislain MARY committed
89
java/jni/Application.mk \
Guillaume Beraudo's avatar
Guillaume Beraudo committed
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
java/res/layout-land/main.xml \
java/res/layout/main.xml \
java/res/menu/videocall_activity_menu.xml \
java/res/values/strings.xml \
java/src/org/linphone/mediastream/Log.java \
java/src/org/linphone/mediastream/Version.java \
java/src/org/linphone/mediastream/video/AndroidVideoWindowImpl.java \
java/src/org/linphone/mediastream/video/capture/AndroidVideoApi5JniWrapper.java \
java/src/org/linphone/mediastream/video/capture/AndroidVideoApi8JniWrapper.java \
java/src/org/linphone/mediastream/video/capture/AndroidVideoApi9JniWrapper.java \
java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfiguration.java \
java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader5.java \
java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader9.java \
java/src/org/linphone/mediastream/video/capture/hwconf/Hacks.java \
java/src/org/linphone/mediastream/video/display/GL2JNIView.java \
java/src/org/linphone/mediastream/video/display/OpenGLESDisplay.java \
src/filter-template.c \
src/ortp-deps/README \
src/ortp-deps/ortp-config-win32.h \
src/ortp-deps/ortp-config.h \
src/ortp-deps/ortp/b64.h \
src/ortp-deps/ortp/logging.h \
src/ortp-deps/ortp/payloadtype.h \
src/ortp-deps/ortp/port.h \
src/ortp-deps/ortp/str_utils.h \
src/ortp-deps/update_ortp.sh \
src/ortp-deps/utils.h \
src/voip/scaler.h \
src/voip/scaler_arm.S \
tools/Android.mk \
tools/filters_graph.py \
tools/ios/en.lproj/InfoPlist.strings \
tools/ios/en.lproj/MainWindow.xib \
tools/ios/en.lproj/mediastreamViewController.xib \
tools/ios/mediastream-Info.plist \
tools/ios/mediastream-Prefix.pch \
tools/ios/mediastreamAppDelegate.h \
tools/ios/mediastreamAppDelegate.m \
tools/ios/mediastreamViewController.h \
tools/ios/mediastreamViewController.m \
tools/ring_jni.c