2024-06-14 15:22:20 +00:00
|
|
|
# Must match package name in Cargo.toml
|
|
|
|
PLUGIN_NAME=example_rust
|
|
|
|
|
|
|
|
|
|
|
|
build: $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
|
|
|
|
2024-06-15 21:59:04 +00:00
|
|
|
$(PLUGIN_DIR)/$(PLUGIN_NAME).dim: $(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so
|
|
|
|
cp $(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so $(PLUGIN_DIR)/$(PLUGIN_NAME).dim
|
2024-06-14 15:22:20 +00:00
|
|
|
|
2024-06-15 21:59:04 +00:00
|
|
|
$(OBJECT_DIR)/$(PLUGIN_NAME)/debug/lib$(PLUGIN_NAME).so:
|
2024-06-14 15:22:20 +00:00
|
|
|
mkdir -p $(OBJECT_DIR)/$(PLUGIN_NAME)
|
2024-06-15 21:59:04 +00:00
|
|
|
cargo build --target-dir $(OBJECT_DIR)/$(PLUGIN_NAME)
|
2024-06-14 15:22:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
|