Fix building on Android NDK.

This commit is contained in:
2019-08-18 17:22:01 +01:00
parent 87ac9c5946
commit 2f8e417d00
3 changed files with 13 additions and 2 deletions

3
IO.cpp
View File

@@ -20,8 +20,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "Streams.hpp"
#include <iostream>
#include <unistd.h>
//#include <sys/ioctl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -31,6 +29,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "u2f.hpp"
#include "Macro.hpp"
#include "U2FDevice.hpp"
#include <array>
using namespace std;

View File

@@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.4.1)
set(CMAKE_C_FLAGS, "${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Werror")
add_library(cppb64 STATIC base64.cpp)

View File

@@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.4.1)
set(CMAKE_C_FLAGS, "${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Werror")
add_library(uECC STATIC uECC.c)