blob: 12e9011af42ada5288afe765301f705a34a25797 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import generators : register-standard ;
import feature : feature ;
import toolset : flags ;
generators.register-standard glad.generate.c : XML : C(%) H(glad/%) XML ;
feature glad.pythonpath : thirdparty/glad : path ;
feature glad.profile : core compatibility : symmetric ;
feature glad.version : 4.6 4.5 4.4 4.3 4.2 4.1 4.0 3.3 3.2 3.1 3.0 2.1 2.0 1.5 1.4 1.3 1.2 1.1 1.0 : symmetric ;
flags glad.generate.c PYTHONPATH <glad.pythonpath> ;
flags glad.generate.c PROFILE <glad.profile> ;
flags glad.generate.c VERSION <glad.version> ;
actions glad.generate.c
{
rm -rf $(1:D)
PYTHONPATH=$(PYTHONPATH) python -m glad --api=$(2:B):$(PROFILE)=$(VERSION) --merge --out-path=$(1[3]:D) --reproducible --quiet c
mv $(1[3]:D)/src/$(1[1]:BS) $(1[1])
mkdir -p $(1[2]:D)
mv $(1[3]:D)/include/glad/$(1[2]:BS) $(1[2])
}
|