summaryrefslogtreecommitdiff
path: root/ACE/protocols/examples/INet/inet.mpc
blob: 85474241c32c23d4ad28a1a500f3fa299de3b063 (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
34
35
36
37
38
39
40
//  -*- MPC -*-
// This project will be generated with and without ssl=1 feature
// but will only build when the ssl macro != 1 (i.e. ssl off)
project(HTTP_Simple_exec) : aceexe, inet {
  exename = http_simple_wget
  Source_Files {
    HTTP_Simple_exec.cpp
  }
  verbatim(gnuace, circuit) {
    "ifeq ($(ssl),1)"
    "override BIN:="
    "ifdef ARCH"
    "override ARCH_BIN:="
    "endif #ARCH"
    "all: avoid_warning"
    "endif"
  }

  verbatim(gnuace, local) {
    "ifeq ($(ssl),1)"
    "avoids_enabled_macros += ssl"
    "endif"
  }
}

// This project will only be generated with the ssl=1 feature
// and will only build when the ssl macro = 1 (i.e. ssl on)
project(HTTPS_Simple_exec) : aceexe, inet, inetssl {
  exename = https_simple_wget
  Source_Files {
    HTTP_Simple_exec.cpp
  }
}

project(FTP_Simple_exec) : aceexe, inet {
  exename = ftp_simple_wget
  Source_Files {
    FTP_Simple_exec.cpp
  }
}