Skip to content

Commit

Permalink
compiles on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaji Khan committed Oct 13, 2024
1 parent be87bbd commit e67ca0a
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 4 deletions.
Binary file modified FileWriter.o
Binary file not shown.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ GTK=`x86_64-w64-mingw32-pkg-config --cflags --libs gtk4 gtk4-win32` -I/usr/x86_6
LV2=
JACK=
SNDFILE=
OPUS=
OPUS=`x86_64-w64-mingw32-pkg-config --cflags --libs opus opusfile`
LAME=
X11=
OPTIMIZE=
CC=x86_64-w64-mingw32-gcc
CPP=x86_64-w64-mingw32-g++ -std=c++17
DLFCN=-llibdl
endif
all: amprack

amprack: version.o FileWriter.o main.o rack.o presets.o SharedLibrary.o engine.o jack.o process.o util.o snd.o knob.o
$(CPP) *.o -o amprack $(GTK) $(LV2) $(JACK) $(OPTIMIZE) $(SNDFILE) $(OPUS) $(LAME) $(LAME)
$(CPP) *.o -o amprack $(GTK) $(LV2) $(JACK) $(OPTIMIZE) $(SNDFILE) $(OPUS) $(LAME) $(DLFCN)

main.o: main.cc main.h rack.o presets.o
$(CPP) main.cc -c $(GTK) $(LV2) $(OPTIMIZE) -Wno-deprecated-declarations
Expand Down Expand Up @@ -62,8 +63,13 @@ missing: SharedLibrary.o missing.cc
test: lv2_test.c
$(CC) lv2_test.c $(LV2) -I/usr/include/lv2 -o lv2_test

ifeq ($(TARGET),linux)
jack.o: jack.cc jack.h
$(CC) jack.cc -c $(JACK)
else
jack.o: pa.cc pa.h
$(CPP) pa.cc -c
endif

process.o: process.cc process.h
$(CC) process.cc -c
Expand Down
Binary file modified Plugin.o
Binary file not shown.
Binary file modified PluginControl.o
Binary file not shown.
Binary file modified SharedLibrary.o
Binary file not shown.
Binary file added amprack.exe
Binary file not shown.
3 changes: 2 additions & 1 deletion engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ bool Engine::addPluginByName (char * pluginName) {
stub = lv2Map [pluginName].dump();
}

# ifdef __linux__
LILV_FOREACH (plugins, i, plugins) {
const LilvPlugin* p = (LilvPlugin* )lilv_plugins_get(plugins, i);
const char * name = lilv_node_as_string (lilv_plugin_get_name (p));
Expand All @@ -184,7 +185,7 @@ bool Engine::addPluginByName (char * pluginName) {
return addPlugin ((char *)uri, 0, SharedLibrary::PluginType::LILV);
}
}

# endif
return false ;
}

Expand Down
Binary file modified engine.o
Binary file not shown.
Binary file removed jack.o
Binary file not shown.
Binary file modified lv2_ext.o
Binary file not shown.
Binary file added pa.o
Binary file not shown.
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define VERSION 136
#define VERSION 137
Binary file modified vringbuffer.o
Binary file not shown.

0 comments on commit e67ca0a

Please sign in to comment.