Skip to content

Commit

Permalink
Merge pull request #537 from Syndelis/chore/fmt-submodule
Browse files Browse the repository at this point in the history
Use `fmt` as a git submodule
  • Loading branch information
aristocratos committed May 23, 2023
2 parents b0fc635 + 1567a79 commit 4689938
Show file tree
Hide file tree
Showing 20 changed files with 45 additions and 15,745 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/continuous-build-freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Compile
uses: vmactions/freebsd-vm@v0
with:
Expand All @@ -43,8 +46,8 @@ jobs:
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
mv bin/btop bin/btop-$GIT_HASH
ls -alh bin
- uses: actions/upload-artifact@v3
with:
name: btop-x86_64-FreeBSD-13.1
path: 'bin/*'

2 changes: 2 additions & 0 deletions .github/workflows/continuous-build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ jobs:

- name: Checkout source
uses: actions/checkout@v3
with:
submodules: recursive

- name: Fix - Stopping at filesystem boundary
run: git init # [fix Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).]
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/continuous-build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Compile
run: |
make CXX=g++-11 ARCH=x86_64 STATIC=true STRIP=true
Expand All @@ -49,7 +52,10 @@ jobs:
with:
xcode-version: latest-stable

- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Compile
run: |
make CXX=g++-12 ARCH=x86_64 STATIC=true STRIP=true
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lib/fmt"]
path = lib/fmt
url = https://github.com/fmtlib/fmt
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ endif

#? The Directories, Source, Includes, Objects and Binary
SRCDIR := src
INCDIR := include
INCDIRS := include $(wildcard lib/**/include)
BUILDDIR := obj
TARGETDIR := bin
SRCEXT := cpp
Expand All @@ -134,7 +134,7 @@ OPTFLAGS := -O2 -ftree-vectorize -flto=$(THREADS)
LDCXXFLAGS := -pthread -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS $(GOODFLAGS) $(ADDFLAGS)
override CXXFLAGS += $(REQFLAGS) $(LDCXXFLAGS) $(OPTFLAGS) $(WARNFLAGS)
override LDFLAGS += $(LDCXXFLAGS) $(OPTFLAGS) $(WARNFLAGS)
INC := -I$(INCDIR) -I$(SRCDIR)
INC := $(foreach incdir,$(INCDIRS),-I$(incdir)) -I$(SRCDIR)
SU_USER := root

ifdef DEBUG
Expand Down
52 changes: 26 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ If you want to help out, test for bugs/fix bugs or just try out the branches:
```bash
# Install and use Homebrew or MacPorts package managers for easy dependency installation
brew install coreutils make gcc@11
git clone https://github.com/aristocratos/btop.git
git clone --recursive https://github.com/aristocratos/btop.git
cd btop
git checkout OSX
gmake
Expand All @@ -83,7 +83,7 @@ gmake
**FreeBSD**
```bash
sudo pkg install gmake gcc11 coreutils git
git clone https://github.com/aristocratos/btop.git
git clone --recursive https://github.com/aristocratos/btop.git
cd btop
git checkout freebsd
gmake
Expand Down Expand Up @@ -241,7 +241,7 @@ Also needs a UTF8 locale and a font that covers:

* **Run install.sh or:**

``` bash
```bash
# use "make install PREFIX=/target/dir" to set target, default: /usr/local
# only use "sudo" when installing to a NON user owned directory
sudo make install
Expand All @@ -253,7 +253,7 @@ Also needs a UTF8 locale and a font that covers:

* **Run setuid.sh or:**

``` bash
```bash
# run after make install and use same PREFIX if any was used at install
# set SU_USER and SU_GROUP to select user and group, default is root:root
sudo make setuid
Expand All @@ -263,7 +263,7 @@ Also needs a UTF8 locale and a font that covers:

* **Run uninstall.sh or:**

``` bash
```bash
sudo make uninstall
```

Expand Down Expand Up @@ -315,14 +315,14 @@ Also needs a UTF8 locale and a font that covers:

Use gcc-10 g++-10 if gcc-11 isn't available
``` bash
```bash
sudo apt install coreutils sed git build-essential gcc-11 g++-11
```
2. **Clone repository**
``` bash
git clone https://github.com/aristocratos/btop.git
```bash
git clone --recursive https://github.com/aristocratos/btop.git
cd btop
```
Expand All @@ -347,7 +347,7 @@ Also needs a UTF8 locale and a font that covers:
If `g++` is linked to an older version of gcc on your system specify the correct version by appending `CXX=g++-10` or `CXX=g++-11`.
``` bash
```bash
make
```
Expand All @@ -357,7 +357,7 @@ Also needs a UTF8 locale and a font that covers:
Notice! Only use "sudo" when installing to a NON user owned directory.
``` bash
```bash
sudo make install
```
Expand All @@ -369,13 +369,13 @@ Also needs a UTF8 locale and a font that covers:
Set `SU_USER` and `SU_GROUP` to select user and group, default is `root` and `root`
``` bash
```bash
sudo make setuid
```
* **Uninstall**
``` bash
```bash
sudo make uninstall
```
Expand Down Expand Up @@ -409,14 +409,14 @@ Also needs a UTF8 locale and a font that covers:

1. **Install dependencies (example for Homebrew)**

``` bash
```bash
brew install coreutils make gcc@12
```

2. **Clone repository**

``` bash
git clone https://github.com/aristocratos/btop.git
```bash
git clone --recursive https://github.com/aristocratos/btop.git
cd btop
```

Expand All @@ -437,7 +437,7 @@ Also needs a UTF8 locale and a font that covers:

For example: `ADDFLAGS=-march=native` might give a performance boost if compiling only for your own system.

``` bash
```bash
gmake
```

Expand All @@ -447,7 +447,7 @@ Also needs a UTF8 locale and a font that covers:

Notice! Only use "sudo" when installing to a NON user owned directory.

``` bash
```bash
sudo gmake install
```

Expand All @@ -459,13 +459,13 @@ Also needs a UTF8 locale and a font that covers:

Set `SU_USER` and `SU_GROUP` to select user and group, default is `root` and `wheel`

``` bash
```bash
sudo gmake setuid
```

* **Uninstall**

``` bash
```bash
sudo gmake uninstall
```

Expand Down Expand Up @@ -495,14 +495,14 @@ Also needs a UTF8 locale and a font that covers:

1. **Install dependencies**

``` bash
```bash
sudo pkg install gmake gcc11 coreutils git
```

2. **Clone repository**

``` bash
git clone https://github.com/aristocratos/btop.git
```bash
git clone --recursive https://github.com/aristocratos/btop.git
cd btop
```

Expand All @@ -521,7 +521,7 @@ Also needs a UTF8 locale and a font that covers:

For example: `ADDFLAGS=-march=native` might give a performance boost if compiling only for your own system.

``` bash
```bash
gmake
```

Expand All @@ -531,7 +531,7 @@ Also needs a UTF8 locale and a font that covers:

Notice! Only use "sudo" when installing to a NON user owned directory.

``` bash
```bash
sudo gmake install
```

Expand All @@ -543,13 +543,13 @@ Also needs a UTF8 locale and a font that covers:

Set `SU_USER` and `SU_GROUP` to select user and group, default is `root` and `wheel`

``` bash
```bash
sudo gmake setuid
```

* **Uninstall**

``` bash
```bash
sudo gmake uninstall
```

Expand Down
Loading

0 comments on commit 4689938

Please sign in to comment.