-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* `reaper` is moved to subprojects due to meson forcing a certain project structure, so prepare in case we move to meson in the future * `ulwgl-run` renamed to `ulwgl-run.in` since they are not usable straight from the repo.
- Loading branch information
1 parent
784cd48
commit c59e1f5
Showing
6 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
var | ||
build | ||
dist | ||
__pycache__ | ||
.ref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "reaper"] | ||
path = reaper | ||
path = subprojects/reaper | ||
url = https://github.com/Plagman/reaper.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
PROJECT := ulwgl | ||
|
||
BUILDDIR ?= build | ||
DESTDIR ?= | ||
|
||
PREFIX ?= /usr | ||
BINDIR := $(PREFIX)/bin | ||
LIBDIR := $(PREFIX)/lib | ||
DATADIR := $(PREFIX)/share | ||
|
||
.PHONY: all | ||
all: reaper ulwgl ulwgl-launcher | ||
|
||
ulwgl-run: | ||
$(info :: Building $@) | ||
sed 's|##INSTALL_PATH##|$(DATADIR)/$(PROJECT)|g' ULWGL/ulwgl-run.in > $(BUILDDIR)/$@ | ||
|
||
ulwgl-bin-install: ulwgl-run | ||
install -d $(DESTDIR)$(DATADIR)/$(PROJECT) | ||
install -Dm 755 $(BUILDDIR)/$< $(DESTDIR)$(BINDIR)/ulwgl-run | ||
|
||
ulwgl-dist-install: | ||
install -d $(DESTDIR)$(DATADIR)/$(PROJECT) | ||
install -Dm 644 ULWGL/ulwgl_consts.py -t $(DESTDIR)$(DATADIR)/$(PROJECT) | ||
install -Dm 644 ULWGL/ulwgl_dl_util.py -t $(DESTDIR)$(DATADIR)/$(PROJECT) | ||
install -Dm 644 ULWGL/ulwgl_log.py -t $(DESTDIR)$(DATADIR)/$(PROJECT) | ||
install -Dm 644 ULWGL/ulwgl_plugins.py -t $(DESTDIR)$(DATADIR)/$(PROJECT) | ||
install -Dm 644 ULWGL/ulwgl_run.py -t $(DESTDIR)$(DATADIR)/$(PROJECT) | ||
install -Dm 644 ULWGL/ulwgl_util.py -t $(DESTDIR)$(DATADIR)/$(PROJECT) | ||
install -Dm 644 ULWGL/ULWGL_VERSION.json -t $(DESTDIR)$(DATADIR)/$(PROJECT) | ||
|
||
# Install both dist and sh script target | ||
ulwgl-install: ulwgl-dist-install ulwgl-bin-install | ||
# Install dist only target | ||
#ulwgl-install: ulwgl-dist-install | ||
|
||
|
||
ulwgl-launcher-run: | ||
$(info :: Building $@) | ||
sed 's|##INSTALL_PATH##|$(DATADIR)/$(PROJECT)|g' ULWGL/ULWGL-Launcher/ulwgl-run.in > $(BUILDDIR)/$@ | ||
|
||
ulwgl-launcher-bin-install: ulwgl-launcher-run | ||
install -d $(DESTDIR)$(DATADIR)/$(PROJECT)/ULWGL-Launcher | ||
install -Dm 755 $(BUILDDIR)/$< $(DESTDIR)$(DATADIR)/$(PROJECT)/ULWGL-Launcher/ulwgl-run | ||
|
||
ulwgl-launcher-dist-install: | ||
install -d $(DESTDIR)$(DATADIR)/$(PROJECT)/ULWGL-Launcher | ||
install -Dm 644 ULWGL/ULWGL-Launcher/compatibilitytool.vdf -t $(DESTDIR)$(DATADIR)/$(PROJECT)/ULWGL-Launcher | ||
install -Dm 644 ULWGL/ULWGL-Launcher/toolmanifest.vdf -t $(DESTDIR)$(DATADIR)/$(PROJECT)/ULWGL-Launcher | ||
|
||
# Install both dist and sh script target | ||
ulwgl-launcher-install: ulwgl-launcher-dist-install ulwgl-launcher-bin-install | ||
# Install dist only target | ||
#ulwgl-launcher-install: ulwgl-launcher-dist-install | ||
|
||
|
||
reaper: | ||
$(info :: Building $@) | ||
meson setup $(BUILDDIR)/$@ subprojects/$@ | ||
ninja -C $(BUILDDIR)/$@ -v | ||
|
||
reaper-install: reaper | ||
install -Dm 755 $(BUILDDIR)/$</$< -t $(DESTDIR)$(DATADIR)/$(PROJECT) | ||
|
||
|
||
clean: | ||
rm -rf $(BUILDDIR) | ||
|
||
.PHONY: install-user | ||
install-user: | ||
|
||
.PHONY: install | ||
install: reaper-install ulwgl-install ulwgl-launcher-install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env sh | ||
##INSTALL_PATH##/ulwgl_run.py "$@" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env sh | ||
##INSTALL_PATH##/ulwgl_run.py "$@" | ||
|
Submodule reaper
updated
from 000000 to 88a182