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 44aeb9c commit 7f852e1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
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
./mkn clean build -dtOa -fPIC -p dep
2 changes: 1 addition & 1 deletion ver/mkn.yaml → mkn.prop.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: gl.glew.version
name: gl.glew.props

property:
gl.glew.version: 2.2.0
4 changes: 1 addition & 3 deletions mkn.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/usr/bin/env bash
set -exu

# [ ! -d "g" ] && git clone https://github.com/nigels-com/glew g

VER="$(mkn -G gl.glew.version -C ver)"
VER="$(mkn -G gl.glew.version -C mkn.prop.yaml)"
DIR="glew-${VER}"
FILE="${DIR}.tgz"

Expand Down
20 changes: 12 additions & 8 deletions mkn.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
name: gl.glew

super: ver

parent: base
src: glew-${gl.glew.version}/src/glew.c
parent: lib
super: mkn.prop.yaml

profile:
- name: base
inc: glew-${gl.glew.version}/include
dep: gl.glu
if_lib:
win: Shell32 User32 Gdi32 Xinput
if_arg:
win_shared: -DGLEW_BUILD -DGLEWAPI
win_static: -DGLEW_STATIC

- name: lib
parent: base
src: glew-${gl.glew.version}/src/glew.c

- name: dep
parent: lib
dep: gl.glu
if_lib:
win: Shell32 User32 Gdi32 Xinput

0 comments on commit 7f852e1

Please sign in to comment.