Skip to content

Commit

Permalink
Merge pull request #24 from kcleal/gw_dev
Browse files Browse the repository at this point in the history
Added shared library build option
  • Loading branch information
kcleal authored Feb 23, 2024
2 parents 9574afe + 4a29ec8 commit 747b226
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
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)
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 747b226

Please sign in to comment.