move the header files to include directory. 76/178376/1
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 9 May 2018 05:22:02 +0000 (14:22 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 9 May 2018 05:22:02 +0000 (14:22 +0900)
The exposed header files is at include directory now.

Change-Id: I2ba32fb4920e1e3dfd71befbfd8b1e885a83db19

19 files changed:
Makefile.am
configure.ac
haltests/Makefile.am
include/Makefile.am [new file with mode: 0644]
include/tbm_backend.h [moved from src/tbm_backend.h with 100% similarity]
include/tbm_bo.h [moved from src/tbm_bo.h with 100% similarity]
include/tbm_bufmgr.h [moved from src/tbm_bufmgr.h with 100% similarity]
include/tbm_bufmgr_backend.h [moved from src/tbm_bufmgr_backend.h with 100% similarity]
include/tbm_drm_helper.h [moved from src/tbm_drm_helper.h with 100% similarity]
include/tbm_error.h [moved from src/tbm_error.h with 100% similarity]
include/tbm_log.h [moved from src/tbm_log.h with 100% similarity]
include/tbm_surface.h [moved from src/tbm_surface.h with 100% similarity]
include/tbm_surface_internal.h [moved from src/tbm_surface_internal.h with 100% similarity]
include/tbm_surface_queue.h [moved from src/tbm_surface_queue.h with 100% similarity]
include/tbm_sync.h [moved from src/tbm_sync.h with 100% similarity]
include/tbm_type.h [moved from src/tbm_type.h with 100% similarity]
include/tbm_type_common.h [moved from src/tbm_type_common.h with 100% similarity]
packaging/libtbm.spec
src/Makefile.am

index d8b525d..f07dd9f 100644 (file)
@@ -1,7 +1,7 @@
 if HAVE_HALTESTS
-SUBDIRS = src haltests
+SUBDIRS = include src haltests
 else
-SUBDIRS = src
+SUBDIRS = include src
 endif
 
 pkgconfigdir = $(libdir)/pkgconfig
index fc14ad5..830dc31 100644 (file)
@@ -109,7 +109,8 @@ esac
 AM_CONDITIONAL(HOST_CPU_X86_64, test "x$HOST_CPU_X86_64" = "xyes")
 
 AC_OUTPUT([
-   src/Makefile
+       include/Makefile
+       src/Makefile
        Makefile
        libtbm.pc
        haltests/Makefile])
index 08f21a8..ae5d033 100644 (file)
@@ -14,6 +14,7 @@ tbm_haltests_SOURCES = \
 tbm_haltests_CXXFLAGS = \
        @DLOG_CFLAGS@ \
        ${CXXFLAGS} \
+       -I$(top_builddir)/include \
        -I$(top_builddir)/src \
        -I$(includedir)/gtest
 
diff --git a/include/Makefile.am b/include/Makefile.am
new file mode 100644 (file)
index 0000000..255ec9c
--- /dev/null
@@ -0,0 +1,15 @@
+libtbmincludedir=$(includedir)
+libtbminclude_HEADERS = \
+                                               tbm_type.h \
+                                               tbm_type_common.h \
+                                               tbm_log.h \
+                                               tbm_error.h \
+                                               tbm_bufmgr.h \
+                                               tbm_bo.h \
+                                               tbm_surface.h \
+                                               tbm_surface_internal.h \
+                                               tbm_surface_queue.h \
+                                               tbm_sync.h \
+                                               tbm_drm_helper.h \
+                                               tbm_bufmgr_backend.h \
+                                               tbm_backend.h
similarity index 100%
rename from src/tbm_backend.h
rename to include/tbm_backend.h
similarity index 100%
rename from src/tbm_bo.h
rename to include/tbm_bo.h
similarity index 100%
rename from src/tbm_bufmgr.h
rename to include/tbm_bufmgr.h
similarity index 100%
rename from src/tbm_error.h
rename to include/tbm_error.h
similarity index 100%
rename from src/tbm_log.h
rename to include/tbm_log.h
similarity index 100%
rename from src/tbm_surface.h
rename to include/tbm_surface.h
similarity index 100%
rename from src/tbm_sync.h
rename to include/tbm_sync.h
similarity index 100%
rename from src/tbm_type.h
rename to include/tbm_type.h
index 6ce038e..bc28567 100644 (file)
@@ -104,19 +104,7 @@ rm -f %{_unitdir_user}/basic.target.wants/tbm-drm-auth-user.path
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
 %dir %{_includedir}
-%{_includedir}/tbm_bufmgr.h
-%{_includedir}/tbm_surface.h
-%{_includedir}/tbm_surface_internal.h
-%{_includedir}/tbm_surface_queue.h
-%{_includedir}/tbm_bufmgr_backend.h
-%{_includedir}/tbm_type.h
-%{_includedir}/tbm_type_common.h
-%{_includedir}/tbm_drm_helper.h
-%{_includedir}/tbm_sync.h
-%{_includedir}/tbm_bo.h
-%{_includedir}/tbm_log.h
-%{_includedir}/tbm_error.h
-%{_includedir}/tbm_backend.h
+%{_includedir}/tbm_*.h
 %{_libdir}/libtbm.so
 %{_libdir}/pkgconfig/libtbm.pc
 
index 03d1d5b..0ab96ac 100644 (file)
@@ -4,6 +4,7 @@ AM_CFLAGS = \
        $(WARN_CFLAGS) \
        -I./ \
        -I$(top_srcdir) \
+       -I$(top_srcdir)/include \
        -I$(top_srcdir)/src \
        @LIBTBM_CFLAGS@ \
        $(CFLAGS)
@@ -43,19 +44,4 @@ nodist_libtbm_la_SOURCES =           \
 
 BUILT_SOURCES = $(nodist_libtbm_la_SOURCES)
 
-libtbmincludedir=$(includedir)
-libtbminclude_HEADERS = tbm_bufmgr.h \
-                                               tbm_bo.h \
-                                               tbm_surface.h \
-                                               tbm_bufmgr_backend.h \
-                                               tbm_type.h \
-                                               tbm_type_common.h \
-                                               tbm_surface_internal.h \
-                                               tbm_surface_queue.h \
-                                               tbm_drm_helper.h \
-                                               tbm_sync.h \
-                                               tbm_log.h \
-                                               tbm_error.h \
-                                               tbm_backend.h
-
 CLEANFILES = $(BUILT_SOURCES)