|
| 1 | +// Copyright(c) 2023 Intel Corporation |
| 2 | + |
| 3 | +// Permission is hereby granted, free of charge, to any person obtaining a |
| 4 | +// copy of this software and associated documentation files(the "Software"), |
| 5 | +// to deal in the Software without restriction, including without limitation |
| 6 | +// the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 7 | +// and / or sell copies of the Software, and to permit persons to whom the |
| 8 | +// Software is furnished to do so, subject to the following conditions: |
| 9 | + |
| 10 | +// The above copyright notice and this permission notice shall be included |
| 11 | +// in all copies or substantial portions of the Software. |
| 12 | + |
| 13 | +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 14 | +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 15 | +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 16 | +// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 17 | +// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 18 | +// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 19 | +// OTHER DEALINGS IN THE SOFTWARE. |
| 20 | + |
| 21 | +mfx_cc_defaults { |
| 22 | + |
| 23 | + name: "hello-defaults", |
| 24 | + |
| 25 | + header_libs: [ |
| 26 | + "libvpl_headers", |
| 27 | + "libva_headers", |
| 28 | + ], |
| 29 | + |
| 30 | + shared_libs: [ |
| 31 | + "libvpl", |
| 32 | + "liblog", |
| 33 | + "libva", |
| 34 | + ], |
| 35 | + |
| 36 | + cflags: [ |
| 37 | + "-std=c++14", |
| 38 | + "-Wall", |
| 39 | + "-fexceptions", |
| 40 | + "-Wno-unused-variable", |
| 41 | + "-Wmissing-field-initializers", |
| 42 | + "-DLIBVA_SUPPORT", |
| 43 | + "-DLIBVA_ANDROID_SUPPORT", |
| 44 | + "-DONEVPL_EXPERIMENTAL", |
| 45 | + "-D_FORTIFY_SOURCE=2", |
| 46 | + "-Wno-error", |
| 47 | + "-Wno-missing-braces", |
| 48 | + "-Wno-missing-field-initializers", |
| 49 | + ], |
| 50 | + |
| 51 | + vendor: true, |
| 52 | +} |
| 53 | + |
| 54 | +cc_binary { |
| 55 | + |
| 56 | + name: "hello-decode", |
| 57 | + |
| 58 | + defaults: [ |
| 59 | + "hello-defaults", |
| 60 | + ], |
| 61 | + |
| 62 | + srcs: [ |
| 63 | + "api2x/hello-decode/src/hello-decode.cpp", |
| 64 | + ], |
| 65 | +} |
| 66 | + |
| 67 | +cc_binary { |
| 68 | + |
| 69 | + name: "hello-encode", |
| 70 | + |
| 71 | + defaults: [ |
| 72 | + "hello-defaults", |
| 73 | + ], |
| 74 | + |
| 75 | + srcs: [ |
| 76 | + "api2x/hello-encode/src/hello-encode.cpp", |
| 77 | + ], |
| 78 | +} |
| 79 | + |
| 80 | +cc_binary { |
| 81 | + |
| 82 | + name: "hello-vpp", |
| 83 | + |
| 84 | + defaults: [ |
| 85 | + "hello-defaults", |
| 86 | + ], |
| 87 | + |
| 88 | + srcs: [ |
| 89 | + "api2x/hello-vpp/src/hello-vpp.cpp", |
| 90 | + ], |
| 91 | +} |
| 92 | + |
0 commit comments