Browse Source

Rename plugins to match convention in cmd/squircy

master
Tyler Sommer 9 months ago
parent
commit
518921fa3e
Signed by: tyler-sommer
GPG Key ID: C09C010500DBD008
  1. 4
      Makefile
  2. 3
      cmd/squircy/plugins_linked.go
  3. 1
      cmd/squircy/plugins_shared.go

4
Makefile

@ -31,12 +31,12 @@ ifeq ($(PLUGIN_TYPE),linked)
PLUGIN_TARGETS :=
EXTRA_TAGS := -tags linked_plugins
DIST_TARGETS := $(SQUIRCY_DIST)
LINKED_PLUGINS_FILE := cmd/squircy/linked_plugins.go
LINKED_PLUGINS_FILE := cmd/squircy/plugins_linked.go
else
PLUGIN_TARGETS := $(patsubst %,$(OUTPUT_BASE)/%.so,$(PLUGINS))
EXTRA_TAGS :=
DIST_TARGETS := $(SQUIRCY_DIST) $(PLUGIN_DIST)
LINKED_PLUGINS_FILE := cmd/squircy/shared_plugins.go
LINKED_PLUGINS_FILE := cmd/squircy/plugins_shared.go
endif
TESTDATA_NODEMODS_TARGET := testdata/node_modules

3
cmd/squircy/linked_plugins.go → cmd/squircy/plugins_linked.go

@ -1,3 +1,4 @@
//go:build linked_plugins
// +build linked_plugins
package main
@ -6,6 +7,7 @@ import (
"code.dopame.me/veonik/squircy3/plugin"
babel "code.dopame.me/veonik/squircy3/plugins/babel"
discord "code.dopame.me/veonik/squircy3/plugins/discord"
node_compat2 "code.dopame.me/veonik/squircy3/plugins/node_compat"
script "code.dopame.me/veonik/squircy3/plugins/script"
squircy2_compat "code.dopame.me/veonik/squircy3/plugins/squircy2_compat"
@ -13,6 +15,7 @@ import (
var linkedPlugins = []plugin.Initializer{
plugin.InitializerFunc(babel.Initialize),
plugin.InitializerFunc(discord.Initialize),
plugin.InitializerFunc(node_compat2.Initialize),
plugin.InitializerFunc(script.Initialize),
plugin.InitializerFunc(squircy2_compat.Initialize)}

1
cmd/squircy/shared_plugins.go → cmd/squircy/plugins_shared.go

@ -1,3 +1,4 @@
//go:build !linked_plugins
// +build !linked_plugins
package main
Loading…
Cancel
Save