From 17c9704c3bf8242cadf1464a3c0fe2c4436f83bd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 26 Jun 2019 20:50:53 +0100 Subject: Try to fix Windows install. --- cscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cscript') diff --git a/cscript b/cscript index aee9922..b4ec7c0 100644 --- a/cscript +++ b/cscript @@ -22,6 +22,7 @@ def build(target, options): type = 'generic' blockdev = 'linux' ext = 'so' + device = 'dev' elif target.platform == 'osx': if target.bits == 64: type = 'osx' @@ -29,16 +30,18 @@ def build(target, options): type = 'osx32' blockdev = 'linux' ext = 'dylib' + device = 'dev' elif target.platform == 'windows': type = 'mingw' blockdev = 'windows' ext = 'dll' + device = 'windows' target.command('mkdir -p %s/include/lwext4' % target.directory) target.command('cp -r include/* %s/include/lwext4' % target.directory) target.command('make %s' % type) target.command('make -j%d -C build_%s' % (target.parallel, type)) target.command('cp -r build_%s/include/generated %s/include/lwext4' % (type, target.directory)) - target.command('cp blockdev/%s/file_dev.h %s/include/lwext4' % (blockdev, target.directory)) + target.command('cp blockdev/%s/file_%s.h %s/include/lwext4' % (blockdev, device, target.directory)) target.command('cp build_%s/src/liblwext4.%s %s/lib' % (type, ext, target.directory)) target.command('cp build_%s/blockdev/libblockdev.%s %s/lib' % (type, ext, target.directory)) -- cgit v1.2.3