aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-12 23:13:20 +0800
committercrupest <crupest@outlook.com>2021-04-12 23:13:20 +0800
commit439c1a173c6609569ee2546184ad4e98ba886206 (patch)
tree7326a355d02eaf853b40a6827f31997cae944d29 /tools
parent01bbdbe1420c1da4e9bd9595582a9e2d97f32a85 (diff)
downloadcru-439c1a173c6609569ee2546184ad4e98ba886206.tar.gz
cru-439c1a173c6609569ee2546184ad4e98ba886206.tar.bz2
cru-439c1a173c6609569ee2546184ad4e98ba886206.zip
...
Diffstat (limited to 'tools')
-rw-r--r--tools/win_build.py21
1 files changed, 6 insertions, 15 deletions
diff --git a/tools/win_build.py b/tools/win_build.py
index c011aafe..73086917 100644
--- a/tools/win_build.py
+++ b/tools/win_build.py
@@ -8,8 +8,6 @@ import sys
parser = argparse.ArgumentParser()
parser.add_argument('command', choices=[
'configure', 'build', 'test'], nargs='?', default='test', help='specify command to execute')
-parser.add_argument('--skip-install-packages', action="store_true",
- help='skip using vcpkg to install package')
parser.add_argument('-a', '--arch', choices=['x86', 'x64'],
default='x64', help='specify target cpu architecture')
parser.add_argument('-c', '--config', choices=['Debug', 'Release'],
@@ -38,11 +36,6 @@ work_dir = os.path.join(project_root, args.work_dir)
# continue
# os.environ[k] = v
-def install_packages():
- subprocess.check_call(
- 'vcpkg install', stdout=sys.stdout, stderr=sys.stderr)
-
-
def configure():
generater_vs_arch_map = {
'x86': 'Win32',
@@ -69,12 +62,10 @@ def test():
os.chdir(project_root)
-if not args.skip_install_packages:
- install_packages()
-
configure()
-
-if args.command == 'build' or args.command == 'test':
- build()
- if args.command == 'test':
- test()
+if args.command == 'configure':
+ return
+build()
+if args.command == 'build':
+ return
+test()