添加是否编译可执行二进制判断

Signed-off-by: lutao <lutao31@huawei.com>
This commit is contained in:
lutao 2023-10-30 17:30:51 +08:00
parent 97506d3717
commit c3da6a7fb6
2 changed files with 6 additions and 2 deletions

View File

@ -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",

View File

@ -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
}