mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-09 19:24:18 +01:00
Fix Android port: (#1933)
- Switch to clang from gcc - std::timed_mutex is not available on the latest NDK, revert to the POSIX implementation for now - eabi is deprecated, switch to eabi-v7a by default
This commit is contained in:
parent
6e6e3952e2
commit
6bfbd5db96
@ -22,7 +22,7 @@
|
||||
#include "Poco/Exception.h"
|
||||
#include "Poco/ScopedLock.h"
|
||||
|
||||
#if (POCO_OS == POCO_OS_CYGWIN)
|
||||
#if (POCO_OS == POCO_OS_CYGWIN || defined(POCO_ANDROID))
|
||||
#include "Poco/Mutex_POSIX.h"
|
||||
#else
|
||||
#include "Poco/Mutex_STD.h"
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
|
||||
#include "Poco/Mutex.h"
|
||||
#if (POCO_OS == POCO_OS_CYGWIN)
|
||||
#if (POCO_OS == POCO_OS_CYGWIN || defined(POCO_ANDROID))
|
||||
#include "Mutex_POSIX.cpp"
|
||||
#else
|
||||
#include "Mutex_STD.cpp"
|
||||
|
@ -8,7 +8,7 @@
|
||||
# General Settings
|
||||
#
|
||||
LINKMODE ?= STATIC
|
||||
ANDROID_ABI ?= armeabi
|
||||
ANDROID_ABI ?= armeabi-v7a
|
||||
POCO_TARGET_OSNAME = Android
|
||||
POCO_TARGET_OSARCH = $(ANDROID_ABI)
|
||||
|
||||
@ -33,8 +33,8 @@ endif
|
||||
#
|
||||
# Define Tools
|
||||
#
|
||||
CC = $(TOOL)-gcc
|
||||
CXX = $(TOOL)-g++
|
||||
CC = $(TOOL)-clang
|
||||
CXX = $(TOOL)-clang++
|
||||
LINK = $(CXX)
|
||||
STRIP = $(TOOL)-strip
|
||||
LIB = $(TOOL)-ar -cr
|
||||
@ -56,10 +56,10 @@ SHAREDLIBLINKEXT = .so
|
||||
#
|
||||
# Compiler and Linker Flags
|
||||
#
|
||||
CFLAGS = $(ARCHFLAGS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64
|
||||
CFLAGS = $(ARCHFLAGS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing
|
||||
CFLAGS32 =
|
||||
CFLAGS64 =
|
||||
CXXFLAGS = $(ARCHFLAGS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions
|
||||
CXXFLAGS = $(ARCHFLAGS) -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -frtti -fexceptions
|
||||
CXXFLAGS32 =
|
||||
CXXFLAGS64 =
|
||||
LINKFLAGS +=
|
||||
@ -87,3 +87,9 @@ SYSFLAGS = -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SH
|
||||
# System Specific Libraries
|
||||
#
|
||||
SYSLIBS = -lstdc++ -lsupc++
|
||||
|
||||
#
|
||||
# C++11/14 detection
|
||||
#
|
||||
include $(POCO_BASE)/build/script/cpp11-clang
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user