This repository has been archived by the owner on Jan 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
executable file
·74 lines (67 loc) · 2.92 KB
/
CMakeLists.txt
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Copyright (C) 2018 Intel Corporation. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
CMAKE_MINIMUM_REQUIRED( VERSION 3.4.3 )
project (AudioCommon)
# set release version for audio-common
set( AUDIO_COMMON_VERSION_MAJOR 4 )
set( AUDIO_COMMON_VERSION_MINOR 2 )
set( AUDIO_COMMON_VERSION_REVISION 0 )
set( AUDIO_COMMON_VERSION_STRING ${AUDIO_COMMON_VERSION_MAJOR}.${AUDIO_COMMON_VERSION_MINOR}.${AUDIO_COMMON_VERSION_REVISION})
# create a version.h file
set(CURRENT_VERSION_MAJOR ${AUDIO_COMMON_VERSION_MAJOR})
set(CURRENT_VERSION_MINOR ${AUDIO_COMMON_VERSION_MINOR})
set(CURRENT_VERSION_REVISION ${AUDIO_COMMON_VERSION_REVISION})
set(VERSION_H_INCLUDE_GUARD "AUDIO_COMMON_VERSION_H")
string(TOUPPER ${VERSION_H_INCLUDE_GUARD} VERSION_H_INCLUDE_GUARD)
string(REGEX REPLACE "[^a-zA-Z0-9_]" "_" VERSION_H_INCLUDE_GUARD ${VERSION_H_INCLUDE_GUARD})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/private/inc/helper/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
configure_file(${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.pc.in ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.pc @ONLY)
unset(CURRENT_VERSION_MAJOR)
unset(CURRENT_VERSION_MINOR)
unset(CURRENT_VERSION_REVISION)
unset(VERSION_H_INCLUDE_GUARD)
if( NOT CMAKE_INSTALL_LIBDIR )
# This can be overwritten externally by defining it to lib64 if required
set( CMAKE_INSTALL_LIBDIR lib )
message( "CMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_LIBDIR}" )
endif()
install(FILES ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig COMPONENT dev)
include( CMakeLists.common.txt )
# include( CMakeLists.common_internal.txt )
#
# IasCreateComponentDocumentation( audio common ${AUDIO_COMMON_VERSION_MAJOR} ${AUDIO_COMMON_VERSION_MINOR} ${AUDIO_COMMON_VERSION_REVISION}
# common
# )
#
# if( NOT IAS_DISABLE_TESTS )
# set( ADDITIONAL_RECIPE_CONTENT
# PACKAGE ias-audio-common-test-support
# PACKAGE_SUMMARY "Test support packages"
# PACKAGE_DESCRIPTION "Test support packages used by SmartXbar"
# PACKAGE_ENTITIES smartx_test_support
# PACKAGE_ENTITIES ias_shm_client_process
# PACKAGE_ENTITIES latency
# )
# endif()
#
# IasCreateBbRecipeFile(audio ias-audio-common ${AUDIO_COMMON_VERSION_MAJOR} ${AUDIO_COMMON_VERSION_MINOR} ${AUDIO_COMMON_VERSION_REVISION}
# SUMMARY "Audio - Common"
# DESCRIPTION "Common Audio components"
# GROUP "Multimedia/Audio"
# YOCTO_LAYER meta-ias-audio
# YOCTO_RECIPE_FOLDER recipes-multimedia/common
# #YOCTO_GEN_EXTRA_FLAGS SOURCE_EXPORT
# PACKAGE ias-audio-common
# PACKAGE_SUMMARY "Common Audio components"
# PACKAGE_DESCRIPTION "Common Audio components used by SmartXbar"
# PACKAGE_ENTITIES common
# PACKAGE_ENTITIES alsa_smartx_plugin
# PACKAGE_ENTITIES libasound_module_rate_smartx
# PACKAGE_BUILD_REQUIRES alsa-lib
# PACKAGE_BUILD_REQUIRES libsndfile1
# PACKAGE_BUILD_REQUIRES tbb
# PACKAGE_BUILD_REQUIRES boost
# PACKAGE_BUILD_REQUIRES dlt-daemon
# ${ADDITIONAL_RECIPE_CONTENT}
# )