mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-17 06:30:41 +08:00

[mpi_test.c] Eliminate warning git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@184 6e48237b-75ef-9749-8fc9-41990f28c85a
38 lines
755 B
CMake
38 lines
755 B
CMake
# vim: syntax=cmake
|
|
if(${ANDROID})
|
|
set(OS_DIR android)
|
|
elseif(${UNIX})
|
|
set(OS_DIR linux)
|
|
elseif(${WIN32})
|
|
set(OS_DIR window)
|
|
else()
|
|
message(SEND_ERROR "Can not found platform definistion ${CMAKE_SYSTEM}")
|
|
endif()
|
|
|
|
include_directories(.)
|
|
|
|
add_library(osal STATIC
|
|
mpp_allocator.cpp
|
|
mpp_thread.cpp
|
|
mpp_common.cpp
|
|
mpp_time.cpp
|
|
mpp_list.cpp
|
|
mpp_mem.cpp
|
|
mpp_env.cpp
|
|
mpp_log.cpp
|
|
${OS_DIR}/os_allocator.c
|
|
${OS_DIR}/os_mem.c
|
|
${OS_DIR}/os_env.c
|
|
${OS_DIR}/os_log.c
|
|
)
|
|
|
|
if(ANDROID)
|
|
# in Android pthread is in libc, also need liblog
|
|
target_link_libraries(osal log stdc++ m c )
|
|
else()
|
|
target_link_libraries(osal pthread)
|
|
endif()
|
|
|
|
set_target_properties(osal PROPERTIES FOLDER "osal")
|
|
add_subdirectory(test)
|