forked from metacall/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# MetaCall Build Shell Script by Parra Studios | ||
# Build and install shell script utility for MetaCall. | ||
# | ||
# Copyright (C) 2016 - 2022 Vicente Eduardo Ferrer Garcia <[email protected]> | ||
# Copyright (C) 2016 - 2024 Vicente Eduardo Ferrer Garcia <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -40,6 +40,7 @@ BUILD_C=0 | |
BUILD_COBOL=0 | ||
BUILD_GO=0 | ||
BUILD_RUST=0 | ||
BUILD_ZIG=0 | ||
BUILD_SCRIPTS=0 | ||
BUILD_EXAMPLES=0 | ||
BUILD_TESTS=0 | ||
|
@@ -155,6 +156,10 @@ sub_options() { | |
echo "Build with rust support" | ||
BUILD_RUST=1 | ||
fi | ||
if [ "$option" = 'zig' ]; then | ||
echo "Build with zig support" | ||
BUILD_ZIG=1 | ||
fi | ||
if [ "$option" = 'scripts' ]; then | ||
echo "Build all scripts" | ||
BUILD_SCRIPTS=1 | ||
|
@@ -439,6 +444,7 @@ sub_configure() { | |
|
||
# Zig | ||
if [ $BUILD_ZIG = 1 ]; then | ||
# TODO | ||
# BUILD_STRING="$BUILD_STRING -DOPTION_BUILD_LOADERS_ZIG=On" | ||
|
||
# if [ $BUILD_SCRIPTS = 1 ]; then | ||
|
@@ -550,6 +556,7 @@ sub_help() { | |
echo " cobol: build with cobol support" | ||
echo " go: build with go support" | ||
echo " rust: build with rust support" | ||
echo " zig: build with zig support" | ||
echo " scripts: build all scripts" | ||
echo " examples: build all examples" | ||
echo " tests: build and run all tests" | ||
|