summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-11 18:12:43 +0000
committerDavid Robillard <d@drobilla.net>2016-07-11 18:12:43 +0000
commitf2f69d6d18e240931ba825633108107e948c1984 (patch)
treef0b7fe820f84532437977667380fbfd3c68a82b1 /wscript
parentcc4c8641bdd2d60864e6a4236539a7013eb00ad7 (diff)
downloadzix-f2f69d6d18e240931ba825633108107e948c1984.tar.gz
zix-f2f69d6d18e240931ba825633108107e948c1984.tar.bz2
zix-f2f69d6d18e240931ba825633108107e948c1984.zip
Add page size configuration option
git-svn-id: http://svn.drobilla.net/zix/trunk@107 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/wscript b/wscript
index 1ddd4d5..d3c37a2 100644
--- a/wscript
+++ b/wscript
@@ -36,6 +36,8 @@ def options(opt):
help='Build benchmarks')
opt.add_option('--static', action='store_true', dest='static',
help='Build static library')
+ opt.add_option('--page-size', type='int', default=4096, dest='page_size',
+ help='Page size for B-tree')
def configure(conf):
conf.load('compiler_c')
@@ -66,6 +68,7 @@ def configure(conf):
conf.fatal('Glib is required to build benchmarks')
autowaf.define(conf, 'ZIX_VERSION', ZIX_VERSION)
+ autowaf.define(conf, 'ZIX_BTREE_PAGE_SIZE', Options.options.page_size)
conf.write_config_header('zix-config.h', remove=False)
autowaf.display_msg(conf, 'Unit tests', str(conf.env.BUILD_TESTS))