Matt Tytel
b135fa3d77
Fixing wayland cmake definitions and linkage.
2024-11-05 10:24:53 -05:00
Sandy Carter
0211a63b99
Add option to use wayland on linux, enabled by default
2024-07-09 09:41:37 -04:00
Sandy Carter
c0ce1388cc
bx: Add /Zc:preprocessor
2024-06-15 19:34:35 -04:00
Jimmy Lord
d7f59648a8
ew option to allow "example-common" project to not be included in build. ( #225 )
...
* Added a new option to allow "example-common" project to not be included in build.
* Set BGFX_BUILD_EXAMPLE_COMMON as a dependent option, it will be set ON if either tools or examples are included in the build, OFF otherwise.
* cmake format
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: Sandy <bwrsandman@gmail.com >
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-18 20:42:20 -04:00
dependabot[bot]
38de01cd8a
build(deps): bump the submodules group with 2 updates ( #214 )
...
* build(deps): bump the submodules group with 2 updates
Bumps the submodules group with 2 updates: [bgfx](https://github.com/bkaradzic/bgfx ) and [bx](https://github.com/bkaradzic/bx ).
Updates `bgfx` from `e2c5b1d` to `8b6a6bd`
- [Commits](e2c5b1d3e1...8b6a6bdf0e )
Updates `bx` from `96748d9` to `198cd12`
- [Commits](96748d9a58...198cd120e4 )
---
updated-dependencies:
- dependency-name: bgfx
dependency-type: direct:production
dependency-group: submodules
- dependency-name: bx
dependency-type: direct:production
dependency-group: submodules
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update to c++17
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sandy <bwrsandman@gmail.com >
2023-08-01 14:36:58 -04:00
Sandy Carter
a1a7828ab0
Fix the way headers are installed
...
Fix missing bx headers when compiling SHARED
Fix compat and tinystl being installed in include root
Move submodule specific installs to their respecive config files.
2023-07-14 23:28:00 -04:00
Sandy Carter
4e42ca1ef5
Bump up minimum cmake version to 3.10.2
2023-02-19 09:04:28 -05:00
Sandy Carter
aaf627f912
cmake: test minimum cmake version
2023-02-19 09:04:28 -05:00
Sandy Carter
13fda4c089
install: Move install(TARGET) calls to target scope
...
CMake prior to 3.13 require to be done in the same directory they were created
2023-02-19 09:04:28 -05:00
Sandy Carter
907dc5fbd7
Export bimg_encode and bimg_decode
2023-02-11 09:44:45 -05:00
Francis Hart
fad617f66f
Ensure BX_DIR is converted to cmake style path
...
When using the BX_DIR, BIMG_DIR, and BGFX_DIR options to cmake, the
pathnames need to be converted to cmake style path. This ensures the
paths do not have mixed directory separators later on in the build,
which can cause build failures.
2023-02-11 09:44:13 -05:00
Sandy Carter
1c31493614
Set -fPIC always
2023-01-21 22:43:28 -05:00
Sandy Carter
cf8b57e65c
Fix -fPIC for static
2023-01-21 18:16:45 -05:00
Sandy Carter
034462fd2a
Add option to prefix tool names to avoid conflicts
...
For example the shaderc is used by dawn and an installation might want to
prefix bgfx's shaderc with bgfx-shaderc
2023-01-21 16:05:46 -05:00
Sandy Carter
7da3b0ed77
tools: Use dependent options
2023-01-15 22:08:41 -05:00
Sandy Carter
b89e3acb3b
bgfx: move shared
2023-01-15 22:08:41 -05:00
Sandy Carter
ba2948e099
bgfx: Move shaderc to bgfx with 3rdparties
2023-01-15 22:08:41 -05:00
Sandy Carter
10501b78f4
bgfx: Move example to bgfx and split off imgui
2023-01-15 22:08:41 -05:00
Sandy Carter
052734d07a
bgfx: Move bgfx config to its own directory
2023-01-15 22:08:41 -05:00
Sandy Carter
95a0a20a01
bimg: Add texturec and cmake macro
2023-01-14 22:10:06 -05:00
Sandy Carter
1c7ef2d48f
Add option to add user script
...
Useful for packagers like pacman and vcpkg to add custom cmake logic
instead of patching code.
2023-01-14 22:10:06 -05:00
Sandy Carter
03951e805c
bimg: Restructure bimg*.cmake to be more like bimg*.lua
2023-01-14 22:10:06 -05:00
Sandy Carter
422e7cf0f8
bimg: Move bimg config to its own directory
2023-01-14 22:10:06 -05:00
Sandy Carter
576c2b9694
bx: Add bx.test and bx.bench
2023-01-13 09:12:03 -05:00
Sandy Carter
99537daccd
bx: Add bin2c and cmake macro
2023-01-13 09:12:03 -05:00
Sandy Carter
34d0f372b1
bx: Move bx config to its own directory
2023-01-13 09:12:03 -05:00
Sandy Carter
ef8234966e
Fix warnings related to CMP0054
...
The LINUX variable is only available in 3.25+
2023-01-07 22:08:47 -05:00
Sandy Carter
c85f396456
fix formatting for all cmake files
2023-01-07 09:54:59 -05:00
Sandy Carter
471da90712
Add cmake-format config
...
Improve formatting.
Use Tabs.
Make copyright one whole comment block.
Remove spaces inside of functions and after if.
Remove excessive whitespace.
Add github action to validate formatting.
2023-01-07 09:25:21 -05:00
Sandy Carter
54aaa9103d
Add BGFX_CONFIG_DEBUG_ANNOTATION option
...
Disable for WindowsStore (UWP)
2022-12-03 13:59:05 -05:00
Hyreos
4e42ae2ae0
Prevent the script from trying to install tools that have been disabled
...
This commit fixes the issue of install failing if you disable any of the tools due to missing targets.
2022-11-20 17:23:21 -03:00
Johannes Schäufele
52feec47f5
bgfx: Add bgfx limits config options
2022-11-04 17:30:48 -04:00
e-erdal
6e23a39de6
Update submodules
2022-10-28 20:36:16 +03:00
Samuel Hellawell
5c54e5f299
Allow to specify which tools to compile
...
Signed-off-by: Samuel Hellawell <sshellawell@gmail.com >
2022-09-23 04:36:01 +01:00
Sandy Carter
2051444e25
Install bgfxToolUtils even if not building tools
...
Fixes corner case of cross compiling with tools from host platform
2022-08-24 11:56:03 -04:00
Sandy Carter
01c90714e1
export cmake function for shaderc_compiling
...
Remove unused add_shader and shaderc
Example usage:
```
shaderc_parse(
CLI
${ARGS_TYPE} ${PLATFORM_I} WERROR
"$<$<CONFIG:debug>:DEBUG>$<$<CONFIG:relwithdebinfo>:DEBUG>"
FILE ${SHADER_FILE_ABSOLUTE}
OUTPUT ${OUTPUT}
PROFILE ${PROFILE}
O "$<$<CONFIG:debug>:0>$<$<CONFIG:release>:3>$<$<CONFIG:relwithdebinfo>:3>$<$<CONFIG:minsizerel>:3>"
VARYINGDEF ${ARGS_VARYING_DEF}
INCLUDES ${BGFX_SHADER_INCLUDE_PATH}
BIN2C BIN2C ${SHADER_FILE_NAME_WE}_${PROFILE_EXT}
)
```
2022-08-22 08:57:50 -04:00
Sandy Carter
12b75cc0ad
config: Add option to turn on debug output on release
2022-08-07 08:33:26 -04:00
e-erdal
896ab5478c
Add __cplusplus for MSVC
2022-06-24 11:42:25 +03:00
Sandy Carter
d725e78f86
bgfx: Add BGFX_MULTITHREADED option
2022-04-10 22:30:07 -04:00
alexandrebeaudet
72bc1cf167
CMake more precise includes path (in order to use some functions externally)
2022-01-07 10:57:18 +01:00
e-erdal
d3260f172c
Add definition for BX_CONFIG_DEBUG
2021-10-28 11:06:14 +03:00
e-erdal
cf0d70f7d5
Add tinyexr to build files
2021-07-20 20:15:03 +03:00
e-erdal
4fbe36bace
Merge pull request #15 from mattparks/patch-1
...
Use BGFX_DIR relative path when reading version.
2021-06-26 13:28:09 +03:00
Matthew Albrecht
3441d13ca2
Include cmake/version.cmake after set(BX_DIR).
2021-06-25 16:22:40 +01:00
Matthew Albrecht
4f48f1dfa5
Only include examples when examples or tools are built.
...
tools/texturev and tools/geometryv depend on example-common.
2021-06-23 22:18:27 -05:00
loanselot1
305a4a3fa2
Remove OVR
2021-05-08 13:34:10 +03:00
Бранимир Караџић
6c15eda963
Merge pull request #2 from bwrsandman/docs
...
Docs and licences install dir
2021-04-29 11:12:33 -07:00
Sandy Carter
2bd5c200d4
install: if generating shared, only install bgfx
2021-04-29 14:10:05 -04:00
Sandy Carter
970c3d0064
cmake: turn on CMAKE_POSITION_INDEPENDENT_CODE for shared
...
This prevents an error while linking libbx.a into libbgfx.so on linux
2021-04-29 14:10:05 -04:00
Sandy Carter
7ed9623d5d
install: remove README from installed docs
...
bgfx.cmake's README is not documentation on how to use bgfx.
It is documentation on how to use bgfx.cmake to build, which is already
done once it's installed.
2021-01-30 20:23:24 -05:00