From 5bdedc1e0cc97a31dc2b820d835779f58ba70cb8 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Wed, 5 Sep 2018 16:58:52 -0400 Subject: [PATCH] Multiple ICD profiles --- Makefile | 4 +++- libportability-icd/portability-macos-debug.json | 7 +++++++ .../{portability_debug.json => portability-win-debug.json} | 0 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 libportability-icd/portability-macos-debug.json rename libportability-icd/{portability_debug.json => portability-win-debug.json} (100%) diff --git a/Makefile b/Makefile index feea3ba..704f7be 100644 --- a/Makefile +++ b/Makefile @@ -162,8 +162,10 @@ clean: cargo clean package: version-debug version-release + cargo build --manifest-path libportability-icd/Cargo.toml --features $(BACKEND) + cargo build --manifest-path libportability-icd/Cargo.toml --features $(BACKEND) --release echo "$(GIT_TAG_FULL)" > commit-sha - cd target && zip ../gfx-portability-$(OS_NAME)-$(GIT_TAG).zip */libportability.$(LIB_EXTENSION) ../commit-sha + zip gfx-portability-$(OS_NAME)-$(GIT_TAG).zip target/*/libportability*.$(LIB_EXTENSION) libportability-icd/portability-$(OS_NAME)-*.json commit-sha target/debug/libvulkan.$(LIB_EXTENSION): cd target/debug && ln -sf libportability.$(LIB_EXTENSION) libvulkan.$(LIB_EXTENSION) diff --git a/libportability-icd/portability-macos-debug.json b/libportability-icd/portability-macos-debug.json new file mode 100644 index 0000000..e5fea35 --- /dev/null +++ b/libportability-icd/portability-macos-debug.json @@ -0,0 +1,7 @@ +{ + "file_format_version": "1.0.0", + "ICD": { + "library_path": "../target/debug/libportability_icd.dylib", + "api_version": "1.0.0" + } +} diff --git a/libportability-icd/portability_debug.json b/libportability-icd/portability-win-debug.json similarity index 100% rename from libportability-icd/portability_debug.json rename to libportability-icd/portability-win-debug.json