Add MacOS support
This commit is contained in:
parent
3288fb8345
commit
5d1bcd7fc0
3 changed files with 24 additions and 1 deletions
18
README.rst
18
README.rst
|
|
@ -124,6 +124,24 @@ Arch
|
|||
pip3 install --user git+https://git.jaseg.de/pcb-tools-extension.git
|
||||
pip3 install --user gerbolyze --no-binary gerbolyze
|
||||
|
||||
macOS (via Homebrew)
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: shell
|
||||
# Tested on a fresh Mac OS 10.15.7 Catalina installation
|
||||
|
||||
# Requires homebrew. To install, run:
|
||||
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\n
|
||||
# --> Now, restart the terminal app to load new $PATH from /etc/paths <--
|
||||
|
||||
brew install python3 rustup pugixml cairo pango opencv pkg-config
|
||||
|
||||
rustup-init
|
||||
cargo install usvg
|
||||
|
||||
pip3 install git+https://git.jaseg.de/pcb-tools-extension.git
|
||||
pip3 install gerbolyze --no-binary gerbolyze
|
||||
|
||||
Build from source (any distro)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,11 @@ $(BUILDDIR)/%.o: %.cpp
|
|||
|
||||
$(BUILDDIR)/$(TARGET): $(SOURCES:%.cpp=$(BUILDDIR)/%.o)
|
||||
@mkdir -p $(dir $@)
|
||||
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ -Wl,--start-group $^ -lstdc++fs -Wl,--end-group
|
||||
if [ $$(uname -s) = "Darwin" ]; then \
|
||||
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^; \
|
||||
else \
|
||||
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ -Wl,--start-group $^ -lstdc++fs -Wl,--end-group; \
|
||||
fi
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#include <map>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <array>
|
||||
#include <pugixml.hpp>
|
||||
#include "svg_pattern.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue