aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorNunoSempere <nuno.semperelh@protonmail.com>2024-03-14 19:31:04 -0300
committerNunoSempere <nuno.semperelh@protonmail.com>2024-03-14 19:31:04 -0300
commitaf208844b575edb6ce9205507289a00743a8bf4e (patch)
treec36ebd9e175a4d60a1b31d0f94f085a9d1f90aae /plugins
parent878d6a890bdc1a8381b0c44c80c36d829cc28fc1 (diff)
reorg makefile and make runtime locations less messy
In particular, stop using the installation directory for anything and instead move to /opt/rosenrot The user specific cache remains at /home/user/.cache
Diffstat (limited to 'plugins')
-rw-r--r--plugins/plugins.mk14
-rw-r--r--plugins/stand_in/stand_in.c3
-rw-r--r--plugins/stand_in/stand_in.h1
3 files changed, 18 insertions, 0 deletions
diff --git a/plugins/plugins.mk b/plugins/plugins.mk
new file mode 100644
index 0000000..f95cac7
--- /dev/null
+++ b/plugins/plugins.mk
@@ -0,0 +1,14 @@
+## Plugins
+CUSTOM_STYLES=./plugins/style/style.c
+SHORTCUTS=./plugins/shortcuts/shortcuts.c
+READABILITY=./plugins/readability/readability.c
+LIBRE_REDIRECT=./plugins/libre_redirect/libre_redirect.c ./plugins/libre_redirect/str_replace_start.c ./plugins/libre_redirect/str_init.c
+
+ADBLOCK='-L/usr/lib/wyebrowser/adblock.so' # optional adblocking; depends on https://github.com/jun7/wyebadblock
+
+STAND_IN=./plugins/stand_in/stand_in.c # gives function definitions for the above, which do nothing
+
+PLUGINS=$(CUSTOM_STYLES) $(SHORTCUTS) $(READABILITY) $(LIBRE_REDIRECT)
+# PLUGINS=$(STAND_IN)
+
+
diff --git a/plugins/stand_in/stand_in.c b/plugins/stand_in/stand_in.c
index dbcc7e8..cb8c487 100644
--- a/plugins/stand_in/stand_in.c
+++ b/plugins/stand_in/stand_in.c
@@ -25,3 +25,6 @@ void read_style_js(char* string){
}
+int shortcut_expand(const char* uri, char* output){
+ return 0;
+}
diff --git a/plugins/stand_in/stand_in.h b/plugins/stand_in/stand_in.h
index 062acf7..10f4283 100644
--- a/plugins/stand_in/stand_in.h
+++ b/plugins/stand_in/stand_in.h
@@ -21,3 +21,4 @@ void read_readability_js(char* string);
void read_style_js(char* string);
+int shortcut_expand(const char* uri, char* output);