generated_plugins.mk 910 B

12345678910111213141516171819202122232425
  1. # Plugins to include in the build.
  2. GENERATED_PLUGINS=\
  3. GENERATED_PLUGINS_DIR=flutter\ephemeral\.plugin_symlinks
  4. # A plugin library name plugin name with _plugin appended.
  5. GENERATED_PLUGIN_LIB_NAMES=$(foreach plugin,$(GENERATED_PLUGINS),$(plugin)_plugin)
  6. # Variables for use in the enclosing Makefile. Changes to these names are
  7. # breaking changes.
  8. PLUGIN_TARGETS=$(GENERATED_PLUGINS)
  9. PLUGIN_LIBRARIES=$(foreach plugin,$(GENERATED_PLUGIN_LIB_NAMES),\
  10. $(OUT_DIR)/lib$(plugin).so)
  11. PLUGIN_LDFLAGS=$(patsubst %,-l%,$(GENERATED_PLUGIN_LIB_NAMES))
  12. PLUGIN_CPPFLAGS=$(foreach plugin,$(GENERATED_PLUGINS),\
  13. -I$(GENERATED_PLUGINS_DIR)/$(plugin)/linux)
  14. # Targets
  15. # Implicit rules don't match phony targets, so list plugin builds explicitly.
  16. .PHONY: $(GENERATED_PLUGINS)
  17. $(GENERATED_PLUGINS):
  18. make -C $(GENERATED_PLUGINS_DIR)/$@/linux \
  19. OUT_DIR=$(OUT_DIR) \
  20. FLUTTER_EPHEMERAL_DIR="$(abspath flutter\ephemeral)"