Browse Source

Merge sync

JNI-98
Hussein Kasem 5 years ago
parent
commit
848eca268e
  1. 19
      Makefile.conf
  2. 2
      src/foundation_pEp_jniadapter__Blob.cc
  3. 1
      src/gen_cpp_Message.ysl2
  4. 1
      src/jniutils.cc
  5. 1
      src/jniutils.hh

19
Makefile.conf

@ -16,23 +16,16 @@ BUILD_FOR:=$(shell uname)
######### C and C++ #########
CXXFLAGS+=-g -O0
CXXFLAGS+=-g -O0 -std=c++11
LDFLAGS+=-shared $(ENGINE_LIB) $(AD_LIB)
LDLIBS=-lstdc++ -lpEpEngine -lpEpAdapter
######### C++ #########
ifeq ($(BUILD_FOR),Linux)
CXX=g++ -std=c++11
else ifeq ($(BUILD_FOR),Darwin)
CXX=clang -std=c++11
endif
ifeq ($(BUILD_FOR),Linux)
CXXFLAGS+=-fdiagnostics-color=always -fpermissive -fPIC -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(AD_INC) $(ENGINE_INC)
else ifeq ($(BUILD_FOR),Darwin)
CXXFLAGS+=-fcolor-diagnostics -fpermissive -fPIC -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/darwin $(AD_INC) $(ENGINE_INC)
CXXFLAGS+=-fpermissive -fPIC -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(shell uname) $(AD_INC) $(ENGINE_INC)
ifneq (,$(findstring g++,$(CXX)))
CXXFLAGS+=-fdiagnostics-color=always
else ifneq (,$(findstring clang,$(CXX)))
CXXFLAGS+=-fcolor-diagnostics
endif
# DEV ENV PATHS & CFG

2
src/foundation_pEp_jniadapter__Blob.cc

@ -1,3 +1,5 @@
#include <cassert>
#include <pEp/platform.h>
#include <pEp/sync_codec.h>
#include <pEp/distribution_codec.h>
#include <pEp/pEpLog.hh>

1
src/gen_cpp_Message.ysl2

@ -12,6 +12,7 @@ tstylesheet {
document("foundation_pEp_jniadapter_{$jname}.cc", "text") {
||
#include <cassert>
#include <pEp/mime.h>
#include <pEp/pEpLog.hh>
#include "jniutils.hh"

1
src/jniutils.cc

@ -1,3 +1,4 @@
#include <cassert>
#include "jniutils.hh"
#include <pEp/pEpLog.hh>
#ifndef __LP64__

1
src/jniutils.hh

@ -1,6 +1,7 @@
#pragma once
#include <unordered_map>
#include <thread>
#include <mutex>
#include <jni.h>
#include <pEp/stringpair.h>
#include <pEp/identity_list.h>

Loading…
Cancel
Save