|
|
|
@ -28,7 +28,7 @@ endif()
|
|
|
|
|
add_definitions(-DOUTPUT_DBG_INFO)
|
|
|
|
|
# OUTPUT_SOCKET_DBG_INFO Depends ON OUTPUT_DBG_INFO
|
|
|
|
|
# TerminalService.cpp
|
|
|
|
|
add_definitions(-DOUTPUT_SOCKET_DBG_INFO)
|
|
|
|
|
# add_definitions(-DOUTPUT_SOCKET_DBG_INFO)
|
|
|
|
|
# OUTPUT_DB_DBG_INFO Depends ON OUTPUT_DBG_INFO
|
|
|
|
|
# Database.cpp
|
|
|
|
|
# add_definitions(-DOUTPUT_DB_DBG_INFO)
|
|
|
|
@ -95,6 +95,8 @@ set(ncnn_DIR ${NCNN_ROOT}/${ANDROID_ABI}/lib/cmake/ncnn)
|
|
|
|
|
find_package(ncnn REQUIRED)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/breakpad)
|
|
|
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libcutils/include)
|
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libutils/include)
|
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/img_utils/include)
|
|
|
|
@ -187,8 +189,6 @@ SET(YAMC_INC_DIR ${CMAKE_SOURCE_DIR})
|
|
|
|
|
SET(JSONCPP_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/jsoncpp)
|
|
|
|
|
SET(JSONCPP_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/jsoncpp/include)
|
|
|
|
|
|
|
|
|
|
SET(BREAKPAD_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/breakpad)
|
|
|
|
|
|
|
|
|
|
SET(CAMERA2_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/camera2)
|
|
|
|
|
|
|
|
|
|
SET(FREETYPE_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/freetype)
|
|
|
|
@ -196,7 +196,6 @@ SET(FREETYPE_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/freetype)
|
|
|
|
|
# SET(EVPP_SRC_DIR ${EVPP_ROOT}/evpp)
|
|
|
|
|
|
|
|
|
|
include_directories(${YAMC_INC_DIR})
|
|
|
|
|
include_directories(${BREAKPAD_ROOT} ${BREAKPAD_ROOT}/common/android/include)
|
|
|
|
|
include_directories(${ASIO_ROOT}/include)
|
|
|
|
|
|
|
|
|
|
# SET(SQLITE_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/sqlite)
|
|
|
|
@ -204,52 +203,6 @@ include_directories(${ASIO_ROOT}/include)
|
|
|
|
|
# add_library(sqlite3 STATIC ${SQLITE_SRC_DIR}/sqlite3.c )
|
|
|
|
|
# INCLUDE_DIRECTORIES(${SQLITE_INCLUDE_DIR})
|
|
|
|
|
|
|
|
|
|
file(GLOB BREAKPAD_SOURCES_COMMON
|
|
|
|
|
native-lib.cpp
|
|
|
|
|
${BREAKPAD_ROOT}/client/linux/crash_generation/crash_generation_client.cc
|
|
|
|
|
${BREAKPAD_ROOT}/client/linux/dump_writer_common/thread_info.cc
|
|
|
|
|
${BREAKPAD_ROOT}/client/linux/dump_writer_common/ucontext_reader.cc
|
|
|
|
|
${BREAKPAD_ROOT}/client/linux/handler/exception_handler.cc
|
|
|
|
|
${BREAKPAD_ROOT}/client/linux/handler/minidump_descriptor.cc
|
|
|
|
|
${BREAKPAD_ROOT}/client/linux/log/log.cc
|
|
|
|
|
${BREAKPAD_ROOT}/client/linux/microdump_writer/microdump_writer.cc
|
|
|
|
|
${BREAKPAD_ROOT}/client/linux/minidump_writer/linux_dumper.cc
|
|
|
|
|
${BREAKPAD_ROOT}/client/linux/minidump_writer/linux_ptrace_dumper.cc
|
|
|
|
|
${BREAKPAD_ROOT}/client/linux/minidump_writer/minidump_writer.cc
|
|
|
|
|
${BREAKPAD_ROOT}/client/linux/minidump_writer/pe_file.cc
|
|
|
|
|
${BREAKPAD_ROOT}/client/minidump_file_writer.cc
|
|
|
|
|
${BREAKPAD_ROOT}/common/convert_UTF.cc
|
|
|
|
|
${BREAKPAD_ROOT}/common/md5.cc
|
|
|
|
|
${BREAKPAD_ROOT}/common/string_conversion.cc
|
|
|
|
|
${BREAKPAD_ROOT}/common/linux/elfutils.cc
|
|
|
|
|
${BREAKPAD_ROOT}/common/linux/file_id.cc
|
|
|
|
|
${BREAKPAD_ROOT}/common/linux/guid_creator.cc
|
|
|
|
|
${BREAKPAD_ROOT}/common/linux/linux_libc_support.cc
|
|
|
|
|
${BREAKPAD_ROOT}/common/linux/memory_mapped_file.cc
|
|
|
|
|
${BREAKPAD_ROOT}/common/linux/safe_readlink.cc
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
file(GLOB BREAKPAD_ASM_SOURCE ${BREAKPAD_ROOT}/common/linux/breakpad_getcontext.S)
|
|
|
|
|
set_property(SOURCE ${BREAKPAD_ROOT}/common/linux/breakpad_getcontext.S PROPERTY LANGUAGE C)
|
|
|
|
|
# set_source_files_properties(${BREAKPAD_ASM_SOURCE} PROPERTIES LANGUAGE C)
|
|
|
|
|
|
|
|
|
|
# Creates and names a library, sets it as either STATIC
|
|
|
|
|
# or SHARED, and provides the relative paths to its source code.
|
|
|
|
|
# You can define multiple libraries, and CMake builds them for you.
|
|
|
|
|
# Gradle automatically packages shared libraries with your APK.
|
|
|
|
|
|
|
|
|
|
add_library( # Sets the name of the library.
|
|
|
|
|
breakpad
|
|
|
|
|
|
|
|
|
|
# Sets the library as a shared library.
|
|
|
|
|
STATIC
|
|
|
|
|
|
|
|
|
|
# Provides a relative path to your source file(s).
|
|
|
|
|
${BREAKPAD_SOURCES_COMMON}
|
|
|
|
|
${BREAKPAD_ASM_SOURCE}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${JSONCPP_INCLUDE_DIR})
|
|
|
|
|
|
|
|
|
|
SET(PUBLIC_HEADERS
|
|
|
|
@ -477,7 +430,7 @@ target_link_libraries( # Specifies the target library.
|
|
|
|
|
${PROJECT_NAME}
|
|
|
|
|
jsoncpp
|
|
|
|
|
freetype
|
|
|
|
|
# breakpad
|
|
|
|
|
breakpad
|
|
|
|
|
# Links the target library to the log library
|
|
|
|
|
# included in the NDK.
|
|
|
|
|
avcodec avfilter avformat avutil swresample swscale x264
|
|
|
|
|