VirtualBox

Changeset 87909 in vbox for trunk/tools


Ignore:
Timestamp:
Mar 2, 2021 11:58:33 AM (4 years ago)
Author:
vboxsync
Message:

Forward ported 142995 from 6.1: gen-slickedit-workspace.sh: Just pick the latest library version so we don't need to update this script everytime we upgrade a library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bin/gen-slickedit-workspace.sh

    r87331 r87909  
    102102    export MY_GET_NAME=$1
    103103}
     104
     105##
     106# Gets the newest version of a library (like openssl).
     107#
     108# @param    $1      The library base path relative to root.
     109my_get_newest_ver()
     110{
     111    cd "${MY_ABS_DIR}"
     112    latest=
     113    for ver in "$1"*;
     114    do
     115        if test -z "${latest}" || "${MY_EXPR}" "${ver}" ">" "${latest}"; then
     116            latest="${ver}"
     117        fi
     118    done
     119    if test -z "${latest}"; then
     120        echo "error: could not find any version of: $1" >&2;
     121        exit 1;
     122    fi
     123    echo "${latest}"
     124    return 0;
     125}
     126
    104127
    105128##
     
    11821205
    11831206# A few things from src/lib
    1184 my_generate_project "zlib"          "src/libs/zlib-1.2.11"                  --begin-incs "include"                                          --end-includes "src/libs/zlib-1.2.11/*.c" "src/libs/zlib-1.2.11/*.h"
    1185 my_generate_project "liblzf"        "src/libs/liblzf-3.4"                   --begin-incs "include"                                          --end-includes "src/libs/liblzf-3.4"
    1186 my_generate_project "libpng"        "src/libs/libpng-1.6.36"                --begin-incs "include"                                          --end-includes "src/libs/libpng-1.6.36/*.c" "src/libs/libpng-1.6.36/*.h"
    1187 my_generate_project "openssl"       "src/libs/openssl-1.1.1i"               --begin-incs "include" "src/libs/openssl-1.1.1i/crypto"         --end-includes "src/libs/openssl-1.1.1i"
    1188 my_generate_project "curl"          "src/libs/curl-7.64.0"                  --begin-incs "include" "src/libs/curl-7.64.0/include"           --end-includes "src/libs/curl-7.64.0"
     1207lib=$(my_get_newest_ver src/libs/zlib)
     1208my_generate_project "zlib"          "${lib}"                                --begin-incs "include"                                          --end-includes "${lib}/*.c" "${lib}/*.h"
     1209lib=$(my_get_newest_ver src/libs/liblzf)
     1210my_generate_project "liblzf"        "${lib}"                                --begin-incs "include"                                          --end-includes "${lib}"
     1211lib=$(my_get_newest_ver src/libs/libpng)
     1212my_generate_project "libpng"        "${lib}"                                --begin-incs "include"                                          --end-includes "${lib}/*.c" "${lib}/*.h"
     1213lib=$(my_get_newest_ver src/libs/openssl)
     1214my_generate_project "openssl"       "${lib}"                                --begin-incs "include" "${lib}/crypto"                          --end-includes "${lib}"
     1215lib=$(my_get_newest_ver src/libs/curl)
     1216my_generate_project "curl"          "${lib}"                                --begin-incs "include" "${lib}/include"                         --end-includes "${lib}"
    11891217
    11901218# webtools
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette