123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- /*++
- Copyright (c) 2017 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:
- santa
- Abstract:
- This executable implements the Minoca package manager.
- Author:
- Evan Green 29-Aug-2017
- Environment:
- User
- --*/
- from menv import application, mconfig;
- function build() {
- var app;
- var appName = "santa";
- var config;
- var entries;
- var sources;
- var tool;
- sources = [
- "mkbundle.ck",
- "santa.ck",
- "cmd/archive.ck",
- "cmd/build.ck",
- "cmd/config.ck",
- "cmd/convert_archive.ck",
- "cmd/del_realm.ck",
- "cmd/install.ck",
- "cmd/list_realms.ck",
- "cmd/new_realm.ck",
- "cmd/patch.ck",
- "cmd/uninstall.ck",
- "containment/chroot.ck",
- "containment/none.ck",
- "presentation/copy.ck",
- "presentation/move.ck",
- "santa/build.ck",
- "santa/config.ck",
- "santa/containment.ck",
- "santa/file.ck",
- "santa/modules.ck",
- "santa/presentation.ck",
- "santa/lib/archive.ck",
- "santa/lib/build.ck",
- "santa/lib/config.ck",
- "santa/lib/defaultbuild.ck",
- "santa/lib/diff.ck",
- "santa/lib/patch.ck",
- "santa/lib/patchman.ck",
- "santa/lib/pkg.ck",
- "santa/lib/pkgbuilder.ck",
- "santa/lib/pkgdb.ck",
- "santa/lib/pkgdepot.ck",
- "santa/lib/pkgman.ck",
- "santa/lib/realm.ck",
- "santa/lib/realmmanager.ck",
- "santa/lib/santaconfig.ck",
- ];
- if (mconfig.build_os == "Windows") {
- appName += ".exe";
- }
- config = {
- "CHALK_ARGS": "$IN $OUT"
- };
- app = {
- "type": "target",
- "label": "build_santa",
- "output": appName,
- "inputs": ["mkbundle.ck"],
- "implicit": sources + ["apps/ck:build_chalk"],
- "tool": "create_santa",
- "config": config
- };
- tool = {
- "type": "tool",
- "name": "create_santa",
- "command": "$O/../../tools/bin/chalk $in $out",
- "description": "Bundling santa - $OUT"
- };
- entries = [app, tool];
- return entries;
- }
|