• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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
14import("//build/ohos.gni")
15
16ohos_prebuilt_shared_library("libamvdec") {
17  source = "lib/libamvdec.so"
18  install_images = [ chipset_base_dir ]
19  part_name = "device_unionpi_tiger"
20}
21
22ohos_executable("ionplayer") {
23  install_enable = true
24  sources = [ "samples/ionplayer.c" ]
25  install_images = [ chipset_base_dir ]
26
27  cflags = [
28    "-fno-rtti",
29    "-fno-exceptions",
30    "-fno-common",
31    "-fstack-protector-strong",
32    "-Wshadow",
33    "-FPIC",
34    "-FS",
35    "-O2",
36    "-D_FORTIFY_SOURCE=2",
37    "-fvisibility=hidden",
38    "-Wno-error",
39    "-Wextra",
40    "-Wformat=2",
41    "-Wfloat-equal",
42    "-Wdate-time",
43  ]
44
45  deps = [
46    ":libamvdec",
47    "../libamcodec:libamcodec",
48  ]
49
50  include_dirs = [
51    "include",
52    "../libamcodec/include",
53  ]
54
55  part_name = "device_unionpi_tiger"
56}
57