Makefile.am 4.77 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
3
EXTRA_DIST += CMakeLists.txt \
Ghislain MARY's avatar
Ghislain MARY committed
4
cmake/FindALSA.cmake \
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
cmake/FindArts.cmake \
cmake/FindBV16.cmake \
cmake/FindCamApi.cmake \
cmake/FindFFMpeg.cmake \
cmake/FindGLX.cmake \
cmake/FindGSM.cmake \
cmake/FindOpus.cmake \
cmake/FindPCAP.cmake \
cmake/FindPortAudio.cmake \
cmake/FindPulseAudio.cmake \
cmake/FindQnxAudioManager.cmake \
cmake/FindQSA.cmake \
cmake/FindScreen.cmake \
cmake/FindSpeex.cmake \
cmake/FindSRTP.cmake \
cmake/FindV4L.cmake \
cmake/FindVPX.cmake \
cmake/FindX11.cmake \
cmake/FindXv.cmake \
cmake/Mediastreamer2Config.cmake.in \
help/CMakeLists.txt \
include/CMakeLists.txt \
mediastreamer-config.h.cmake \
src/CMakeLists.txt \
src/generate_descs_header.cmake \
src/generate_yuv2rgb_header.cmake \
src/gitversion.cmake \
tester/CMakeLists.txt \
tools/CMakeLists.txt
aymeric's avatar
aymeric committed
34

Yann Diorcet's avatar
Yann Diorcet committed
35 36
ACLOCAL_AMFLAGS = -I m4 $(ACLOCAL_MACOS_FLAGS)

Ghislain MARY's avatar
Ghislain MARY committed
37
SUBDIRS=po src build m4 include tools tester help
Yann Diorcet's avatar
Yann Diorcet committed
38 39

ACLOCAL_FLAGS=-I$(top_srcdir)/m4
aymeric's avatar
aymeric committed
40 41 42 43

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

Guillaume Beraudo's avatar
Guillaume Beraudo committed
44
unit-test:
Ghislain MARY's avatar
Ghislain MARY committed
45 46
	cd tester && $(MAKE) test

aymeric's avatar
aymeric committed
47 48 49 50 51 52 53 54 55 56 57
## 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
58 59 60 61 62 63
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
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
# `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
99

Guillaume Beraudo's avatar
Guillaume Beraudo committed
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
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
115
build/wp8 \
Guillaume Beraudo's avatar
Guillaume Beraudo committed
116 117 118 119
java/.classpath \
java/.project \
java/AndroidManifest.xml \
java/proguard.cfg \
Ghislain MARY's avatar
Ghislain MARY committed
120
java/jni/Application.mk \
Guillaume Beraudo's avatar
Guillaume Beraudo committed
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
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