summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-06-26 20:50:53 +0100
committerCarl Hetherington <cth@carlh.net>2019-12-02 16:03:18 +0100
commit17c9704c3bf8242cadf1464a3c0fe2c4436f83bd (patch)
tree6e70ef022d8289437ae096c77da70b3e390b02c9
parent7c8c2ba2368dacb890eb8ff3c4be75a1557231e3 (diff)
Try to fix Windows install.carl-old
-rw-r--r--cscript5
1 files changed, 4 insertions, 1 deletions
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))