forked from TEN-framework/ten-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.gni
More file actions
45 lines (38 loc) · 1.73 KB
/
Copy pathoptions.gni
File metadata and controls
45 lines (38 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# Copyright © 2025 Agora
# This file is part of TEN Framework, an open source project.
# Licensed under the Apache License, Version 2.0, with certain conditions.
# Refer to the "LICENSE" file in the root directory for more information.
#
import("//.gnfiles/build/options.gni")
import("//build/ten_rust/options.gni")
declare_args() {
# The TEN runtime has its own memory check/track mechanism, which can be used
# in conjunction with ASAN (AddressSanitizer).
ten_enable_memory_check = true
# The 'ten_rust' crate depends on the 'ten_utils' (C codes) static library.
# The C compiler supports AddressSanitizer on Linux x86, however the rustc
# does not. Therefore, the 'ten_rust' crate is disabled on x86.
#
# TODO(Liu): Add a gn target to compile the 'ten_utils' static without asan on
# x86.
ten_enable_ten_rust = !(enable_sanitizer && target_cpu == "x86")
# After building a Rust/Cargo project, clean the project using `cargo clean`.
# This is mainly to reduce disk usage in environments with limited disk space,
# such as CI.
ten_enable_cargo_clean = false
ten_enable_tests_cleanup = true
# Rust's incremental build requires additional disk space, so this option
# allows it to be disabled in CI environments.
ten_enable_rust_incremental_build = true
# Force ten_rust to use release mode regardless of the global is_debug setting.
# When set to true, ten_rust will always be compiled in release mode.
# This configuration is mainly used to reduce the disk space consumption when
# building rust codes in CI environments.
ten_rust_force_release = false
}
declare_args() {
# TEN manager is written in Rust, so enabling the TEN manager requires
# enabling Rust first.
ten_enable_ten_manager = ten_enable_ten_rust
}