github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/src/standalonelibrarybuild.sh (about)

     1  #
     2  
     3  #
     4  # This shell script builds the C++ support libraries,
     5  # copies the library files to $LIBDEST and
     6  # copies the include files to $INCLUDEDEST
     7  #
     8  
     9  #ifndef SRC_DIR
    10  export SRC_DIR=$HOME/src/github.com/jlmucb/cloudproxy
    11  #endif
    12  #ifndef GOOGLE_INCLUDE
    13  GOOGLE_INCLUDE=/usr/local/include/google
    14  #endif
    15  #ifndef LOCAL_LIB
    16  export LOCAL_LIB=/usr/local/lib
    17  #endif
    18  
    19  export LIBDEST=/Domains
    20  export INCLUDEDEST=$LIBDEST/include
    21  
    22  export BINPATH=$HOME/bin
    23  export S=$SRC_DIR/src
    24  export O=$LIBDEST/tao_clib
    25  
    26  if [[ -e $INCLUDEDEST ]]
    27  then
    28    echo "$INCLUDEDEST exists"
    29  else
    30    mkdir $INCLUDEDEST
    31  fi
    32  
    33  if [[ -e $O ]]
    34  then
    35    echo "$O exists"
    36  else
    37    mkdir $O
    38  fi
    39  
    40  if [[ -e $INCLUDEDEST/chromium ]]
    41  then
    42    echo "$INCLUDEDEST/chromium exists"
    43  else
    44    mkdir $INCLUDEDEST/chromium
    45  fi
    46  
    47  if [[ -e $INCLUDEDEST/chromium/base ]]
    48  then
    49    echo "$INCLUDEDEST/chromium/base exists"
    50  else
    51    mkdir $INCLUDEDEST/chromium/base
    52  fi
    53  
    54  if [[ -e $INCLUDEDEST/modp ]]
    55  then
    56    echo "$INCLUDEDEST/modp exists"
    57  else
    58    mkdir $INCLUDEDEST/modp
    59  fi
    60  
    61  $BINPATH/genauth -ast_file $SRC_DIR/go/tao/auth/ast.go \
    62  -binary_file $SRC_DIR/go/tao/auth/binary.go \
    63  -header_file $S/auth.h -impl_file $S/auth.cc
    64  
    65  # copy include files
    66  cp $S/tao/*.h $INCLUDEDEST
    67  cp $S/auth.h $INCLUDEDEST
    68  cp $S/third_party/chromium/include/chromium/base/*.h $INCLUDEDEST/chromium/base
    69  cp $S/third_party/modp/include/modp/*.h $INCLUDEDEST/modp
    70  
    71  # make each library
    72  make -f standalone/amake.mak
    73  make -f standalone/mmake.mak
    74  make -f standalone/cmake.mak
    75  make -f standalone/tmake.mak
    76