summaryrefslogtreecommitdiffstats
path: root/juniper/build/buildspec.xml
blob: 1252957dd9700f0ee04ac9ffbed5c1ffc57fee0d (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
<BuildSpecification>
  <Dependencies os="all" arch="all">
    <dep package="common/fastos" version="1.5.99.2">
      <!-- Use stl-port when compiling on platforms with gcc and on windows -->
      <if os="linux,freebsd">
        <addfeature name="stl-port" />
      </if>
    </dep>
    <dep package="common/fastlib" version="1.6.4" />
    <dep package="3rdparty/libiconv" version="1.8" featureset="iconvconst" />
  </Dependencies>

  <PreBuild os="all" arch="all" nocopy="yes">
    <if os="XXaix">
      <!-- Iconv library has been renamed to fsiconv on aix to avoid -->
      <!-- mix-ups with other installations. We must alter some -->
      <!-- files to make the linking work. -->
      <replace token="LIBDIR_ICONV" value="LIBDIR_FSICONV">
        <file path="Makefile" />
        <file path="configure.cfg" />
      </replace>
      <replace token=" iconv" value=" fsiconv">
        <file path="src/test/fastos.project" />
      </replace>
    </if>
    <configure path="">
        <parameter value="--fastos-dir ${fbuild_install_dir}/fastos" />
        <parameter value="--fastlib-dir ${fbuild_install_dir}/fastlib" />
        <parameter value="--iconv-dir ${fbuild_install_dir}/iconv" />
        <parameter value="--install-dir ${fbuild_install_dir}/juniper" />
        <parameter value="--version ${fbuild_package_version}" />
   </configure>
   <make path="" target="makefiles" />
   <make path="" target="depend" />
  </PreBuild>

  <Build os="unix" arch="all">
    <make path="" target="all" />
  </Build>

  <Build os="win32" arch="all">
      <make path="" target="all" />
  </Build>

  <PostBuild os="all" arch="all">
  </PostBuild>

  <Test os="all" arch="all">
     <make path="src/test" parameters="test" />
  </Test>

  <Install os="all" arch="all">
    <make path="" target="install" />
  </Install>

  <Dist os="all" arch="all">
  </Dist>

</BuildSpecification>