diff --git a/cmd/BUILD.gn b/cmd/BUILD.gn index 3ceb022..fb31da5 100644 --- a/cmd/BUILD.gn +++ b/cmd/BUILD.gn @@ -126,7 +126,7 @@ ohos_rust_executable("hitrace_example_rust") { } group("hitrace_target") { - if (!is_emulator && device_company != "qemu") { + if (!is_emulator && device_company != "qemu" && support_executable_file) { deps = [ ":bytrace", ":hitrace", diff --git a/hitrace.gni b/hitrace.gni index af25b28..d44a4a9 100644 --- a/hitrace.gni +++ b/hitrace.gni @@ -9,6 +9,10 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and -# limitations under the License. +# limitations under the License. OHOS_HITRACE_DIR = get_path_info(".", "abspath") + +declare_args() { + support_executable_file = true +}