Harald Welte | a49e36e | 2018-01-21 19:29:33 +0100 | [diff] [blame] | 1 | #!/bin/bash |
Harald Welte | f6dd64d | 2017-11-19 12:09:51 +0100 | [diff] [blame] | 2 | |
Harald Welte | 6807982 | 2017-12-12 16:30:53 +0100 | [diff] [blame] | 3 | BASEDIR=../deps |
Harald Welte | f6dd64d | 2017-11-19 12:09:51 +0100 | [diff] [blame] | 4 | |
| 5 | gen_links() { |
| 6 | DIR=$1 |
| 7 | FILES=$* |
| 8 | for f in $FILES; do |
| 9 | echo "Linking $f" |
| 10 | ln -sf $DIR/$f $f |
| 11 | done |
| 12 | } |
| 13 | |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 14 | DIR=$BASEDIR/titan.TestPorts.UNIX_DOMAIN_SOCKETasp/src |
| 15 | FILES="UD_PT.cc UD_PT.hh UD_PortType.ttcn UD_Types.ttcn" |
| 16 | gen_links $DIR $FILES |
Harald Welte | f6dd64d | 2017-11-19 12:09:51 +0100 | [diff] [blame] | 17 | |
| 18 | DIR=$BASEDIR/titan.Libraries.TCCUsefulFunctions/src |
Max | 6367d7b | 2018-02-05 16:58:27 +0100 | [diff] [blame] | 19 | FILES="TCCInterface_Functions.ttcn TCCConversion_Functions.ttcn TCCConversion.cc TCCInterface.cc TCCInterface_ip.h" |
Harald Welte | f6dd64d | 2017-11-19 12:09:51 +0100 | [diff] [blame] | 20 | gen_links $DIR $FILES |
| 21 | |
Harald Welte | a49e36e | 2018-01-21 19:29:33 +0100 | [diff] [blame] | 22 | DIR=$BASEDIR/titan.TestPorts.Common_Components.Socket-API/src |
| 23 | FILES="Socket_API_Definitions.ttcn" |
| 24 | gen_links $DIR $FILES |
| 25 | |
| 26 | # Required by MGCP and IPA |
| 27 | DIR=$BASEDIR/titan.TestPorts.IPL4asp/src |
| 28 | FILES="IPL4asp_Functions.ttcn IPL4asp_PT.cc IPL4asp_PT.hh IPL4asp_PortType.ttcn IPL4asp_Types.ttcn IPL4asp_discovery.cc IPL4asp_protocol_L234.hh" |
| 29 | gen_links $DIR $FILES |
| 30 | |
Harald Welte | f6dd64d | 2017-11-19 12:09:51 +0100 | [diff] [blame] | 31 | # required by M3UA_Emulation |
| 32 | DIR=$BASEDIR/titan.ProtocolModules.M3UA/src |
| 33 | FILES="M3UA_Types.ttcn" |
| 34 | gen_links $DIR $FILES |
| 35 | |
| 36 | # required by M3UA_Emulation |
| 37 | DIR=$BASEDIR/titan.TestPorts.SCTPasp/src |
| 38 | FILES="SCTPasp_PT.cc SCTPasp_PT.hh SCTPasp_PortType.ttcn SCTPasp_Types.ttcn" |
| 39 | gen_links $DIR $FILES |
| 40 | |
| 41 | # required by M3UA Emulation |
| 42 | DIR=../MTP3asp_CNL113337/src |
| 43 | FILES="MTP3asp_PortType.ttcn MTP3asp_Types.ttcn" |
| 44 | gen_links $DIR $FILES |
| 45 | |
| 46 | # required by SCCP Emulation |
| 47 | DIR=../M3UA_CNL113537/src |
| 48 | FILES="M3UA_Emulation.ttcn" |
| 49 | gen_links $DIR $FILES |
| 50 | |
| 51 | DIR=../SCCP_CNL113341/src |
| 52 | FILES="SCCP_Emulation.ttcn SCCP_EncDec.cc SCCP_Mapping.ttcnpp SCCP_Types.ttcn SCCPasp_Types.ttcn" |
| 53 | gen_links $DIR $FILES |
| 54 | ln -s SCCP_Mapping.ttcnpp SCCP_Mapping.ttcn |
| 55 | |
| 56 | DIR=$BASEDIR/titan.ProtocolModules.BSSMAP_v11.2.0/src |
| 57 | FILES="BSSAP_Types.ttcn" |
| 58 | gen_links $DIR $FILES |
| 59 | |
| 60 | DIR=$BASEDIR/titan.ProtocolModules.MobileL3_v13.4.0/src |
| 61 | FILES="MobileL3_CC_Types.ttcn MobileL3_CommonIE_Types.ttcn MobileL3_GMM_SM_Types.ttcn MobileL3_MM_Types.ttcn MobileL3_RRM_Types.ttcn MobileL3_SMS_Types.ttcn MobileL3_SS_Types.ttcn MobileL3_Types.ttcn" |
| 62 | gen_links $DIR $FILES |
| 63 | |
Harald Welte | a49e36e | 2018-01-21 19:29:33 +0100 | [diff] [blame] | 64 | DIR=$BASEDIR/titan.ProtocolModules.SDP/src |
| 65 | FILES="SDP_EncDec.cc SDP_Types.ttcn SDP_parse_.tab.c SDP_parse_.tab.h SDP_parse_parser.h SDP_parser.l |
| 66 | SDP_parser.y lex.SDP_parse_.c" |
| 67 | gen_links $DIR $FILES |
| 68 | |
| 69 | DIR=$BASEDIR/titan.ProtocolModules.RTP/src |
| 70 | FILES="RTP_EncDec.cc RTP_Types.ttcn" |
| 71 | gen_links $DIR $FILES |
| 72 | |
Harald Welte | 3ca1c90 | 2018-01-24 18:51:27 +0100 | [diff] [blame] | 73 | DIR=$BASEDIR/titan.TestPorts.TELNETasp/src |
| 74 | FILES="TELNETasp_PT.cc TELNETasp_PT.hh TELNETasp_PortType.ttcn" |
| 75 | gen_links $DIR $FILES |
Harald Welte | f6dd64d | 2017-11-19 12:09:51 +0100 | [diff] [blame] | 76 | |
| 77 | DIR=../library |
Harald Welte | b71901a | 2018-01-26 19:16:05 +0100 | [diff] [blame] | 78 | FILES="General_Types.ttcn GSM_Types.ttcn Osmocom_Types.ttcn MNCC_Types.ttcn MNCC_EncDec.cc MNCC_CodecPort.ttcn mncc.h MNCC_Emulation.ttcn Osmocom_VTY_Functions.ttcn Native_Functions.ttcn Native_FunctionDefs.cc " |
Harald Welte | a49e36e | 2018-01-21 19:29:33 +0100 | [diff] [blame] | 79 | FILES+="IPA_Types.ttcn IPA_Emulation.ttcn IPA_CodecPort.ttcn IPA_CodecPort_CtrlFunct.ttcn IPA_CodecPort_CtrlFunctDef.cc RSL_Types.ttcn GSUP_Types.ttcn GSUP_Emulation.ttcn " |
| 80 | FILES+="Osmocom_CTRL_Types.ttcn Osmocom_CTRL_Functions.ttcn Osmocom_CTRL_Adapter.ttcn L3_Templates.ttcn L3_Templates.ttcn " |
Harald Welte | 4aa970c | 2018-01-26 10:38:09 +0100 | [diff] [blame] | 81 | FILES+="BSSMAP_Emulation.ttcn BSSAP_CodecPort.ttcn BSSMAP_Templates.ttcn BSSAP_Adapter.ttcn MGCP_Types.ttcn MGCP_Templates.ttcn MGCP_CodecPort_CtrlFunct.ttcn MGCP_Emulation.ttcn IPA_Emulation.ttcn " |
Harald Welte | a49e36e | 2018-01-21 19:29:33 +0100 | [diff] [blame] | 82 | FILES+="RTP_CodecPort.ttcn RTP_CodecPort_CtrlFunctDef.cc " |
| 83 | FILES+="MGCP_CodecPort.ttcn MGCP_CodecPort_CtrlFunctDef.cc " |
Harald Welte | f6dd64d | 2017-11-19 12:09:51 +0100 | [diff] [blame] | 84 | gen_links $DIR $FILES |