aboutsummaryrefslogtreecommitdiff
path: root/symbian/SConstruct
blob: c820afd9ef403a39edc7992d717f8d9130126a8c (plain) (blame)
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
from scons_symbian import *

def MicroHttpd():
  target     = "microhttpd"
  targettype = "lib"
  libraries  = [ "euser", "libc", "libstdcpp" ]

  uid3 = 0

  sources = Glob("../src/daemon/*c", strings = True)
  sources += Glob("../../plibc/src/*search.c", strings = True)
  sources = [ s for s in sources if s.find("test") < 0 ]
  sources = [ s for s in sources if s.find("https") < 0 ]

  includes    = ['.',
                 '../src/include',
                 '../../libc/src/include',
                 ]
  sysincludes = [ EPOC32_INCLUDE,
                  join(EPOC32_INCLUDE, 'stdapis'),
                  join(EPOC32_INCLUDE, 'stdapis', 'stlport'),
                  join(EPOC32_INCLUDE, 'libc'),
                ]
  defines     = [
    "_STLP_NO_WCHAR_T",
  ]

  return SymbianProgram( target, targettype,
      sources = sources,
      includes    = includes,
      sysincludes = sysincludes,
      libraries   = libraries,
      defines     = defines,
      epocstacksize = 8192,
      epocheapsize  = (0x1000,0x100000),
      uid3 = uid3,
  )

microhttpd = MicroHttpd()