File: CMakeLists.txt

package info (click to toggle)
kodi-inputstream-adaptive 2.6.14%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,036 kB
  • sloc: cpp: 53,019; ansic: 492; makefile: 10
file content (38 lines) | stat: -rw-r--r-- 739 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required(VERSION 3.5)
project(libbento4)

include_directories (
	Core/
	Crypto/
	MetaData/
	Codecs/
)

add_definitions(-DAP4_PLATFORM_BYTE_ORDER=AP4_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN)

if(WIN32)
	set(BENTOSYS "System/Win32/*.cpp")
	message(STATUS "BENTOSYS: WIN32")
else()
	set(BENTOSYS "System/Posix/*.cpp")
	message(STATUS "BENTOSYS: POSIX")
endif()

if(DEFINED BENTOUSESTCFS)
    set(BENTOFS "System/StdC/*.cpp")
else()
    set(BENTOFS "System/Kodi/*.cpp")
endif()

FILE(GLOB SOURCEFILES
    Codecs/*.cpp
    Core/*.cpp
    System/*.cpp
    ${BENTOSYS}
    Crypto/*.cpp
    ${BENTOFS}
    MetaData/*.cpp
)

add_library (bento4 STATIC ${SOURCEFILES})
set_target_properties(bento4 PROPERTIES POSITION_INDEPENDENT_CODE True)