update build.dart to set ENABLE_TRACING based on tracing property from user defines
This commit is contained in:
@@ -88,16 +88,14 @@ void main(List<String> args) async {
|
||||
"backend",
|
||||
"filameshio",
|
||||
"viewer",
|
||||
if(targetOS != OS.iOS)
|
||||
"filamat",
|
||||
if (targetOS != OS.iOS) "filamat",
|
||||
"meshoptimizer",
|
||||
"mikktspace",
|
||||
"geometry",
|
||||
"utils",
|
||||
"filabridge",
|
||||
"gltfio_core",
|
||||
if(targetOS != OS.android && targetOS != OS.iOS)
|
||||
"gltfio",
|
||||
if (targetOS != OS.android && targetOS != OS.iOS) "gltfio",
|
||||
"filament-iblprefilter",
|
||||
"image",
|
||||
"imageio",
|
||||
@@ -129,9 +127,11 @@ void main(List<String> args) async {
|
||||
|
||||
final defines = <String, String?>{
|
||||
// uncomment this to enable (very verbose) trace logging
|
||||
// "ENABLE_TRACING": "1"
|
||||
"ENABLE_TRACING": input.userDefines["tracing"] == null ? "0" : "1"
|
||||
};
|
||||
|
||||
|
||||
|
||||
var frameworks = [];
|
||||
if (platform != "windows") {
|
||||
flags.addAll(['-std=c++17']);
|
||||
@@ -200,8 +200,8 @@ void main(List<String> args) async {
|
||||
: ['native/include', 'native/include/filament'],
|
||||
defines: platform == "windows" ? {} : defines,
|
||||
flags: [
|
||||
if (platform == "macos") '-mmacosx-version-min=13.0',
|
||||
if (platform == "ios") '-mios-version-min=13.0',
|
||||
if (targetOS == OS.macOS) ...['-mmacosx-version-min=13.0'],
|
||||
if (targetOS == OS.iOS) '-mios-version-min=13.0',
|
||||
...flags,
|
||||
...frameworks,
|
||||
if (platform != "windows") ...[
|
||||
|
||||
Reference in New Issue
Block a user