diff --git a/config/tizen/chip-gn/platform/BUILD.gn b/config/tizen/chip-gn/platform/BUILD.gn index bea16af373fd15..7d2f25e9bcf4f8 100644 --- a/config/tizen/chip-gn/platform/BUILD.gn +++ b/config/tizen/chip-gn/platform/BUILD.gn @@ -20,10 +20,6 @@ import("${chip_root}/config/tizen/chip-gn/args.gni") import("${build_root}/config/linux/pkg_config.gni") import("${chip_root}/src/platform/device.gni") -pkg_config("capi-system-peripheral-io") { - packages = [ "capi-system-peripheral-io" ] -} - pkg_config("dlog") { packages = [ "dlog" ] } @@ -73,7 +69,6 @@ source_set("tizen") { ":glib", ":capi-appfw-preference", ":capi-system-info", - ":capi-system-peripheral-io", ] if (chip_mdns == "platform") { diff --git a/examples/lighting-app/tizen/BUILD.gn b/examples/lighting-app/tizen/BUILD.gn index c0a38e7c113a91..66b508b74e3284 100644 --- a/examples/lighting-app/tizen/BUILD.gn +++ b/examples/lighting-app/tizen/BUILD.gn @@ -12,9 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +import("//build_overrides/build.gni") import("//build_overrides/chip.gni") import("//build_overrides/tizen.gni") +import("${build_root}/config/linux/pkg_config.gni") import("${chip_root}/build/chip/linux/gdbus_library.gni") import("${chip_root}/build/chip/tools.gni") import("${chip_root}/src/app/common_flags.gni") @@ -27,6 +29,10 @@ declare_args() { chip_examples_enable_ui = false } +pkg_config("capi-system-peripheral-io") { + packages = [ "capi-system-peripheral-io" ] +} + gdbus_library("chip-lighting-app-manager") { sources = [ "xml/DBusLightApp.xml" ] interface_prefix = "org.tizen.matter.example.lighting" @@ -50,6 +56,8 @@ executable("chip-lighting-app") { "${chip_root}/src/lib", ] + configs += [ ":capi-system-peripheral-io" ] + if (chip_examples_enable_ui) { sources += [ "src/DBusInterface.cpp" ] deps += [ ":chip-lighting-app-manager" ]