From df277258f1d5fbf8ce80c2748c4fb0783359790f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 20 Feb 2018 15:49:30 +0100 Subject: IPA_Emulation: Make dependencies to RSL/MGCP/SCCP/GSUP conditional Let's use the preprocessor to avoid IPA_Emulation pulling *all* dependencies into each and any of our projects. The code readability suffers a bit from the many #ifdefs, but compilation speed increases if we don't have to pull in all those (recursive) dependencies. After all, a BTS test case will never need SCCP, GSUP or MGCP. Change-Id: Ic0231adbd2171214de133d26b3fbf36130ee8aa0 --- selftest/Selftest.ttcn | 5 ----- 1 file changed, 5 deletions(-) (limited to 'selftest/Selftest.ttcn') diff --git a/selftest/Selftest.ttcn b/selftest/Selftest.ttcn index 1c340b7d..1ff17fe7 100644 --- a/selftest/Selftest.ttcn +++ b/selftest/Selftest.ttcn @@ -5,7 +5,6 @@ import from Osmocom_Types all; import from GSM_Types all; import from IPL4asp_Types all; import from IPL4asp_PortType all; -import from MTP3asp_PortType all; import from BSSAP_Types all; //import from BSSAP_Adapter all; @@ -25,8 +24,6 @@ import from GSM_RR_Types all; type component IPA_selftest_CT { /* upper end of IPA_Emulation */ - port MTP3asp_PT IPA_MTP3; - port IPA_MGCP_PT IPA_MGCP; port IPA_RSL_PT IPA_RSL; port IPA_CTRL_PT IPA_CTRL; port IPA_SP_PT IPA_SP; @@ -42,10 +39,8 @@ type component IPA_selftest_CT { function f_ipa_srv_init() runs on IPA_selftest_CT { vc_IPA := IPA_Emulation_CT.create("IPA_Emulation"); map(vc_IPA:IPA_PORT, system: IPA_CODEC_PT); - connect(vc_IPA:IPA_MGCP_PORT, self:IPA_MGCP); connect(vc_IPA:IPA_RSL_PORT, self:IPA_RSL); connect(vc_IPA:IPA_CTRL_PORT, self:IPA_CTRL); - connect(vc_IPA:MTP3_SP_PORT, self:IPA_MTP3); vc_IPA.start(IPA_Emulation.main_server("127.0.0.1", 55555)); } -- cgit v1.2.3