Skip to content

Commit

Permalink
Updating script for android.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Chen committed Aug 1, 2013
1 parent 169fc71 commit 482c279
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 517 deletions.
34 changes: 17 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ add_library(websockets STATIC
${HDR_PRIVATE}
${HDR_PUBLIC}
${SOURCES})
#add_library(websockets_shared SHARED
# ${HDR_PRIVATE}
# ${HDR_PUBLIC}
# ${SOURCES})
add_library(websockets_shared SHARED
${HDR_PRIVATE}
${HDR_PUBLIC}
${SOURCES})

if (WIN32)
# On Windows libs have the same file ending (.lib)
Expand All @@ -347,19 +347,19 @@ endif(WIN32)

# We want the shared lib to be named "libwebsockets"
# not "libwebsocket_shared".
# set_target_properties(websockets_shared
# PROPERTIES
# OUTPUT_NAME websockets)
set_target_properties(websockets_shared
PROPERTIES
OUTPUT_NAME websockets)

# Set the so version of the lib.
# Equivalent to LDFLAGS=-version-info x:x:x
# if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
# foreach(lib websockets websockets_shared)
# set_target_properties(${lib}
# PROPERTIES
# SOVERSION ${SOVERSION})
# endforeach()
# endif()
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
foreach(lib websockets websockets_shared)
set_target_properties(${lib}
PROPERTIES
SOVERSION ${SOVERSION})
endforeach()
endif()

set(LIB_LIST)

Expand Down Expand Up @@ -407,7 +407,7 @@ if (NOT WITHOUT_EXTENSIONS)
endif()

# Make sure ZLib is compiled before the libs.
foreach (lib websockets)
foreach (lib websockets websockets_shared)
add_dependencies(${lib} ZLIB)
endforeach()

Expand Down Expand Up @@ -461,7 +461,7 @@ if (UNIX)
endif()

# Setup the linking for all libs.
foreach (lib websockets)
foreach (lib websockets websockets_shared)
target_link_libraries(${lib} ${LIB_LIST})
endforeach()

Expand Down Expand Up @@ -726,7 +726,7 @@ install(FILES ${HDR_PUBLIC}
set(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "Header files")

# Install libs.
install(TARGETS websockets
install(TARGETS websockets websockets_shared
LIBRARY DESTINATION lib${LIB_SUFFIX}
ARCHIVE DESTINATION lib${LIB_SUFFIX}
COMPONENT libraries)
Expand Down
228 changes: 0 additions & 228 deletions android/scripts/ABI_compat_generator.py

This file was deleted.

90 changes: 0 additions & 90 deletions android/scripts/build.cmd

This file was deleted.

Loading

0 comments on commit 482c279

Please sign in to comment.