[asterisk-scf-commits] asterisk-scf/integration/test_channel.git branch "install" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Fri Jan 14 13:19:58 CST 2011
branch "install" has been updated
via cfaa1391428e32009193f02ed0ce92ce57135a9a (commit)
from c58affd9d4f15ac511c40a461ef1708382778aaa (commit)
Summary of changes:
.../{ => AsteriskSCF/TestChannel}/CommandsIf.ice | 0
local_slice/CMakeLists.txt | 13 +++++++++++--
src/CMakeLists.txt | 7 +++++++
src/ConsoleDriver.h | 2 +-
src/TestEndpoint.cpp | 2 +-
5 files changed, 20 insertions(+), 4 deletions(-)
rename local_slice/{ => AsteriskSCF/TestChannel}/CommandsIf.ice (100%)
- Log -----------------------------------------------------------------
commit cfaa1391428e32009193f02ed0ce92ce57135a9a
Author: David M. Lee <dlee at digium.com>
Date: Thu Jan 13 20:24:07 2011 -0600
Install test-channel artifacts.
* Install the slice file in a AsteriskSCF/TestChannel directory
* Install the api in libdir
diff --git a/local_slice/CommandsIf.ice b/local_slice/AsteriskSCF/TestChannel/CommandsIf.ice
similarity index 100%
rename from local_slice/CommandsIf.ice
rename to local_slice/AsteriskSCF/TestChannel/CommandsIf.ice
diff --git a/local_slice/CMakeLists.txt b/local_slice/CMakeLists.txt
index 95c6e7d..85cbc7e 100644
--- a/local_slice/CMakeLists.txt
+++ b/local_slice/CMakeLists.txt
@@ -8,10 +8,19 @@
asterisk_scf_component_init(test-channel-api CXX)
-asterisk_scf_component_add_slice(test-channel-api CommandsIf.ice)
+asterisk_scf_component_add_slice(test-channel-api
+ AsteriskSCF/TestChannel/CommandsIf.ice)
asterisk_scf_add_ice_libraries(Ice IceUtil)
asterisk_scf_component_build_library(test-channel-api)
-set(TEST_CHANNEL_API_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/generated PARENT_SCOPE)
+set(TEST_CHANNEL_API_INCLUDE_DIR
+ ${CMAKE_CURRENT_BINARY_DIR}/generated PARENT_SCOPE)
+install(TARGETS test-channel-api
+ LIBRARY DESTINATION ${ASTERISK_SCF_INSTALL_LIB_DIR}
+ RUNTIME DESTINATION ${ASTERISK_SCF_INSTALL_BIN_DIR})
+install(DIRECTORY AsteriskSCF DESTINATION ${ASTERISK_SCF_INSTALL_SLICE_DIR})
+install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/generated/
+ DESTINATION ${ASTERISK_SCF_INSTALL_INCLUDE_DIR}
+ FILES_MATCHING PATTERN "*.h")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 04cd2e7..927ef1d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -14,6 +14,10 @@ asterisk_scf_component_build_icebox(test_channel)
target_link_libraries(test_channel asterisk-scf-api)
target_link_libraries(test_channel test-channel-api)
+install(TARGETS test_channel
+ LIBRARY DESTINATION ${ASTERISK_SCF_INSTALL_ICEBOX_DIR}
+ RUNTIME DESTINATION ${ASTERISK_SCF_INSTALL_ICEBOX_DIR})
+
asterisk_scf_component_init(console_driver CXX)
asterisk_scf_component_add_file(console_driver ConsoleDriver.cpp)
asterisk_scf_component_add_file(console_driver ConsoleDriver.h)
@@ -22,3 +26,6 @@ asterisk_scf_component_add_file(console_driver main.cpp)
include_directories(${TEST_CHANNEL_API_INCLUDE_DIR})
asterisk_scf_component_build_standalone(console_driver)
target_link_libraries(console_driver test-channel-api)
+
+install(TARGETS console_driver
+ RUNTIME DESTINATION ${ASTERISK_SCF_INSTALL_BIN_DIR})
diff --git a/src/ConsoleDriver.h b/src/ConsoleDriver.h
index ed267e6..680b311 100644
--- a/src/ConsoleDriver.h
+++ b/src/ConsoleDriver.h
@@ -18,7 +18,7 @@
#include <IceUtil/Monitor.h>
#include <IceUtil/Thread.h>
#include <string>
-#include <CommandsIf.h>
+#include <AsteriskSCF/TestChannel/CommandsIf.h>
namespace AsteriskSCF
{
diff --git a/src/TestEndpoint.cpp b/src/TestEndpoint.cpp
index 2ce0024..830bdbf 100644
--- a/src/TestEndpoint.cpp
+++ b/src/TestEndpoint.cpp
@@ -28,7 +28,7 @@
#include "Logger.h"
#include "MediaSession.h"
-#include <CommandsIf.h>
+#include <AsteriskSCF/TestChannel/CommandsIf.h>
using namespace AsteriskSCF::TestUtil;
-----------------------------------------------------------------------
--
asterisk-scf/integration/test_channel.git
More information about the asterisk-scf-commits
mailing list