forked from vslavik/winsparkle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfabfile-dev.py
30 lines (22 loc) · 945 Bytes
/
fabfile-dev.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# coding: utf-8
# vim:softtabstop=4:ts=4:sw=4:expandtab:textwidth=120
import os
from fabric.api import lcd, local
_DEF_CFG = 'Release'
_DEVENV = '"/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/IDE/devenv.com"'
_TOP_DIR = os.path.dirname(__file__)
_DEPS_PATH = os.path.join(_TOP_DIR, '3rdparty')
def clean(config=_DEF_CFG):
'Clean all of winsparkle'
strs = {'devenv': _DEVENV, 'cfg': config}
with lcd(_TOP_DIR):
local('%(devenv)s WinSparkle.sln /clean %(cfg)s /project WinSparkle.vcproj' % strs)
with lcd(_DEPS_PATH):
local('%(devenv)s WinSparkleDeps.sln /clean %(cfg)s' % strs)
def build(config=_DEF_CFG):
'Build all of winsparkle.'
strs = {'devenv': _DEVENV, 'cfg': config}
with lcd(_DEPS_PATH):
local('%(devenv)s WinSparkleDeps.sln /build %(cfg)s' % strs)
with lcd(_TOP_DIR):
local('%(devenv)s WinSparkle.sln /build %(cfg)s /project WinSparkle.vcproj' % strs)