build: Create ocarina.bin as a symlink to ocarina-player
I want to add in more ocarina-* commands, so the first step is making the player its own command. Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
30375bbdff
commit
62c3ef2684
|
@ -2,6 +2,5 @@
|
||||||
*.swp
|
*.swp
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
.sconsign.dblite
|
.sconsign.dblite
|
||||||
ocarina.bin
|
bin/
|
||||||
include/version.h
|
include/version.h
|
||||||
test_*
|
|
||||||
|
|
|
@ -35,9 +35,14 @@ def directory(dirs):
|
||||||
objs.append(files)
|
objs.append(files)
|
||||||
return objs
|
return objs
|
||||||
|
|
||||||
|
def symlink(target, source, env):
|
||||||
|
import os
|
||||||
|
os.symlink(str(source[0]), str(target[0]))
|
||||||
|
|
||||||
SConscript(['include/Sconscript'])
|
SConscript(['include/Sconscript'])
|
||||||
ocarina=env.Program('ocarina.bin', directory(["libsaria", "ocarina"]))
|
ocarina = env.Program('bin/ocarina-player', directory(["libsaria", "ocarina"]))
|
||||||
Default([ocarina])
|
oc_link = env.Command("ocarina.bin", "bin/ocarina-player", symlink)
|
||||||
|
Default([ocarina, oc_link])
|
||||||
|
|
||||||
# Install Ocarina
|
# Install Ocarina
|
||||||
scripts = os.listdir("scripts/")
|
scripts = os.listdir("scripts/")
|
||||||
|
|
Loading…
Reference in New Issue