summaryrefslogtreecommitdiff
path: root/config/ndds_ts_defaults.mpb
blob: 4213d55117fee26d209cafb7b3288e0b4e268bf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// -*- MPC -*-
project {
  Define_Custom(NDDSTypeSupport) {
    command               = <%quote%>$(NDDSSCRIPTDIR)/rtiddsgen<%quote%>
    commandflags          = -language C++ -replace -namespace $(PLATFORM_NDDS_FLAGS)

    dependent             = $(NDDSSCRIPTDIR)/rtiddsgen<%bat%>

    source_pre_extension  = , Support, Plugin
    source_outputext      = .cxx
    header_pre_extension  = , Support, Plugin
    header_outputext      = .h
    keyword ndds_ts_flags = commandflags
  }

  requires += ndds

  verbatim(gnuace, macros, 1) {
    override no_hidden_visibility = 1
    override no_strict_aliasing = 1
    ifdef NDDSHOME
      ifndef NDDSSCRIPTDIR
        # At the moment NDDSHOME has been set but not NDDSSCRIPTDIR we see if
        # the scripts directory exists, if so we use that, if not we use bin
        ifneq ($(wildcard $(NDDSHOME)/scripts),)
          NDDSSCRIPTDIR = $(NDDSHOME)/scripts
        else
          NDDSSCRIPTDIR = $(NDDSHOME)/bin
        endif
      endif
    endif
  }
}