Author: sayer
Date: 2008-10-14 22:21:14 +0200 (Tue, 14 Oct 2008)
New Revision: 1116

Added:
   trunk/CMakeLists.txt
   trunk/core/CMakeLists.txt
   trunk/core/config.h
   trunk/core/config.h.cmake
   trunk/core/plug-in/CMakeLists.txt
   trunk/core/plug-in/wav/CMakeLists.txt
Modified:
   trunk/core/sems.h
Log:
start of cmake buildsystem

Added: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt        2008-10-14 19:46:46 UTC (rev 1115)
+++ trunk/CMakeLists.txt        2008-10-14 20:21:14 UTC (rev 1116)
@@ -0,0 +1,12 @@
+project (SEMS)
+
+set(SEMS_VERSION 1.1.0-pre)
+# todo: get build arch
+set(ARCH 32)
+set(OS 1)
+
+set(CMAKE_VERBOSE_MAKEFILE ON)
+
+
+add_subdirectory (core)
+


Property changes on: trunk/CMakeLists.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/core/CMakeLists.txt
===================================================================
--- trunk/core/CMakeLists.txt   2008-10-14 19:46:46 UTC (rev 1115)
+++ trunk/core/CMakeLists.txt   2008-10-14 20:21:14 UTC (rev 1116)
@@ -0,0 +1,60 @@
+
+set (sems_SRCS
+ AmAdvancedAudio.cpp
+ AmApi.cpp
+ AmArg.cpp
+ AmAudio.cpp
+ AmAudioFile.cpp
+ AmAudioMixIn.cpp
+ AmB2ABSession.cpp
+ AmB2BSession.cpp
+ AmBufferedAudio.cpp
+ AmCachedAudioFile.cpp
+ AmCallWatcher.cpp
+ AmConferenceChannel.cpp
+ AmConferenceStatus.cpp
+ AmConfig.cpp
+ AmConfigReader.cpp
+ AmDtmfDetector.cpp
+ AmEvent.cpp
+ AmEventDispatcher.cpp
+ AmEventQueue.cpp
+ AmIcmpWatcher.cpp
+ AmJitterBuffer.cpp
+ AmMediaProcessor.cpp
+ AmMultiPartyMixer.cpp
+ AmPlaylist.cpp
+ AmPlayoutBuffer.cpp
+ AmPlugIn.cpp
+ AmPrecodedFile.cpp
+ AmPromptCollection.cpp
+ AmRingTone.cpp
+ AmRtpAudio.cpp
+ AmRtpPacket.cpp
+ AmRtpReceiver.cpp
+ AmRtpStream.cpp
+ AmSdp.cpp
+ AmServer.cpp
+ AmSession.cpp
+ AmSessionContainer.cpp
+ AmSipDialog.cpp
+ AmSipDispatcher.cpp
+ AmSipMsg.cpp
+ AmThread.cpp
+ AmUAC.cpp
+ AmUtils.cpp
+ AmZRTP.cpp
+ LowcFE.cpp
+ log.cpp
+ sems.cpp
+)
+
+include_directories (${SEMS_SOURCE_DIR}/core/ampi)
+include_directories (${SEMS_SOURCE_DIR}/core/amci)
+
+configure_file( config.h.cmake ${SEMS_SOURCE_DIR}/core/config.h )
+
+add_executable (sems ${sems_SRCS})
+target_link_libraries(sems ${CMAKE_DL_LIBS} pthread stdc++ m)
+
+add_subdirectory (plug-in)


Property changes on: trunk/core/CMakeLists.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/core/config.h
===================================================================
--- trunk/core/config.h 2008-10-14 19:46:46 UTC (rev 1115)
+++ trunk/core/config.h 2008-10-14 20:21:14 UTC (rev 1116)
@@ -0,0 +1,8 @@
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#define SEMS_VERSION "1.1.0-pre"
+#define OS "Linux"
+#define ARCH "32"
+
+#endif // CONFIG_H


Property changes on: trunk/core/config.h
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/core/config.h.cmake
===================================================================
--- trunk/core/config.h.cmake   2008-10-14 19:46:46 UTC (rev 1115)
+++ trunk/core/config.h.cmake   2008-10-14 20:21:14 UTC (rev 1116)
@@ -0,0 +1,8 @@
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#cmakedefine SEMS_VERSION "@SEMS_VERSION@"
+#cmakedefine OS "@CMAKE_SYSTEM_NAME@"
+#cmakedefine ARCH "@ARCH@"
+
+#endif // CONFIG_H
\ No newline at end of file

Added: trunk/core/plug-in/CMakeLists.txt
===================================================================
--- trunk/core/plug-in/CMakeLists.txt   2008-10-14 19:46:46 UTC (rev 1115)
+++ trunk/core/plug-in/CMakeLists.txt   2008-10-14 20:21:14 UTC (rev 1116)
@@ -0,0 +1 @@
+add_subdirectory (wav)


Property changes on: trunk/core/plug-in/CMakeLists.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/core/plug-in/wav/CMakeLists.txt
===================================================================
--- trunk/core/plug-in/wav/CMakeLists.txt       2008-10-14 19:46:46 UTC (rev 
1115)
+++ trunk/core/plug-in/wav/CMakeLists.txt       2008-10-14 20:21:14 UTC (rev 
1116)
@@ -0,0 +1,11 @@
+set (wav_SRCS
+ g711.c
+ wav.c
+ wav_hdr.c
+)
+
+add_library(wav SHARED ${wav_SRCS})
+set_target_properties(wav PROPERTIES OUTPUT_NAME "wav")
+set_target_properties(wav PROPERTIES PREFIX "")
+target_link_libraries(wav ${CMAKE_DL_LIBS} pthread stdc++ m)
+


Property changes on: trunk/core/plug-in/wav/CMakeLists.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/core/sems.h
===================================================================
--- trunk/core/sems.h   2008-10-14 19:46:46 UTC (rev 1115)
+++ trunk/core/sems.h   2008-10-14 20:21:14 UTC (rev 1116)
@@ -28,6 +28,10 @@
 #ifndef _ans_machine_h_
 #define _ans_machine_h_
 
+#ifndef SEMS_VERSION
+#include "config.h"
+#endif
+
 #define CONFIG_FILE         "/usr/local/etc/sems/sems.conf"
 #define MOD_CFG_PATH        "/usr/local/etc/sems/etc"
 #define SER_FIFO            "/tmp/ser_fifo"

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to