Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Use a base image with the required build tools installed.
FROM ubuntu:latest

# Install build essentials and OBS Studio development libraries.
RUN apt-get update && apt-get install -y \
build-essential \
pkg-config \
cmake \
git \
libobs-dev

RUN apt-get install -y qt6-base-dev qt6-declarative-dev qt6-tools-dev

# Copy the plugin source code into the container.
COPY . /plugin

# Set the working directory to the plugin's source code.
WORKDIR /plugin

ENV QT_INCLUDE /usr/include/x86_64-linux-gnu/qt6
ENV QT_LIB /usr/lib/x86_64-linux-gnu/qt6
ENV OBS_LIB /usr/lib/x86_64-linux-gnu

# Specify the default command to build the plugin.
CMD ["make"]

3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ clean:
.PHONY: uninstall
uninstall:
rm -r $(HOME)/.config/obs-studio/plugins/InstantReplay

include build.mk

3 changes: 3 additions & 0 deletions build.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build:
docker build -t obs-plugin-builder .
docker run --rm -v "$(PWD)":/plugin obs-plugin-builder