change the project name and add the subdirectory 72/183772/2
authorjingjin.geng <jingjin.geng@samsung.com>
Wed, 11 Jul 2018 17:59:59 +0000 (01:59 +0800)
committerjingjin.geng <jingjin.geng@samsung.com>
Wed, 11 Jul 2018 21:26:31 +0000 (05:26 +0800)
Change-Id: Ib0aa389df52223bb15b05d395ba3bb2111f9e78f

CMakeLists.txt [changed mode: 0644->0755]
client/.cproject [moved from .cproject with 100% similarity]
client/.project [moved from .project with 100% similarity]
client/.tproject [moved from .tproject with 100% similarity]
client/CMakeLists.txt [new file with mode: 0755]
client/inc/nltk_native_library.h [moved from inc/nltk_native_library.h with 100% similarity]
client/project_def.prop [moved from project_def.prop with 100% similarity]
client/src/nltk_native_library.c [moved from src/nltk_native_library.c with 100% similarity]
packaging/nlp.spec [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 5197220..28cc708
@@ -1,44 +1,3 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-SET(fw_name "nltk_native_library")
-PROJECT(${fw_name} C)
 
-INCLUDE(FindPkgConfig)
-
-EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE CMAKE_SYSTEM_VERSION)
-message("Building by ${CMAKE_SYSTEM_VERSION} machine")
-
-SET(
-    client_src  src/nltk_native_library.c
-    )
-
-#include
-set(INC_DIRS
-    inc
-    )
-message("INC_DIRS:${INC_DIRS}")
-INCLUDE_DIRECTORIES( ${INC_DIRS} )
-
-
-IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
-    SET(CMAKE_BUILD_TYPE "Debug")
-ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
-MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
-
-pkg_check_modules(pkgs REQUIRED
-        capi-base-common
-        python
-    )
-FOREACH(flag ${pkgs_CFLAGS})
-    SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror-implicit-function-declaration -Wl,--unresolved-symbols=ignore-in-shared-libs -Wl,-zdefs")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
-SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
-SET(CMAKE_C_FLAGS_RELEASE "-O2")
-
-ADD_LIBRARY(${fw_name} SHARED ${client_src})
-TARGET_LINK_LIBRARIES(${fw_name} ${pkgs_LDFLAGS} -lm)
-
-INSTALL(TARGETS ${fw_name} DESTINATION /usr/lib)
-INSTALL(FILES inc/nltk_native_library.h DESTINATION /usr/include)
\ No newline at end of file
+ADD_SUBDIRECTORY(client)
similarity index 100%
rename from .cproject
rename to client/.cproject
similarity index 100%
rename from .project
rename to client/.project
similarity index 100%
rename from .tproject
rename to client/.tproject
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..e5ebddd
--- /dev/null
@@ -0,0 +1,44 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+SET(fw_name "nlp")
+PROJECT(${fw_name} C)
+
+INCLUDE(FindPkgConfig)
+
+EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE CMAKE_SYSTEM_VERSION)
+message("Building by ${CMAKE_SYSTEM_VERSION} machine")
+
+SET(
+    client_src  src/nltk_native_library.c
+    )
+
+#include
+set(INC_DIRS
+    inc
+    )
+message("INC_DIRS:${INC_DIRS}")
+INCLUDE_DIRECTORIES( ${INC_DIRS} )
+
+
+IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
+    SET(CMAKE_BUILD_TYPE "Debug")
+ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
+MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
+
+pkg_check_modules(pkgs REQUIRED
+        capi-base-common
+        python
+    )
+FOREACH(flag ${pkgs_CFLAGS})
+    SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror-implicit-function-declaration -Wl,--unresolved-symbols=ignore-in-shared-libs -Wl,-zdefs")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
+SET(CMAKE_C_FLAGS_RELEASE "-O2")
+
+ADD_LIBRARY(${fw_name} SHARED ${client_src})
+TARGET_LINK_LIBRARIES(${fw_name} ${pkgs_LDFLAGS} -lm)
+
+INSTALL(TARGETS ${fw_name} DESTINATION /usr/lib)
+INSTALL(FILES inc/nltk_native_library.h DESTINATION /usr/include)
\ No newline at end of file
similarity index 100%
rename from project_def.prop
rename to client/project_def.prop
old mode 100644 (file)
new mode 100755 (executable)
index c357ed2..0f025ef
@@ -1,4 +1,5 @@
-Name:       nltk_native_library
+Name:       nlp
+
 Summary:    NLTK
 Version:    0.1.0
 Release:    1
@@ -10,7 +11,7 @@ BuildRequires: pkgconfig(capi-base-common)
 BuildRequires: pkgconfig(python)
 
 %description
-nltk_native_library is the native library of the NLP program.
+nlp is the native library of the NLP program.
 
 %prep
 %setup -q