-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b0665b
commit 8bd25b1
Showing
35 changed files
with
1,211 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
# ============================================================================== | ||
# Copyright (c) 2016-present Allan CORNET (Nelson) | ||
# ============================================================================== | ||
# This file is part of the Nelson. | ||
# ============================================================================= | ||
# LICENCE_BLOCK_BEGIN | ||
# This program is free software; you can redistribute it | ||
# and/or modify it under the terms of the GNU Lesser General Public License as | ||
# published by the Free Software Foundation; either version 2.1 of the License, | ||
# or (at your option) any later version. | ||
# | ||
# Alternatively, 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 Lesser General Public License for more | ||
# details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License along | ||
# with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# LICENCE_BLOCK_END | ||
# ============================================================================== | ||
set(module_name statistics) | ||
set(module_library_name nlsStatistics) | ||
set(module_library_builtin_name ${module_library_name}_builtin) | ||
# ============================================================================== | ||
include_directories( | ||
${EIGEN3_INCLUDE_DIR} | ||
${Boost_INCLUDE_DIRS} | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../linear_algebra/src/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../characters_encoding/src/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../types/src/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../error_manager/src/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../stream_manager/src/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../elementary_functions/src/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../i18n/src/include) | ||
# ============================================================================== | ||
file(GLOB STATISTICS_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/cpp/*.cpp") | ||
# ============================================================================== | ||
add_library(${module_library_name} SHARED ${STATISTICS_SRC}) | ||
# ============================================================================== | ||
target_link_libraries( | ||
${module_library_name} | ||
nlsError_manager | ||
nlsApi_nelson | ||
nlsTypes | ||
nlsI18n | ||
nlsElementary_functions | ||
${BLAS_LIBRARIES} | ||
${LAPACK_LIBRARIES} | ||
${LAPACKE_LIBRARIES} | ||
${MAC_LAPACKE_LIBRARY}) | ||
# ============================================================================== | ||
set_target_properties( | ||
${module_library_name} | ||
PROPERTIES | ||
VERSION | ||
${Nelson_VERSION_MAJOR}.${Nelson_VERSION_MINOR}.${Nelson_VERSION_MAINTENANCE} | ||
SOVERSION ${Nelson_VERSION_MAJOR}) | ||
# ============================================================================== | ||
file(GLOB STATISTICS_BUILTIN | ||
"${CMAKE_CURRENT_SOURCE_DIR}/builtin/cpp/*.cpp") | ||
# ============================================================================== | ||
include_directories( | ||
${CMAKE_CURRENT_SOURCE_DIR}/builtin/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../interpreter/src/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../overload/src/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../api_nelson/src/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../i18n/src/include) | ||
# ============================================================================== | ||
add_library(${module_library_builtin_name} SHARED ${STATISTICS_BUILTIN}) | ||
# ============================================================================== | ||
target_link_libraries( | ||
${module_library_builtin_name} | ||
${module_library_name} | ||
nlsApi_nelson | ||
nlsError_manager | ||
nlsInterpreter | ||
nlsOverload | ||
nlsTypes | ||
nlsI18n) | ||
# ============================================================================== | ||
set_target_properties( | ||
${module_library_builtin_name} | ||
PROPERTIES | ||
VERSION | ||
${Nelson_VERSION_MAJOR}.${Nelson_VERSION_MINOR}.${Nelson_VERSION_MAINTENANCE} | ||
SOVERSION ${Nelson_VERSION_MAJOR}) | ||
# ============================================================================== | ||
install(TARGETS ${module_library_name} LIBRARY DESTINATION ${LIBRARY_OUTPUT}) | ||
install(TARGETS ${module_library_builtin_name} | ||
LIBRARY DESTINATION ${LIBRARY_OUTPUT}) | ||
install(FILES ${CMAKE_SOURCE_DIR}/modules/${module_name}/etc/startup.nls | ||
DESTINATION ${ROOT_OUTPUT}/modules/${module_name}/etc) | ||
install(FILES ${CMAKE_SOURCE_DIR}/modules/${module_name}/etc/finish.nls | ||
DESTINATION ${ROOT_OUTPUT}/modules/${module_name}/etc) | ||
install(FILES ${CMAKE_SOURCE_DIR}/modules/${module_name}/loader.nls | ||
DESTINATION ${ROOT_OUTPUT}/modules/${module_name}) | ||
install( | ||
DIRECTORY ${CMAKE_SOURCE_DIR}/modules/${module_name}/functions | ||
DESTINATION ${ROOT_OUTPUT}/modules/${module_name} | ||
FILES_MATCHING | ||
PATTERN "*.nlf") | ||
install( | ||
DIRECTORY ${CMAKE_SOURCE_DIR}/modules/${module_name}/help | ||
DESTINATION ${ROOT_OUTPUT}/modules/${module_name} | ||
FILES_MATCHING | ||
PATTERN "*.qch" | ||
PATTERN "xml" EXCLUDE | ||
PATTERN "md" EXCLUDE) | ||
install( | ||
DIRECTORY ${CMAKE_SOURCE_DIR}/modules/${module_name}/tests | ||
DESTINATION ${ROOT_OUTPUT}/modules/${module_name} | ||
FILES_MATCHING | ||
PATTERN "*.nls") | ||
# ============================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
//============================================================================= | ||
// Copyright (c) 2016-present Allan CORNET (Nelson) | ||
//============================================================================= | ||
// This file is part of the Nelson. | ||
//============================================================================= | ||
// LICENCE_BLOCK_BEGIN | ||
// This program is free software; you can redistribute it and/or | ||
// modify it under the terms of the GNU Lesser General Public | ||
// License as published by the Free Software Foundation; either | ||
// version 2.1 of the License, or (at your option) any later version. | ||
// | ||
// Alternatively, 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 Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public | ||
// License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
// LICENCE_BLOCK_END | ||
//============================================================================= | ||
#include "nlsConfig.h" | ||
#include <Windows.h> | ||
//============================================================================= | ||
#pragma comment(lib, CAT_3_STRINGS("boost_system-", BOOST_TARGET, ".lib")) | ||
#pragma comment(lib, CAT_3_STRINGS("boost_filesystem-", BOOST_TARGET, ".lib")) | ||
//============================================================================= | ||
int WINAPI | ||
DllMain(HINSTANCE hInstance, DWORD reason, PVOID pvReserved) | ||
{ | ||
switch (reason) { | ||
case DLL_PROCESS_ATTACH: | ||
break; | ||
case DLL_PROCESS_DETACH: | ||
break; | ||
case DLL_THREAD_ATTACH: | ||
break; | ||
case DLL_THREAD_DETACH: | ||
break; | ||
} | ||
return 1; | ||
} | ||
//============================================================================= |
Oops, something went wrong.