add edge-orchestration.pc file 96/205996/1
authorwansuyoo <wansu.yoo@samsung.com>
Mon, 13 May 2019 06:05:09 +0000 (15:05 +0900)
committerwansuyoo <wansu.yoo@samsung.com>
Mon, 13 May 2019 06:06:09 +0000 (15:06 +0900)
Change-Id: I1172eb3a23bbdcf6a6b55a0f821b47e9f878304d
Signed-off-by: wansuyoo <wansu.yoo@samsung.com>
Makefile
edge-orchestration.pc.in [new file with mode: 0644]
packaging/edge-orchestration.spec

index be0b678..802d5d2 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -133,7 +133,9 @@ install:
 
        install -d $(DESTDIR)/usr/lib
        install -d $(DESTDIR)/usr/include/$(PKG_NAME)
+       install -d $(DESTDIR)/usr/lib/pkgconfig
        install -m 644 $(LIBPKG_LIB_DIR)/$(LIBPKG_LIB_FILE) $(DESTDIR)/usr/lib
+       install -m 644 $(BASE_DIR)/$(PKG_NAME).pc.in $(DESTDIR)/usr/lib/pkgconfig/$(PKG_NAME).pc
        install -m 644 $(LIBPKG_INC_DIR)/$(LIBPKG_HEADER_FILE) $(DESTDIR)/usr/include/$(PKG_NAME)
 
        install -d $(DESTDIR)/etc/$(PKG_NAME)/$(LIBSCORE_SAMPLE)
diff --git a/edge-orchestration.pc.in b/edge-orchestration.pc.in
new file mode 100644 (file)
index 0000000..c660fe2
--- /dev/null
@@ -0,0 +1,9 @@
+# Package Information for pkg-config
+libdir=/usr/lib
+includedir=/usr/include/edge-orchestration
+
+Name: Edge Framework Library
+Description: Library to use edge-orchestration service
+Version: 0.0.1
+Libs: -L${libdir} -lorchestration-client
+Cflags: -I${includedir}
\ No newline at end of file
index 87aaadf..5b6f57f 100755 (executable)
@@ -120,4 +120,5 @@ ln -sf %{_sysconfdir}/%{name}/myscoring/libmyscoring.so.1.0.1 %{_sysconfdir}/%{n
 %manifest lib%{name}.manifest
 %license LICENSE.Apache-2.0
 %attr(755,system_fw,system_fw)%{_libdir}/liborchestration-client.so
+%attr(755,system_fw,system_fw)%{_libdir}/pkgconfig/%{name}.pc
 %attr(755,system_fw,system_fw)%{_includedir}/%{name}/orchestration_client.h
\ No newline at end of file