diff options
author | Chris Wilson <chris+github@qwirx.com> | 2016-09-03 00:25:52 +0100 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2016-09-09 20:54:12 +0100 |
commit | 98a6ad72ee819774a398440055abd87bc44e9ba0 (patch) | |
tree | 55a5c7eff8deaab2ab7d44ed0357576aa0687a96 /infrastructure/cmake/getversion.pl | |
parent | 11a8c444875d8b7912fa07bdc3854e3adb27aa4e (diff) |
Fix Unix compilation using CMake.
Add platform detection that's compatible with the old buildsystem and its m4
autoconfigury.
Make Travis build and test using CMake as a separate target.
Remove unused function BoxGetTemporaryDirectoryName() to fixes compile using
CMake on Unix.
Diffstat (limited to 'infrastructure/cmake/getversion.pl')
-rwxr-xr-x | infrastructure/cmake/getversion.pl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/infrastructure/cmake/getversion.pl b/infrastructure/cmake/getversion.pl new file mode 100755 index 00000000..67e1f8a5 --- /dev/null +++ b/infrastructure/cmake/getversion.pl @@ -0,0 +1,13 @@ +#!perl + +use File::Basename; +$basedir = dirname($0)."/../.."; + +-d $basedir or die "Base directory $basedir does not exist!"; +chdir $basedir or die "Failed to change to base directory: $basedir: $!"; + +require "$basedir/infrastructure/BoxPlatform.pm.in"; + +print "#define BOX_VERSION \"$BoxPlatform::product_version\"\n"; + +exit 0; |