Fix build error for 64bit emulator 00/101100/1 accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_common tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/tv/20170105.024213 accepted/tizen/3.0.m2/wearable/20170105.024516 accepted/tizen/3.0/tv/20161201.032520 accepted/tizen/3.0/wearable/20161201.032539 accepted/tizen/common/20161201.135852 accepted/tizen/tv/20161202.005059 accepted/tizen/unified/20170309.035046 accepted/tizen/wearable/20161202.005119 submit/tizen/20161201.014114 submit/tizen_3.0.m2/20170104.093752 submit/tizen_3.0/20161201.013959 submit/tizen_unified/20170308.100411
authormin7.choi <min7.choi@samsung.com>
Wed, 30 Nov 2016 08:44:59 +0000 (17:44 +0900)
committermin7.choi <min7.choi@samsung.com>
Wed, 30 Nov 2016 08:44:59 +0000 (17:44 +0900)
Change-Id: Ice837634e19b19069b997fbba86f85dd17b3c9ca
Signed-off-by: min7.choi <min7.choi@samsung.com>
CMakeLists.txt
packaging/wrt-service.spec
src/node/CMakeLists.txt

index cd7404e1065424b03e82490666e366edbd005a24..d6a75a9cf28db762654ea34d44ce1ab808f05b39 100644 (file)
@@ -46,7 +46,7 @@ ENDIF()
 IF(DEVICE_ARCH STREQUAL "AARCH64")
     MESSAGE(STATUS "Device Arch: 64bit")
     ADD_DEFINITIONS("-DDEVICE_ARCH_64_BIT")
-ENDIF(DEVICE_ARCH)
+ENDIF(DEVICE_ARCH STREQUAL "AARCH64")
 
 ############################# compiler flags ##################################
 
index 9ff0c5a9bc7ec22758017db027f470e5468a846b..9ce01640bf473fa03dfe47aaa1f00bb98662b2ba 100644 (file)
@@ -1,6 +1,6 @@
 Name:       wrt-service
 Summary:    Service Model for Web Runtime
-Version:    1.0.5
+Version:    1.0.6
 Release:    1
 Group:      Development/Libraries
 License:    Apache-2.0 and BSD-2-Clause
index 680be17344fe7dae32be07d361d9636ac81deacb..9993db1fcfebdd921f7bd69b2324aa004c29e642 100644 (file)
@@ -1,7 +1,15 @@
 
 ADD_DEFINITIONS("-fPIC")
 
-SET(NODE_PLUGIN_PATH /usr/lib/node/wrt-service)
+SET(BUILD_ARCH "$ENV{RPM_ARCH}")
+
+IF(${BUILD_ARCH} MATCHES "x86_64")
+    SET(NODE_PLUGIN_PATH /usr/lib64/node/wrt-service)
+ELSEIF(${BUILD_ARCH} MATCHES "aarch64")
+    SET(NODE_PLUGIN_PATH /usr/lib64/node/wrt-service)
+ELSEIF(NOT ${BUILD_ARCH} MATCHES "x86_64")
+    SET(NODE_PLUGIN_PATH /usr/lib/node/wrt-service)
+ENDIF(${BUILD_ARCH} MATCHES "x86_64")
 
 #################################### native #####################################