Skip to content

Commit 8a74c40

Browse files
Merge pull request #602 from Devsh-Graphics-Programming/master
Pull Arek's build system improvements
2 parents f02afc8 + df935c9 commit 8a74c40

File tree

780 files changed

+259199
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

780 files changed

+259199
-16
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
[submodule "3rdparty/libjpeg-turbo"]
2525
path = 3rdparty/libjpeg-turbo
2626
url = git@github.com:Devsh-Graphics-Programming/libjpeg-turbo.git
27-
[submodule "3rdparty/bullet3"]
28-
path = 3rdparty/bullet3
29-
url = git@github.com:Devsh-Graphics-Programming/bullet3.git
3027
[submodule "3rdparty/portable-file-dialogs"]
3128
path = 3rdparty/portable-file-dialogs
3229
url = git@github.com:Devsh-Graphics-Programming/portable-file-dialogs.git

3rdparty/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ set(NBL_3RDPARTY_TARGETS
357357
SPIRV-Tools-opt
358358
Imath
359359
OpenEXRCore
360+
${NBL_BOOST_TARGETS}
360361
)
361362
if (_NBL_COMPILE_WITH_OPEN_EXR_)
362363
list(APPEND NBL_3RDPARTY_TARGETS

3rdparty/boost/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ endforeach()
3232

3333
add_subdirectory(superproject/libs/wave EXCLUDE_FROM_ALL)
3434

35+
foreach(BOOST_LIB IN LISTS NBL_BOOST_LIBS)
36+
if(TARGET boost_${BOOST_LIB})
37+
list(APPEND NBL_BOOST_TARGETS boost_${BOOST_LIB})
38+
endif()
39+
endforeach()
40+
41+
set(NBL_BOOST_TARGETS
42+
${NBL_BOOST_TARGETS}
43+
PARENT_SCOPE)
44+
3545
# Boost uses it's own tool for generating dependency list for targets, therefore we
3646
# can make sure manually added dependnecy subdirectories for a library are valid
3747
# https://www.boost.org/doc/libs/1_83_0/tools/boostdep/doc/html/index.html#boostdep.introduction.building_boostdep

3rdparty/bullet3

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
Bullet Continuous Collision Detection and Physics Library
3+
Copyright (c) 2003-2013 Erwin Coumans http://bulletphysics.org
4+
5+
This software is provided 'as-is', without any express or implied warranty.
6+
In no event will the authors be held liable for any damages arising from the use of this software.
7+
Permission is granted to anyone to use this software for any purpose,
8+
including commercial applications, and to alter it and redistribute it freely,
9+
subject to the following restrictions:
10+
11+
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
12+
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
13+
3. This notice may not be removed or altered from any source distribution.
14+
*/
15+
16+
#ifndef B3_BROADPHASE_CALLBACK_H
17+
#define B3_BROADPHASE_CALLBACK_H
18+
19+
#include "Bullet3Common/b3Vector3.h"
20+
struct b3BroadphaseProxy;
21+
22+
struct b3BroadphaseAabbCallback
23+
{
24+
virtual ~b3BroadphaseAabbCallback() {}
25+
virtual bool process(const b3BroadphaseProxy* proxy) = 0;
26+
};
27+
28+
struct b3BroadphaseRayCallback : public b3BroadphaseAabbCallback
29+
{
30+
///added some cached data to accelerate ray-AABB tests
31+
b3Vector3 m_rayDirectionInverse;
32+
unsigned int m_signs[3];
33+
b3Scalar m_lambda_max;
34+
35+
virtual ~b3BroadphaseRayCallback() {}
36+
};
37+
38+
#endif //B3_BROADPHASE_CALLBACK_H

0 commit comments

Comments
 (0)