Mercurial > games > semicongine
annotate Makefile @ 494:0c18638c7217
did: refactoring, move more from make to nimscript
author | Sam <sam@basx.dev> |
---|---|
date | Sun, 15 Jan 2023 23:23:54 +0700 |
parents | aae5426c09df |
children |
rev | line source |
---|---|
486
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
1 # compilation requirements |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
2 examples/glslangValidator: thirdparty/bin/linux/glslangValidator |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
3 cp $< examples |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
4 examples/glslangValidator.exe: thirdparty/bin/windows/glslangValidator.exe |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
5 cp $< examples |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
6 |
466
1dd9e2393a9e
add: structure code for crossplatform, add some input handling + bugfixes
Sam <sam@basx.dev>
parents:
464
diff
changeset
|
7 # download thirdparty-libraries |
463
91544fc1afe5
did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents:
462
diff
changeset
|
8 |
486
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
9 thirdparty/bin/linux/glslangValidator: |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
10 mkdir -p $$( dirname $@ ) |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
11 cd $$( dirname $@ ) && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
12 cd $$( dirname $@ ) && unzip *.zip |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
13 cd $$( dirname $@ ) && mv bin/* . |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
14 cd $$( dirname $@ ) && rm -rf *.zip bin lib include |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
15 thirdparty/bin/windows/glslangValidator.exe: |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
16 mkdir -p $$( dirname $@ ) |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
17 cd $$( dirname $@ ) && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-windows-x64-Release.zip |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
18 cd $$( dirname $@ ) && unzip *.zip |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
19 cd $$( dirname $@ ) && mv bin/* . |
9231df12b222
fix: build from scratch not working, remove temp shader files from compilation
Sam <sam@basx.dev>
parents:
485
diff
changeset
|
20 cd $$( dirname $@ ) && rm -rf *.zip bin lib include |