-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Import libain work * Prioritize aarch64 for M1 Mac * CI build changes * Add customtx and visitor impl * Invoke metachain in defid * Cross-compilation fixes for OSX and Windows * Local path for depends builds * DMC handler for FFI and RPC * Test framework update * Fix MC startup and lambda return * Support moving funds back and forth
- Loading branch information
1 parent
8d233a4
commit 9a137e1
Showing
38 changed files
with
726 additions
and
18 deletions.
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package=libain | ||
$(package)_version=master | ||
$(package)_git_path=https://github.com/DeFiCh/libain-rs | ||
|
||
define $(package)_fetch_cmds | ||
if [ ! -z ${LIBAIN_PATH} ]; then \ | ||
echo "Using local path for libain-rs"; \ | ||
mkdir -p $$(base_build_dir)/$$(host)/$(package); \ | ||
ln -s $(LIBAIN_PATH) $$($(package)_extract_dir); \ | ||
else \ | ||
echo "Cloning from Git repository for libain-rs"; \ | ||
git clone --single-branch --branch master $$($(package)_git_path) $$($(package)_extract_dir); \ | ||
fi | ||
endef | ||
|
||
define $(package)_extract_cmds | ||
echo "Skipping extraction for libain source" | ||
endef | ||
|
||
# Perform target substitutions for Rust | ||
LIBAIN_TARGET := $(HOST) | ||
ifeq ($(LIBAIN_TARGET),x86_64-pc-linux-gnu) | ||
LIBAIN_TARGET=x86_64-unknown-linux-gnu | ||
endif | ||
ifeq ($(LIBAIN_TARGET),arm-linux-gnueabihf) | ||
LIBAIN_TARGET=arm-unknown-linux-gnueabihf | ||
endif | ||
ifeq ($(LIBAIN_TARGET),x86_64-apple-darwin18) | ||
LIBAIN_TARGET=aarch64-apple-darwin | ||
endif | ||
ifeq ($(LIBAIN_TARGET),x86_64-w64-mingw32) | ||
LIBAIN_TARGET=x86_64-pc-windows-gnu | ||
endif | ||
|
||
define $(package)_build_cmds | ||
$(MAKE) build-grpc-pkg TARGET=$(LIBAIN_TARGET) | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
cp -r pkg/ain-grpc/* $($(package)_staging_dir)$(host_prefix)/ | ||
endef |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package=libmc | ||
$(package)_version=master | ||
$(package)_git_path=https://github.com/DeFiCh/metachain | ||
|
||
define $(package)_fetch_cmds | ||
if [ ! -z ${LIBMC_PATH} ]; then \ | ||
echo "Using local path for metachain"; \ | ||
mkdir -p $$(base_build_dir)/$$(host)/$(package); \ | ||
ln -s $(LIBMC_PATH) $$($(package)_extract_dir); \ | ||
else \ | ||
echo "Cloning from Git repository for metachain"; \ | ||
git clone --single-branch --branch libmc $$($(package)_git_path) $$($(package)_extract_dir); \ | ||
fi | ||
endef | ||
|
||
define $(package)_extract_cmds | ||
echo "Skipping extraction for metachain source" | ||
endef | ||
|
||
# Perform target substitutions for Rust | ||
LIBMC_TARGET := $(HOST) | ||
ifeq ($(LIBMC_TARGET),x86_64-pc-linux-gnu) | ||
LIBMC_TARGET=x86_64-unknown-linux-gnu | ||
endif | ||
ifeq ($(LIBMC_TARGET),arm-linux-gnueabihf) | ||
LIBMC_TARGET=arm-unknown-linux-gnueabihf | ||
endif | ||
ifeq ($(LIBMC_TARGET),x86_64-apple-darwin18) | ||
LIBMC_TARGET=aarch64-apple-darwin | ||
endif | ||
ifeq ($(LIBMC_TARGET),x86_64-w64-mingw32) | ||
LIBMC_TARGET=x86_64-pc-windows-gnu | ||
endif | ||
|
||
define $(package)_build_cmds | ||
$(MAKE) build-native-pkg TARGET=$(LIBMC_TARGET) | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
cp -r pkg/metachain/* $($(package)_staging_dir)$(host_prefix)/ | ||
endef |
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
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
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
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
Oops, something went wrong.