1# Copyright (c) 2021-2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13# 14 15config("histreamer_utils_config") { 16 include_dirs = [ 17 "//foundation/multimedia/histreamer/engine", 18 "//foundation/multimedia/histreamer/engine/foundation", 19 "//foundation/multimedia/histreamer/engine/plugin", 20 ] 21 defines = [ 22 "MEDIA_OHOS", 23 #"PROFILE", 24 ] 25} 26 27source_set("histreamer_utils") { 28 sources = [ 29 "constants.cpp", 30 "steady_clock.cpp", 31 "utils.cpp", 32 ] 33 public_configs = [ ":histreamer_utils_config" ] 34 public_deps = [ "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation" ] 35 cflags = [ 36 "-fPIC", 37 "-O2", 38 ] 39 cflags_cc = cflags 40} 41