| Index: cmake/CMakeLists.txt
|
| diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
|
| index ed8ec67d8da3b428ae51ec7e264d32b4247cb717..ef0856a3ea338b9942af1edf460d5885ca2a1c58 100644
|
| --- a/cmake/CMakeLists.txt
|
| +++ b/cmake/CMakeLists.txt
|
| @@ -302,9 +302,21 @@ configure_file ("SkUserConfig.h.in" "${userconfig_directory}/SkUserConfig.h")
|
|
|
| # skia_link_arguments.txt
|
| set (link_arguments ${CMAKE_BINARY_DIR}/skia_link_arguments.txt)
|
| -file (WRITE ${link_arguments} "-L${CMAKE_BINARY_DIR}\n")
|
| -file (APPEND ${link_arguments} "-lskia\n")
|
| -file (APPEND ${link_arguments} "-Wl,-rpath,${CMAKE_BINARY_DIR}\n")
|
| +if (BUILD_SHARED_LIBS)
|
| + file (WRITE ${link_arguments} "-L${CMAKE_BINARY_DIR}\n")
|
| + file (APPEND ${link_arguments} "-lskia\n")
|
| + file (APPEND ${link_arguments} "-Wl,-rpath,${CMAKE_BINARY_DIR}\n")
|
| +else()
|
| + file (WRITE ${link_arguments} "${CMAKE_BINARY_DIR}/libskia.a\n")
|
| + foreach (lib ${libs})
|
| + if (EXISTS ${lib})
|
| + get_filename_component(lib_path ${lib} ABSOLUTE)
|
| + file (APPEND ${link_arguments} "${lib_path}\n")
|
| + else()
|
| + file (APPEND ${link_arguments} "-l${lib}\n")
|
| + endif()
|
| + endforeach()
|
| +endif()
|
|
|
| # skia_compile_arguments.txt
|
| set (compile_arguments ${CMAKE_BINARY_DIR}/skia_compile_arguments.txt)
|
|
|