Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
dfa06fca
Commit
dfa06fca
authored
Feb 07, 2017
by
Ghislain MARY
Browse files
Correct definitions of LINPHONE_PUBLIC and LINPHONE_CPPFLAGS on Windows.
parent
7dab49b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
CMakeLists.txt
CMakeLists.txt
+5
-0
cmake/LinphoneConfig.cmake.in
cmake/LinphoneConfig.cmake.in
+1
-1
include/linphone/defs.h
include/linphone/defs.h
+4
-0
No files found.
CMakeLists.txt
View file @
dfa06fca
...
...
@@ -238,6 +238,11 @@ if(MSVC)
endif
()
add_definitions
(
"-DLINPHONE_EXPORTS"
)
set
(
LINPHONE_CPPFLAGS
${
MEDIASTREAMER2_CPPFLAGS
}
)
if
(
ENABLE_STATIC
)
list
(
APPEND LINPHONE_CPPFLAGS
"-DLINPHONE_STATIC"
)
add_definitions
(
${
LINPHONE_CPPFLAGS
}
)
endif
()
if
(
ENABLE_DEBUG_LOGS
)
add_definitions
(
"-DDEBUG"
)
endif
()
...
...
cmake/LinphoneConfig.cmake.in
View file @
dfa06fca
...
...
@@ -59,7 +59,7 @@ else()
endif()
list(APPEND LINPHONE_INCLUDE_DIRS ${MEDIASTREAMER2_INCLUDE_DIRS} ${BELLESIP_INCLUDE_DIRS})
list(APPEND LINPHONE_LIBRARIES ${MEDIASTREAMER2_LIBRARIES} ${BELLESIP_LIBRARIES})
set(LINPHONE_CPPFLAGS
"${MEDIASTREAMER2
_CPPFLAGS
}"
)
set(LINPHONE_CPPFLAGS
@LINPHONE
_CPPFLAGS
@
)
set(LINPHONE_LDFLAGS "${MEDIASTREAMER2_LDFLAGS} ${BELLESIP_LDFLAGS}")
if(TUNNEL_FOUND)
list(APPEND LINPHONE_INCLUDE_DIRS ${TUNNEL_INCLUDE_DIRS})
...
...
include/linphone/defs.h
View file @
dfa06fca
...
...
@@ -29,11 +29,15 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef LINPHONE_PUBLIC
#if defined(_MSC_VER)
#ifdef LINPHONE_STATIC
#define LINPHONE_PUBLIC
#else
#ifdef LINPHONE_EXPORTS
#define LINPHONE_PUBLIC __declspec(dllexport)
#else
#define LINPHONE_PUBLIC __declspec(dllimport)
#endif
#endif
#else
#define LINPHONE_PUBLIC
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment