Exemple #1
0
    static string make_cb_path_mac(
        WhichLib lib
        )
    {
        var dir_name = lib.AsString_basename_in_cb();
        var lib_name = lib.AsString_libname_in_cb(LibSuffix.DYLIB);

        return(Path.Combine("$cb_bin_path$", dir_name, "mac", lib_name));
    }
Exemple #2
0
    static string make_cb_path_linux(
        WhichLib lib,
        string cpu
        )
    {
        var dir_name = lib.AsString_basename_in_cb();
        var lib_name = lib.AsString_libname_in_cb(LibSuffix.SO);

        return(Path.Combine("$cb_bin_path$", dir_name, "linux", cpu, lib_name));
    }
Exemple #3
0
    static string make_cb_path_win(
        WhichLib lib,
        string toolset,
        string flavor,
        string arch
        )
    {
        var dir_name = lib.AsString_basename_in_cb();
        var lib_name = lib.AsString_libname_in_cb(LibSuffix.DLL);

        return(Path.Combine("$cb_bin_path$", dir_name, "win", toolset, flavor, arch, lib_name));
    }
Exemple #4
0
    static string AsString_libname_in_cb(this WhichLib e, LibSuffix suffix)
    {
        var basename = e.AsString_basename_in_cb();

        return(basename_to_libname(basename, suffix));
    }