/*++

Copyright (c) 2013 Minoca Corp.

    This file is licensed under the terms of the GNU General Public License
    version 3. Alternative licensing terms are available. Contact
    info@minocacorp.com for details. See the LICENSE file at the root of this
    project for complete licensing information.

Module Name:

    Applications

Abstract:

    This directory contains user mode applications and libraries.

Author:

    Evan Green 25-Feb-2013

Environment:

    User

--*/

from menv import group;

function build() {
    var allApps;
    var apps;
    var entries;
    var libc;
    var testApps;

    testApps = [
        "apps/libc/dynamic/testc:build_testc",
        "apps/testapps:testapps",
    ];

    libc = [
        "apps/libc/crypt:libcrypt",
        "apps/libc/dynamic/pthread/static:libpthread_nonshared",
        "apps/libc/static:libc_nonshared",
        "kernel:kernel-version",
    ];

    apps = [
        "apps/banner:banner",
        "apps/ck:build_chalk",
        "apps/ck:chalk",
        "apps/debug:debug",
        "apps/efiboot:efiboot",
        "apps/lib/lzma/util:lzma",
        "apps/lib/lzma/util:build_lzma",
        "apps/mingen:bootstrap_stamp",
        "apps/mount:mount",
        "apps/netcon:netcon",
        "apps/profile:profile",
        "apps/setup:msetup",
        "apps/setup:build_msetup",
        "apps/santa:build_santa",
        "apps/swiss:swiss",
        "apps/swiss:build_swiss",
        "apps/tzcomp:tz_files",
        "apps/tzset:tzset",
        "apps/unmount:umount",
        "apps/vmstat:vmstat",
    ];

    allApps = testApps + libc + apps;
    entries = group("all_apps", allApps);
    entries += group("libc", libc);
    return entries;
}

