- def _build(self):
- # If the user defined local sources for ns-3, we uncompress the sources
- # on the remote sources directory. Else we clone ns-3 from the official repo.
+ def dce_version(self):
+ dce_version = self.get("dceVersion")
+ return dce_version or "dce-dev"
+
+ @property
+ def ns3_build_location(self):
+ location = "${BIN}/ns-3/%(ns3_version)s%(dce_version)s/%(build_mode)s/build" \
+ % {
+ "ns3_version": self.get("ns3Version"),
+ "dce_version": "-%s" % self.get("dceVersion") \
+ if self.enable_dce else "",
+ "build_mode": self.get("buildMode"),
+ }
+
+ return location
+
+
+ @property
+ def ns3_src_location(self):
+ location = "${SRC}/ns-3/%(ns3_version)s" \
+ % {
+ "ns3_version": self.get("ns3Version"),
+ }
+
+ return location
+
+ @property
+ def dce_src_location(self):
+ location = "${SRC}/ns-3-dce/%(dce_version)s" \
+ % {
+ "dce_version": self.get("dceVersion"),
+ }
+
+ return location
+
+ @property
+ def _clone_ns3_command(self):