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:
parent
782436c567
commit
14df80f181
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"', {
|
||||
|
Loading…
Reference in New Issue
Block a user