1
0
mirror of https://github.com/danog/libtgvoip.git synced 2024-11-27 04:34:42 +01:00

Use <(libs_loc) opus only on Windows.

This commit is contained in:
John Preston 2019-11-18 11:44:18 +03:00
parent 782436c567
commit 14df80f181
3 changed files with 10 additions and 5 deletions

View File

@ -10,7 +10,7 @@
#include <assert.h>
#include <math.h>
#include <algorithm>
#ifdef HAVE_CONFIG_H
#if defined HAVE_CONFIG_H || defined TGVOIP_USE_INSTALLED_OPUS
#include <opus/opus.h>
#else
#include "opus.h"

View File

@ -9,7 +9,7 @@
#include <algorithm>
#include "logging.h"
#include "VoIPServerConfig.h"
#ifdef HAVE_CONFIG_H
#if defined HAVE_CONFIG_H || defined TGVOIP_USE_INSTALLED_OPUS
#include <opus/opus.h>
#else
#include "opus.h"

View File

@ -14,11 +14,9 @@
'variables': {
'tgvoip_src_loc': '.',
'special_build_target%': '',
'linux_path_opus_include%': '<(DEPTH)/../../../Libraries/opus/include',
},
'include_dirs': [
'<(tgvoip_src_loc)/webrtc_dsp',
'<(linux_path_opus_include)',
],
'direct_dependent_settings': {
'include_dirs': [
@ -817,6 +815,9 @@
[
'"<(OS)" == "win"', {
'msbuild_toolset': 'v142',
'include_dirs': [
'<(DEPTH)/../../../Libraries/opus/include',
],
'defines': [
'NOMINMAX',
'_USING_V110_SDK71_',
@ -895,7 +896,11 @@
},
},
},
},
}, {
'defines': [
'TGVOIP_USE_INSTALLED_OPUS',
],
}
],
[
'"<(OS)" == "linux"', {