From 506addcce16f40be6ae1a6608524bdae4e1c0cbb Mon Sep 17 00:00:00 2001 From: WANGTAO Date: Tue, 27 Aug 2024 21:55:57 +0800 Subject: [PATCH] =?UTF-8?q?user=E7=89=88=E6=9C=AC=E6=89=93=E5=8D=B0=5F=5FF?= =?UTF-8?q?UNCTION=5F=5F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: WANGTAO --- BUILD.gn | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index c606fe8a..cfda80c0 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -52,10 +52,6 @@ hash_sources = [ "src/common/transfer.h", ] -if (build_variant == "user") { - cflags = [ "-DIS_RELEASE_VERSION" ] -} - if (hdc_support_uart) { hdc_common_sources += [ "src/common/uart.cpp" ] } @@ -117,6 +113,9 @@ template("hdcd_source_set") { if (is_emulator) { defines += [ "HDC_EMULATOR" ] } + if (build_variant == "user") { + defines += [ "IS_RELEASE_VERSION" ] + } configs = [ ":hdc_config" ] deps = []