Skip to content

Commit 5fe327a

Browse files
committed
Fix python dependencies
1 parent c47cfb1 commit 5fe327a

9 files changed

Lines changed: 26 additions & 9 deletions

modules/yup_python/bindings/yup_YupAi_bindings.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121

2222
#pragma once
2323

24+
#if ! YUP_MODULE_AVAILABLE_yup_ai
25+
#error This binding file requires adding the yup_ai module in the project
26+
#else
2427
#include <yup_ai/yup_ai.h>
28+
#endif
2529

2630
#include "yup_YupCore_bindings.h"
2731

modules/yup_python/modules/yup_YupMain_module.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424

2525
#include "../bindings/yup_YupCore_bindings.h"
2626

27-
#if YUP_MODULE_AVAILABLE_yup_ai
28-
#include "../bindings/yup_YupAi_bindings.h"
29-
#endif
30-
3127
#if YUP_MODULE_AVAILABLE_yup_events
3228
#include "../bindings/yup_YupEvents_bindings.h"
3329
#endif
@@ -44,6 +40,10 @@
4440
#include "../bindings/yup_YupGui_bindings.h"
4541
#endif
4642

43+
#if YUP_MODULE_AVAILABLE_yup_ai
44+
#include "../bindings/yup_YupAi_bindings.h"
45+
#endif
46+
4747
#if YUP_MODULE_AVAILABLE_yup_audio_basics
4848
#include "../bindings/yup_YupAudioBasics_bindings.h"
4949
#endif
@@ -96,6 +96,10 @@ PYBIND11_MODULE (YUP_PYTHON_MODULE_NAME, m)
9696
yup::Bindings::registerYupGuiBindings (m);
9797
#endif
9898

99+
#if YUP_MODULE_AVAILABLE_yup_ai
100+
yup::Bindings::registerYupAiBindings (m);
101+
#endif
102+
99103
#if YUP_MODULE_AVAILABLE_yup_audio_basics
100104
yup::Bindings::registerYupAudioBasicsBindings (m);
101105
#endif
@@ -109,8 +113,4 @@ PYBIND11_MODULE (YUP_PYTHON_MODULE_NAME, m)
109113
yup::Bindings::registerYupAudioProcessorsBindings (m);
110114
#endif
111115
*/
112-
113-
#if YUP_MODULE_AVAILABLE_yup_ai
114-
yup::Bindings::registerYupAiBindings (m);
115-
#endif
116116
}

modules/yup_python/yup_python_ai.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@
1919
==============================================================================
2020
*/
2121

22+
#if YUP_MODULE_AVAILABLE_yup_ai
2223
#include "bindings/yup_YupAi_bindings.cpp"
24+
#endif

modules/yup_python/yup_python_audio_basics.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@
1919
==============================================================================
2020
*/
2121

22+
#if YUP_MODULE_AVAILABLE_yup_audio_basics
2223
#include "bindings/yup_YupAudioBasics_bindings.cpp"
24+
#endif

modules/yup_python/yup_python_data_model.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@
1919
==============================================================================
2020
*/
2121

22+
#if YUP_MODULE_AVAILABLE_yup_data_model
2223
#include "bindings/yup_YupDataModel_bindings.cpp"
24+
#endif

modules/yup_python/yup_python_events.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@
1919
==============================================================================
2020
*/
2121

22+
#if YUP_MODULE_AVAILABLE_yup_events
2223
#include "bindings/yup_YupEvents_bindings.cpp"
24+
#endif

modules/yup_python/yup_python_graphics.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@
1919
==============================================================================
2020
*/
2121

22+
#if YUP_MODULE_AVAILABLE_yup_graphics
2223
#include "bindings/yup_YupGraphics_bindings.cpp"
24+
#endif

modules/yup_python/yup_python_gui.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@
1919
==============================================================================
2020
*/
2121

22+
#if YUP_MODULE_AVAILABLE_yup_gui
2223
#include "bindings/yup_YupGui_bindings.cpp"
24+
#endif

python/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ yup_standalone_app (
5858
yup::yup_events
5959
yup::yup_graphics
6060
yup::yup_gui
61-
yup::yup_python)
61+
yup::yup_python
62+
yup::yup_ai)
6263

6364
set_target_properties (${target_name} PROPERTIES
6465
CXX_EXTENSIONS OFF

0 commit comments

Comments
 (0)