Try to fix Windows install. carl-old
authorCarl Hetherington <cth@carlh.net>
Wed, 26 Jun 2019 19:50:53 +0000 (20:50 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 2 Dec 2019 15:03:18 +0000 (16:03 +0100)
cscript

diff --git a/cscript b/cscript
index aee9922587894e3fcac62526544941f8033d2857..b4ec7c017db3f2d94068093356047bb63c727589 100644 (file)
--- 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))