Repo Merge: Moving resource API down a directory
[platform/upstream/iotivity.git] / resource / csdk / ocsocket / README.txt
1 To compile for Linux or Android, include ocsocket.c and ocsocket.h in your project.
2 Look at the Makefile in ocsocket/test/linux and ocsocket/test/android for compilation dependencies.
3
4 To compile for Arduino, include ocsocket_arduino.cpp and ocsocket.h in your project.
5 Look at the Makefile in ocsocket/test/arduino for compilation dependencies.
6 Note: Patch your Arduino Ethernet Shield library for arduino/libraries/Ethernet/utility/socket.cpp
7 to fix recvfrom issue.
8
9 Place appropriate local.properties file under test directory to provide local path for \
10 GTEST libraries/header files to compile tests.
11
12 #Sample local.properties file
13 GTEST_LINUX_DIR = /home/gtest-1.7.0
14 GTEST_ANDROID_DIR = /home/gtest-1.7.0_android/gtest-1.7.0
15 ARDUINO_DIR = /usr/share/arduino