summaryrefslogtreecommitdiff
path: root/config/xerces.mpb
blob: bfbd0d19f7ea9dc921c56b4dc3432fff09083084 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// -*- MPC -*-
feature(!xerces2, !xerces3) {
  requires += xerces
}

feature(xerces2) {
  includes += $(XERCESCROOT)/include
  libpaths += $(XERCESCROOT)/lib

  specific(prop:microsoft) {
    xerceslib = xerces-c_2

    // Linking the optimized version of xerces-c_2 into a debug application
    // has been known to cause run-time issues (as of 4/25/2005), so we
    // will link in the debug version for the "Debug" configuration.
    Debug::xerceslib = xerces-c_2D
  }
  specific(prop:borland) {
    xerceslib = XercesLib
  }
  specific(!prop:windows) {
    macros   += XML_USE_PTHREADS
    xerceslib = xerces-c
  }

  // We have to use lit_libs here as the library decorator
  // does not necessarily match what MPC uses (particularly for
  // static builds).
  lit_libs += $(XERCESLIB)
}
feature(xerces3) {
  expand(XERCESC_INCDIR) {
    $XERCESC_INCDIR
    $(XERCESCROOT)/include
  }
  expand(XERCESC_LIBDIR) {
    $XERCESC_LIBDIR
    $(XERCESCROOT)/lib
  }

  specific(prop:microsoft) {
    xerceslib = xerces-c_3

    // Linking the optimized version of xerces-c_2 into a debug application
    // has been known to cause run-time issues (as of 4/25/2005), so we
    // will link in the debug version for the "Debug" configuration.
    Debug::xerceslib = xerces-c_3D
  }
  specific(prop:borland) {
    xerceslib = XercesLib
  }
  specific(!prop:windows) {
    macros   += XML_USE_PTHREADS
    xerceslib = xerces-c
  }

  specific(cmake) {
    includes += ${XercesC_INCLUDE_DIRS}
    xerceslib = ${XercesC_LIBRARIES}
  } else {
    includes += $(XERCESC_INCDIR)
    libpaths += $(XERCESC_LIBDIR)
  }

  // We have to use lit_libs here as the library decorator
  // does not necessarily match what MPC uses (particularly for
  // static builds).
  lit_libs += $(XERCESLIB)
}