summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
Diffstat (limited to 'cscript')
-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))