Skip to content

Commit

Permalink
next
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Aug 21, 2024
1 parent 404edb8 commit 36521e3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build_nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

name: Build on Ubuntu

on:
pull_request:

jobs:
build:
name: Ubuntu
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true

# sudo apt update && sudo apt install -y libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev
- run: |
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_nix
chmod +x mkn
PATH="$PWD:$PATH" ./mkn.sh
./mkn clean build -dtOa -fPIC -p all
5 changes: 2 additions & 3 deletions mkn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
set -exu
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" && cd $CWD

GLEW_VER=$(mkn -G gl.glew.version -C dep/glew/mkn.prop.yaml)

do_incs() {
mkn -p dep_get
mkdir -p inc/GL
cp -r dep/gl/inc/GL/* inc/GL/
cp -r dep/glew/glew-${GLEW_VER}/include/GL/* inc/GL/
cp -r dep/glew/g/include/GL/* inc/GL/
cp -r dep/glu/g/include/GL/* inc/GL
cp -r dep/glfw/g/include/* inc/
cp -r dep/glm/g/glm inc/
Expand Down
8 changes: 3 additions & 5 deletions mkn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
name: mkn.gpu
parent: all

property:
gl.glew.version: 2.2.0

profile:
- name: inc
inc: inc
Expand All @@ -16,11 +13,12 @@ profile:
bsd: -DMACOSX
nix: -D_GLFW_X11 -D_GLFW_GLX -D_GLFW_HAS_DLOPEN
win: -D_GLFW_WIN32 -D_GLFW_WGL
win_shared: -D_GLFW_BUILD_DLL
win_shared: -D_GLFW_BUILD_DLL -DGLEW_BUILD -DGLEWAPI
win_static: -DGLEW_STATIC
arg: -D_GLFW_USE_OPENGL=1
src:
dep/glfw/g/src
dep/glew/glew-${gl.glew.version}/src/glew.c
dep/glew/g/src/glew.c
lib: GL

- name: dep_get
Expand Down

0 comments on commit 36521e3

Please sign in to comment.