mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-29 18:37:41 +08:00
Build ok by Android Studio.
This commit is contained in:
parent
bef360157d
commit
a2de0a120c
@ -98,6 +98,8 @@
|
|||||||
<sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/.cxx" />
|
<excludeFolder url="file://$MODULE_DIR$/.cxx" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/.externalNativeBuild" />
|
<excludeFolder url="file://$MODULE_DIR$/.externalNativeBuild" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
||||||
|
@ -58,7 +58,7 @@ android {
|
|||||||
cmake {
|
cmake {
|
||||||
//arguments '-DANDROID_PLATFORM=android-14','-DANDROID_TOOLCHAIN=clang'
|
//arguments '-DANDROID_PLATFORM=android-14','-DANDROID_TOOLCHAIN=clang'
|
||||||
//targets 'acl_static', 'protocol_static', 'acl_cpp_static', 'fiber_static', 'fiber_cpp_static' // for ndk12b, ndk16b
|
//targets 'acl_static', 'protocol_static', 'acl_cpp_static', 'fiber_static', 'fiber_cpp_static' // for ndk12b, ndk16b
|
||||||
targets 'acl_static', 'protocol_static', 'acl_cpp_static', 'fiber_static', 'fiber_cpp_static', 'acl', 'protocol', 'acl_cpp', 'fiber', 'fiber_cpp' // for ndk20 or above
|
targets 'acl_static', 'protocol_static', 'acl_cpp_static', 'fiber_static', 'fiber_cpp_static', 'acl_shared', 'protocol_shared', 'acl_cpp_shared', 'fiber_shared', 'fiber_cpp_shared' // for ndk20 or above
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -191,10 +191,12 @@ endif()
|
|||||||
|
|
||||||
link_directories(${lib_output_path})
|
link_directories(${lib_output_path})
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
install(TARGETS acl_static
|
install(TARGETS acl_static
|
||||||
EXPORT acl_static-targets
|
EXPORT acl_static-targets
|
||||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (CMAKE_INSTALL_INCLUDEDIR MATCHES "")
|
if (CMAKE_INSTALL_INCLUDEDIR MATCHES "")
|
||||||
set(CMAKE_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
|
set(CMAKE_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
|
||||||
@ -229,11 +231,13 @@ if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR AND ACL_BUILD_SHARED
|
|||||||
SET_TARGET_PROPERTIES(acl_shared PROPERTIES OUTPUT_NAME "acl")
|
SET_TARGET_PROPERTIES(acl_shared PROPERTIES OUTPUT_NAME "acl")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
install(TARGETS acl_shared
|
install(TARGETS acl_shared
|
||||||
EXPORT acl_shared-targets
|
EXPORT acl_shared-targets
|
||||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
@ -253,10 +253,12 @@ endif()
|
|||||||
|
|
||||||
link_directories(${lib_output_path})
|
link_directories(${lib_output_path})
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
install(TARGETS acl_cpp_static
|
install(TARGETS acl_cpp_static
|
||||||
EXPORT acl_cpp_static-targets
|
EXPORT acl_cpp_static-targets
|
||||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (CMAKE_INSTALL_INCLUDEDIR MATCHES "")
|
if (CMAKE_INSTALL_INCLUDEDIR MATCHES "")
|
||||||
set(CMAKE_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
|
set(CMAKE_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
|
||||||
@ -302,10 +304,12 @@ if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR AND ACL_BUILD_SHARED
|
|||||||
|
|
||||||
SET_TARGET_PROPERTIES(acl_cpp_shared PROPERTIES OUTPUT_NAME "acl_cpp")
|
SET_TARGET_PROPERTIES(acl_cpp_shared PROPERTIES OUTPUT_NAME "acl_cpp")
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
install(TARGETS acl_cpp_shared
|
install(TARGETS acl_cpp_shared
|
||||||
EXPORT acl_cpp_shared-targets
|
EXPORT acl_cpp_shared-targets
|
||||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
@ -153,10 +153,12 @@ endif()
|
|||||||
|
|
||||||
link_directories(${lib_output_path})
|
link_directories(${lib_output_path})
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
install(TARGETS fiber_static
|
install(TARGETS fiber_static
|
||||||
EXPORT fiber_static-targets
|
EXPORT fiber_static-targets
|
||||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (CMAKE_INSTALL_INCLUDEDIR MATCHES "")
|
if (CMAKE_INSTALL_INCLUDEDIR MATCHES "")
|
||||||
set(CMAKE_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
|
set(CMAKE_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
|
||||||
@ -183,10 +185,12 @@ if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR AND ACL_BUILD_SHARED
|
|||||||
add_library(fiber_shared SHARED ${lib_src})
|
add_library(fiber_shared SHARED ${lib_src})
|
||||||
SET_TARGET_PROPERTIES(fiber_shared PROPERTIES OUTPUT_NAME "fiber")
|
SET_TARGET_PROPERTIES(fiber_shared PROPERTIES OUTPUT_NAME "fiber")
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
install(TARGETS fiber_shared
|
install(TARGETS fiber_shared
|
||||||
EXPORT fiber_shared-targets
|
EXPORT fiber_shared-targets
|
||||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
@ -139,10 +139,12 @@ endif()
|
|||||||
|
|
||||||
link_directories(${lib_output_path})
|
link_directories(${lib_output_path})
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
install(TARGETS fiber_cpp_static
|
install(TARGETS fiber_cpp_static
|
||||||
EXPORT fiber_cpp_static-targets
|
EXPORT fiber_cpp_static-targets
|
||||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (CMAKE_INSTALL_INCLUDEDIR MATCHES "")
|
if (CMAKE_INSTALL_INCLUDEDIR MATCHES "")
|
||||||
set(CMAKE_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
|
set(CMAKE_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
|
||||||
@ -184,10 +186,12 @@ if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR AND ACL_BUILD_SHARED
|
|||||||
|
|
||||||
SET_TARGET_PROPERTIES(fiber_cpp_shared PROPERTIES OUTPUT_NAME "fiber_cpp")
|
SET_TARGET_PROPERTIES(fiber_cpp_shared PROPERTIES OUTPUT_NAME "fiber_cpp")
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
install(TARGETS fiber_cpp_shared
|
install(TARGETS fiber_cpp_shared
|
||||||
EXPORT fiber_cpp_shared-targets
|
EXPORT fiber_cpp_shared-targets
|
||||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
@ -139,10 +139,12 @@ endif()
|
|||||||
|
|
||||||
link_directories(${lib_output_path})
|
link_directories(${lib_output_path})
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
install(TARGETS protocol_static
|
install(TARGETS protocol_static
|
||||||
EXPORT protocol_static-targets
|
EXPORT protocol_static-targets
|
||||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (CMAKE_INSTALL_INCLUDEDIR MATCHES "")
|
if (CMAKE_INSTALL_INCLUDEDIR MATCHES "")
|
||||||
set(CMAKE_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
|
set(CMAKE_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
|
||||||
@ -181,10 +183,12 @@ if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR AND ACL_BUILD_SHARED
|
|||||||
|
|
||||||
SET_TARGET_PROPERTIES(protocol_shared PROPERTIES OUTPUT_NAME "protocol")
|
SET_TARGET_PROPERTIES(protocol_shared PROPERTIES OUTPUT_NAME "protocol")
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
install(TARGETS protocol_shared
|
install(TARGETS protocol_shared
|
||||||
EXPORT protocol_shared-targets
|
EXPORT protocol_shared-targets
|
||||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user