use scons "Command" builder for sdl_keymap.cc
This commit is contained in:
parent
cd1e26318a
commit
55fee6b9a9
@ -63,17 +63,13 @@ def F2C(target, source, env):
|
||||
f.close()
|
||||
return None
|
||||
|
||||
def SDLKeymap(target, source, env):
|
||||
Popen(['perl', str(source[0])]).wait()
|
||||
|
||||
def bt(cmd):
|
||||
return Popen(cmd, shell = True, stdout = PIPE).communicate()[0]
|
||||
|
||||
env.Append(BUILDERS = {'SDLKeymap' : Builder(action = SDLKeymap)})
|
||||
env.Append(BUILDERS = {'F2C' : Builder(action = F2C)})
|
||||
|
||||
env.F2C('ag_lua.cc', 'src/ag.lua')
|
||||
env.SDLKeymap('sdl_keymap.cc', 'gen-sdl-keymap.pl')
|
||||
env.Command('sdl_keymap.cc', 'gen-sdl-keymap.pl', 'perl gen-sdl-keymap.pl')
|
||||
env.Program(target, sources)
|
||||
|
||||
env.Install('dist', target)
|
||||
|
Loading…
x
Reference in New Issue
Block a user