From 4585ca549793aad41f594837ebeaded56e692001 Mon Sep 17 00:00:00 2001 From: Joel Winarske Date: Tue, 14 Aug 2018 13:14:47 -0700 Subject: [PATCH] Add Eclipse Debug, and Android Studio generation examples --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e459100..6086f94 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,10 @@ subsystem (aka SocketCAN): * Place your build folder anywhere, passing CMake the path. Relative or absolute. * Some examples using a build folder under the source tree root: * Android : cmake -DCMAKE_TOOLCHAIN_FILE=/home/joel/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=android-21 -DANDROID_ABI=armeabi-v7a .. && make +* Android Studio : Copy repo under your project's "app" folder, add "add_subdirectory(can-utils)" to your CMakeLists.txt file after "cmake_minimum_required()". Generating project will build Debug/Release for all supported EABI types. ie. arm64-v8a, armeabi-v7a, x86, x86_64. * Raspberry Pi : cmake -DCMAKE_TOOLCHAIN_FILE=/home/joel/rpi/tools/build/cmake/rpi.toolchain.cmake .. && make * Linux : cmake -GNinja .. && ninja -* Linux : CC=clang cmake .. && make +* Linux Eclipse Photon (Debug) : CC=clang cmake -G"Eclipse CDT4 - Unix Makefiles" ../can-utils/ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_ECLIPSE_VERSION=4.8.0 * To override the base installation directory use: CMAKE_INSTALL_PREFIX * ie. CC=clang cmake -DCMAKE_INSTALL_PREFIX=./out .. && make install