Commit Graph

25 Commits

Author SHA1 Message Date
Krzysztof Bogacki 61b13cc278 build: Use separate version string and build hash
Version string is used in logging for information purposes, but pipelines blobs and libraries use uint64_t–based commit hash. Using fixed–size integer silences warnings about string length and makes storing build info a little more efficient.

The hash is obtained separately from version string and is shifted to the left by 4 bits if the working tree is dirty.

Signed-off-by: Krzysztof Bogacki <krzysztof.bogacki@leancode.pl>
2020-10-28 10:40:28 +01:00
Joshua Ashton a991fddeeb build: Use `-fvisibility=hidden` and define exports manually
When building natively on Windows we use dllexport/dllimport for vkd3d/vkd3d_utils public exports.

When building natively on Linux we simply make those visibility default.

Nothing changes for standalone here.

Closes #152

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-10-05 10:44:10 +02:00
Hans-Kristian Arntzen 250357c998 debug: Integrate automatic RenderDoc capturing.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-09-22 12:44:18 +02:00
Hans-Kristian Arntzen 254868a326 vkd3d: Enable pthread workaround paths on MinGW as well.
winpthread is slow on Wine as it requires OS synchronization
objects, which involves wineserver.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-09-08 09:34:26 +02:00
Hans-Kristian Arntzen 27d14cb0ce meson: Target native d3d12 for Windows test binaries.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-07-30 17:34:10 +02:00
Jens Peters a0314c4818 build: Use the commit hash as fallback for the built-in version.
The `git describe` command currently fails because there are no tags yet. Using `--always` lets it fall back to the current commit hash.

Signed-off-by: Jens Peters <jp7677@gmail.com>
2020-07-30 15:03:06 +02:00
telans 8b6b3f6942 meson: install headers, pkgconfig files 2020-07-22 12:00:06 +02:00
Hans-Kristian Arntzen 99b0421c32 meson: Add build option to enable a profiled build.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-07-20 16:39:15 +02:00
Hans-Kristian Arntzen 812634b68b meson: Disable the more useless warnings in MSVC.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-07-16 13:00:09 +02:00
Andrew Eikum 88e6c9b2dd build: Drop minimum meson version
Debian 10 ships 0.49.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
2020-07-15 00:21:52 +02:00
Joshua Ashton 3fe9dd765d build: Add stdcall alias/fixup when building x86
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-07 17:44:36 +02:00
Joshua Ashton cbebf9efed build: Add build_standalone_d3d12 option
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-06 19:29:30 +02:00
Joshua Ashton 3d52186d3a build: Move build options to top of build script
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-06 19:29:30 +02:00
Joshua Ashton 10f7ec4ad8 build: Remove -Wno-incompatible-pointer-types
No longer needed with recent changes.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-03 16:56:10 +02:00
Joshua Ashton ec8d14593a build: Remove -Wno-discarded-qualifiers
We don't need this since the CONST_VTBL change.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-03 16:56:10 +02:00
Joshua Ashton b05371432a build: Remove -Wno-missing-braces
Hold over from autotools that isn't needed.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-03 16:56:10 +02:00
Joshua Ashton a16afe7c8f build: Fix checking for xcb when building on Windows
It goes unused anyway, just makes Meson fail.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-01 21:31:43 +02:00
Joshua Ashton bc7aebda33 build: Disable some extra warnings
Disabled -Wmissing-field-initializers and -Wunused-parameters

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-29 17:04:56 +02:00
Joshua Ashton 25b40c5df8 build: Only find demo dependencies if building demos
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-29 17:04:56 +02:00
Joshua Ashton 02fca8d190 build: Enable warning level 2
Equivelant to -Wall -Wextra

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-27 15:23:09 +02:00
Joshua Ashton 079a012dab build: Use Meson subproject for dxil-spirv
Removes the CMake dependency and solves some trouble building.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-26 18:33:27 +02:00
Joshua Ashton e46b0ef3c5 build: Add glsl generator to root build script
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-25 13:51:06 +02:00
Joshua Ashton c79d073b67 build: Fallback to vkd3d-utils if no d3d12 lib is present
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-24 15:27:22 +02:00
Joshua Ashton 161dc007c5 build: Link dxil-spirv statically
Don't need to link this in any fancy way

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-24 15:18:56 +02:00
Joshua Ashton 8c216e637c build: Add Meson build system
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-23 14:55:43 +02:00