diff --git a/interfaces/inner_kits/native_cpp/BUILD.gn b/interfaces/inner_kits/native_cpp/BUILD.gn index 5097fa9c41858bddfaf635fbd5fff0e212c653f7..407cd2b5b7230140795ea81a568a5ebf8aa38b15 100644 --- a/interfaces/inner_kits/native_cpp/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/BUILD.gn @@ -53,8 +53,7 @@ if (defined(ohos_lite)) { "//third_party/bounds_checking_function:libsec_static", ] - if (defined(harmony_industry_project) && - harmony_industry_project == "MineHarmony") { + if (defined(harmony_industry_project)) { defines = [ "MINE_HARMONY_HICHAIN" ] } diff --git a/services/implementation/BUILD.gn b/services/implementation/BUILD.gn index 0ed982aefb50bd84fabcf9afc55fe2b3f270f3e1..bac087f931f11e47297b91d2f581c88044b0e3a2 100644 --- a/services/implementation/BUILD.gn +++ b/services/implementation/BUILD.gn @@ -74,8 +74,7 @@ if (defined(ohos_lite)) { "LOG_DOMAIN=0xD004110", ] - if (defined(harmony_industry_project) && - harmony_industry_project == "MineHarmony") { + if (defined(harmony_industry_project)) { defines += [ "MINE_HARMONY_HICHAIN" ] } @@ -191,8 +190,7 @@ if (defined(ohos_lite)) { "LOG_DOMAIN=0xD004110", ] - if (defined(harmony_industry_project) && - harmony_industry_project == "MineHarmony") { + if (defined(harmony_industry_project)) { defines += [ "MINE_HARMONY_HICHAIN" ] }