diff options
Diffstat (limited to 'libgenx/libgenx/buildfile')
-rw-r--r-- | libgenx/libgenx/buildfile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/libgenx/libgenx/buildfile b/libgenx/libgenx/buildfile new file mode 100644 index 0000000..4331d64 --- /dev/null +++ b/libgenx/libgenx/buildfile @@ -0,0 +1,51 @@ +intf_libs = # Interface dependencies. +impl_libs = # Implementation dependencies. +#import impl_libs += libhello%lib{hello} + +lib{genx}: {h c}{** -version} h{version} $impl_libs $intf_libs + +# Include the generated version header into the distribution (so that we don't +# pick up an installed one) and don't remove it when cleaning in src (so that +# clean results in a state identical to distributed). +# +h{version}: in{version} $src_root/manifest +{ + dist = true + clean = ($src_root != $out_root) +} + +# Build options. +# +c.poptions =+ "-I$out_root" "-I$src_root" + +obja{*}: c.poptions += -DLIBGENX_STATIC_BUILD +objs{*}: c.poptions += -DLIBGENX_SHARED_BUILD + +# Export options. +# +lib{genx}: +{ + c.export.poptions = "-I$out_root" "-I$src_root" + c.export.libs = $intf_libs +} + +liba{genx}: c.export.poptions += -DLIBGENX_STATIC +libs{genx}: c.export.poptions += -DLIBGENX_SHARED + +# For pre-releases use the complete version to make sure they cannot be used +# in place of another pre-release or the final version. See the version module +# for details on the version.* variable values. +# +if $version.pre_release + lib{genx}: bin.lib.version = @"-$version.project_id" +else + lib{genx}: bin.lib.version = @"-$version.major.$version.minor" + +# Install into the libgenx/ subdirectory of, say, /usr/include/ +# recreating subdirectories. +# +{h}{*}: +{ + install = include/libgenx/ + install.subdirs = true +} |