From: Hyotaek Shim Date: Mon, 7 Jun 2021 05:12:29 +0000 (+0900) Subject: Initialization for platform/hal/backend/emulator/device-emulator X-Git-Tag: submit/tizen/20210607.051743^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f31d3dc48dfa36fcc79ce0ce1ccba7f744a36c34;p=platform%2Fhal%2Fbackend%2Femulator%2Fdevice-emulator.git Initialization for platform/hal/backend/emulator/device-emulator Change-Id: I61fd690091d4ad2cf323329d14992c34543605e2 Signed-off-by: Hyotaek Shim --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 00365bd..1ac7295 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) -PROJECT(device-manager-plugin-emul C) +PROJECT(hal-backend-device-emulator C) IF("${CMAKE_BUILD_TYPE}" STREQUAL "") SET(CMAKE_BUILD_TYPE "Release") diff --git a/device-manager-plugin-emul.manifest b/device-manager-plugin-emul.manifest deleted file mode 100644 index 97e8c31..0000000 --- a/device-manager-plugin-emul.manifest +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packaging/device-manager-plugin-emul.spec b/packaging/device-manager-plugin-emul.spec deleted file mode 100644 index 319a5d2..0000000 --- a/packaging/device-manager-plugin-emul.spec +++ /dev/null @@ -1,46 +0,0 @@ -Name: device-manager-plugin-emul -Summary: Device manager plugin for emulator -Version: 0.0.21 -Release: 1 -Group: SDK/Other -License: Apache-2.0 -Source0: %{name}-%{version}.tar.gz -Requires(post): /sbin/ldconfig -Requires(postun): /sbin/ldconfig -BuildRequires: cmake -BuildRequires: pkgconfig(glib-2.0) -BuildRequires: pkgconfig(gio-2.0) -BuildRequires: pkgconfig(hal-api-common) -BuildRequires: pkgconfig(hal-api-device) -BuildRequires: pkgconfig(libsyscommon) -BuildRequires: pkgconfig(capi-system-info) -BuildRequires: pkgconfig(hal-backend-device-common) - -%description -Emulator plugin for emulator. - -%prep -%setup -q - -%build -export LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--as-needed" -%cmake . -DENABLE_DLOG=on \ - -DHAL_LIB_DIR=%{_hal_libdir} \ - -DHAL_LICENSE_DIR=%{_hal_licensedir} - -make - -%install -%make_install - -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - -%files -%{_hal_licensedir}/%{name}/LICENSE -%defattr(-,root,root,-) -%manifest device-manager-plugin-emul.manifest -%{_hal_libdir}/*.so* diff --git a/packaging/hal-backend-device-emulator.manifest b/packaging/hal-backend-device-emulator.manifest new file mode 100644 index 0000000..97e8c31 --- /dev/null +++ b/packaging/hal-backend-device-emulator.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/hal-backend-device-emulator.spec b/packaging/hal-backend-device-emulator.spec new file mode 100644 index 0000000..da45f13 --- /dev/null +++ b/packaging/hal-backend-device-emulator.spec @@ -0,0 +1,48 @@ +Name: hal-backend-device-emulator +Summary: Device HAL backend drivers for emulator targets +Version: 0.0.21 +Release: 1 +Group: SDK/Other +License: Apache-2.0 +Source0: %{name}-%{version}.tar.gz +Source1: %{name}.manifest +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +BuildRequires: cmake +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(hal-api-common) +BuildRequires: pkgconfig(hal-api-device) +BuildRequires: pkgconfig(libsyscommon) +BuildRequires: pkgconfig(capi-system-info) +BuildRequires: pkgconfig(hal-backend-device-common) + +%description +Device HAL backend drivers for emulator targets + +%prep +%setup -q +cp %{SOURCE1} . + +%build +export LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--as-needed" +%cmake . -DENABLE_DLOG=on \ + -DHAL_LIB_DIR=%{_hal_libdir} \ + -DHAL_LICENSE_DIR=%{_hal_licensedir} + +make + +%install +%make_install + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%{_hal_licensedir}/%{name}/LICENSE +%defattr(-,root,root,-) +%manifest %{name}.manifest +%{_hal_libdir}/*.so*