utils: add additional guards for Tracing (#8810)
The addition JobSystem.cpp allows for defining FILAMENT_TRACING_ENABLED across targets. Addingin FILAMENT_TRACING_ENABLED to the #if in Tracing.h prevents perfetto from being included.
This commit is contained in:
@@ -30,9 +30,9 @@
|
||||
# define FILAMENT_APPLE_SYSTRACE 0
|
||||
#endif
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
#if defined(__ANDROID__) && FILAMENT_TRACING_ENABLED
|
||||
# include <private/utils/android/Tracing.h>
|
||||
#elif defined(__APPLE__) && FILAMENT_APPLE_SYSTRACE
|
||||
#elif defined(__APPLE__) && FILAMENT_APPLE_SYSTRACE && FILAMENT_TRACING_ENABLED
|
||||
# include <private/utils/darwin/Tracing.h>
|
||||
#else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user