Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
bctoolbox
Commits
2af1acae
Commit
2af1acae
authored
Feb 04, 2016
by
johan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve CMakeList to have a config.h
parent
963d1ed9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
CMakeLists.txt
CMakeLists.txt
+5
-0
config.h.cmake
config.h.cmake
+32
-0
src/crypto_polarssl.c
src/crypto_polarssl.c
+5
-0
No files found.
CMakeLists.txt
View file @
2af1acae
...
...
@@ -84,6 +84,7 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bctoolbox.pc DESTINATION lib/pkgconfig
include_directories
(
include
src
${
CMAKE_CURRENT_BINARY_DIR
}
)
if
(
MBEDTLS_FOUND
)
...
...
@@ -98,6 +99,10 @@ if(MSVC)
include_directories
(
${
MSVC_INCLUDE_DIR
}
)
endif
()
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/config.h.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h
)
set_source_files_properties
(
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h PROPERTIES GENERATED ON
)
add_definitions
(
"-DHAVE_CONFIG_H"
)
set
(
STRICT_OPTIONS_CPP
)
set
(
STRICT_OPTIONS_C
)
if
(
NOT MSVC
)
...
...
config.h.cmake
0 → 100644
View file @
2af1acae
/***************************************************************************
* config.h.cmake
*
Copyright
(
C
)
2014 Belledonne Communications, Grenoble France
*
****************************************************************************
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License,
or
(
at your option
)
any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
****************************************************************************/
#cmakedefine PACKAGE "@PACKAGE@"
#cmakedefine PACKAGE_NAME "@PACKAGE_NAME@"
#cmakedefine PACKAGE_VERSION "@PACKAGE_VERSION@"
#cmakedefine PACKAGE_STRING "@PACKAGE_STRING@"
#cmakedefine PACKAGE_TARNAME "@PACKAGE_TARNAME@"
#cmakedefine PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
#cmakedefine PACKAGE_URL "@PACKAGE_URL@"
#cmakedefine VERSION "@VERSION@"
#cmakedefine HAVE_DTLS_SRTP
src/crypto_polarssl.c
View file @
2af1acae
...
...
@@ -17,6 +17,11 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <stdlib.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "utils.h"
#include <bctoolbox/crypto.h>
...
...
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