Home | History | Annotate | Download | only in decpp
      1 # cmake file for drawElements C++ base library
      2 
      3 if (NOT DE_DEFS)
      4 	message(FATAL_ERROR "Include Defs.cmake")
      5 endif ()
      6 
      7 set(DECPP_SRCS
      8 	deAppendList.cpp
      9 	deAppendList.hpp
     10 	deArrayBuffer.cpp
     11 	deArrayBuffer.hpp
     12 	deArrayUtil.cpp
     13 	deArrayUtil.hpp
     14 	deBlockBuffer.cpp
     15 	deBlockBuffer.hpp
     16 	deCommandLine.cpp
     17 	deCommandLine.hpp
     18 	deDefs.cpp
     19 	deDefs.hpp
     20 	deDirectoryIterator.cpp
     21 	deDirectoryIterator.hpp
     22 	deDynamicLibrary.cpp
     23 	deDynamicLibrary.hpp
     24 	deFilePath.cpp
     25 	deFilePath.hpp
     26 	deMemPool.cpp
     27 	deMemPool.hpp
     28 	deMeta.cpp
     29 	deMeta.hpp
     30 	deMutex.cpp
     31 	deMutex.hpp
     32 	dePoolArray.cpp
     33 	dePoolArray.hpp
     34 	dePoolString.cpp
     35 	dePoolString.hpp
     36 	deProcess.cpp
     37 	deProcess.hpp
     38 	deRandom.cpp
     39 	deRandom.hpp
     40 	deRingBuffer.cpp
     41 	deRingBuffer.hpp
     42 	deSemaphore.cpp
     43 	deSemaphore.hpp
     44 	deSTLUtil.hpp
     45 	deSTLUtil.cpp
     46 	deSharedPtr.cpp
     47 	deSharedPtr.hpp
     48 	deSocket.cpp
     49 	deSocket.hpp
     50 	deStringUtil.cpp
     51 	deStringUtil.hpp
     52 	deThread.cpp
     53 	deThread.hpp
     54 	deThreadLocal.cpp
     55 	deThreadLocal.hpp
     56 	deThreadSafeRingBuffer.cpp
     57 	deThreadSafeRingBuffer.hpp
     58 	deUniquePtr.cpp
     59 	deUniquePtr.hpp
     60 	deSpinBarrier.cpp
     61 	deSpinBarrier.hpp
     62 	deSha1.cpp
     63 	deSha1.hpp
     64 	)
     65 
     66 set(DECPP_LIBS
     67 	debase
     68 	depool
     69 	dethread
     70 	deutil
     71 	)
     72 
     73 # \note [pyry] Somewhat kludgy that toolchain file doesn't set it, but there is no easy way
     74 if (DE_OS_IS_ANDROID)
     75 	if (DEFINED ANDROID_CXX_LIBRARY)
     76 		set(DECPP_LIBS ${DECPP_LIBS} ${ANDROID_CXX_LIBRARY})
     77 	else ()
     78 		message(STATUS "Warning: ANDROID_CXX_LIBRARY not defined")
     79 	endif ()
     80 endif ()
     81 
     82 add_library(decpp STATIC ${DECPP_SRCS})
     83 target_link_libraries(decpp ${DECPP_LIBS})
     84