Reduce binary size to use hidden visibility 42/111642/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 23 Jan 2017 07:47:04 +0000 (16:47 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 24 Jan 2017 00:36:30 +0000 (16:36 -0800)
32bit armv7l size : 101KB -> 61KB

Change-Id: I7dfaeea5a7558291e0ad43db33abdf3f0d26b34b
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
packaging/libscl-core.spec
src/sclcore.h

index fec3207..58fb073 100644 (file)
@@ -51,8 +51,8 @@ A devel package of libscl-core library that helps developing S/W Keyboard
 
 
 %build
-export CFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror"
-export CXXFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror"
+export CFLAGS+=" -fvisibility=hidden -DTIZEN_DEBUG_ENABLE -Werror"
+export CXXFLAGS+="  -fvisibility=hidden -fvisibility-inlines-hidden -DTIZEN_DEBUG_ENABLE -Werror"
 export FFLAGS+=" -DTIZEN_DEBUG_ENABLE"
 
 rm -rf CMakeFiles
index a3fbdd6..b462324 100644 (file)
@@ -39,7 +39,7 @@ class CSCLCoreImpl;
  *
  * This class implements all functions for working as a soft-based keyboard
  */
-class CSCLCore
+class EXAPI CSCLCore
 {
 public:
     CSCLCore(ISCLCoreEventCallback *callback);