mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-22 07:01:29 +11:00
Makefile release builds
This commit is contained in:
parent
9ae74be774
commit
cdaaf5c60a
9
Makefile
9
Makefile
|
@ -39,11 +39,14 @@ endif
|
|||
|
||||
FULL_LIBRARY_PATH=$(CURDIR)/target/debug
|
||||
LIBRARY=target/debug/libportability.$(LIB_EXTENSION)
|
||||
LIBRARY_FAST=target/release/libportability.$(LIB_EXTENSION)
|
||||
|
||||
.PHONY: all binding run cts
|
||||
.PHONY: all release binding run cts cts-pick cts-debug clean
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
release: $(LIBRARY_FAST)
|
||||
|
||||
binding: $(BINDING)
|
||||
|
||||
$(BINDING): $(VULKAN_DIR)/vulkan/*.h
|
||||
|
@ -54,6 +57,10 @@ $(LIBRARY): libportability*/src/*.rs libportability*/Cargo.toml Cargo.lock
|
|||
cargo build --manifest-path libportability-icd/Cargo.toml --features $(BACKEND)
|
||||
mkdir -p target/native
|
||||
|
||||
$(LIBRARY_FAST): libportability*/src/*.rs libportability*/Cargo.toml Cargo.lock
|
||||
cargo build --release --manifest-path libportability/Cargo.toml --features $(BACKEND)
|
||||
cargo build --release --manifest-path libportability-icd/Cargo.toml --features $(BACKEND)
|
||||
|
||||
$(NATIVE_DIR)/%.o: native/%.cpp $(DEPS) Makefile
|
||||
$(CC) -c -o $@ $< $(CFLAGS)
|
||||
|
||||
|
|
Loading…
Reference in a new issue