Skip to content

Commit

Permalink
Added shared library build option
Browse files Browse the repository at this point in the history
  • Loading branch information
kcleal committed Feb 23, 2024
1 parent f2eb45c commit 4a29ec8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,17 @@ $(TARGET): $(OBJECTS)
clean:
-rm -f *.o ./src/*.o ./src/*.o.tmp ./lib/libBigWig/*.o
-rm -f $(TARGET)
-rm -rf libgw


SHARED_TARGET = libgw/libgw.so
ifeq ($(PLATFORM),"Darwin")
SHARED_TARGET = libgw/libgw.dylib
endif

shared: CXXFLAGS += -fPIC
shared: $(OBJECTS)
-mkdir -p libgw/include
-cp src/*.h libgw/include
-cp include/*.h libgw/include
$(CXX) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -shared -o $(SHARED_TARGET)
2 changes: 0 additions & 2 deletions docs/docs/install/Windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ Download the GW installer script below:

[GW Intel x86_64 Windows installer](https://github.com/kcleal/gw/releases/download/v0.9.3/gw-windows-installer.vbs)

[GW Intel x86_64 Windows installer](https://github.com/kcleal/gw/releases/download/v0.9.2/gw-windows-installer.vbs)


Run the downloaded visual-basic script by double-clicking, or right-clicking and selecting Run as program.
The script will install GW, add a shortcut to GW in the Start Menu and put GW on your PATH. This means GW
Expand Down
1 change: 1 addition & 0 deletions src/plot_controls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1816,6 +1816,7 @@ namespace Manager {
tracks.push_back(HGW::GwTrack());
try {
tracks.back().open(pth, true);
tracks.back().variant_distance = &opts.variant_distance;
std::cout << termcolor::magenta << "\nTrack " << termcolor::reset << pth << "\n";
} catch (...) {
tracks.pop_back();
Expand Down
2 changes: 1 addition & 1 deletion src/plot_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ namespace Manager {

SkPaint cog_paint = opts.theme.lcBright;
cog_paint.setAntiAlias(true);
cog_paint.setStrokeWidth(6);
cog_paint.setStrokeWidth(3 * monitorScale);
cog_paint.setStyle(SkPaint::kStrokeAndFill_Style);
canvas->drawCircle(15 * monitorScale, half_h - 12.5 * monitorScale, 5 * monitorScale, cog_paint);

Expand Down

0 comments on commit 4a29ec8

Please sign in to comment.