Skip to content

Commit

Permalink
fix checkbox saving
Browse files Browse the repository at this point in the history
  • Loading branch information
mjoppich committed Feb 5, 2019
1 parent 8b80990 commit fa811d6
Show file tree
Hide file tree
Showing 105 changed files with 27,668 additions and 21,273 deletions.
56 changes: 32 additions & 24 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if (APPLE)
set(Qt5_DIR "/Users/markus/Qt/5.12.0/clang_64/")
#set(ENV{OPENSSL_ROOT_DIR} "/usr/local/opt/openssl")
#set(ENV{LUA_DIR} "/usr/local/opt/lua")


set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_INSTALL_RPATH "./")

Expand All @@ -104,7 +104,7 @@ if (WIN32)
message(STATUS "IN MINGW")
endif()

set(Qt5_DIR "C:/Qt/5.11.1/mingw53_32")
set(Qt5_DIR "D:/Qt/5.12.0/mingw73_64")
set(ENV{OPENSSL_ROOT_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/extlib/openssl/")
set(OPENSSL_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/extlib/openssl/")
message(STATUS $ENV{OPENSSL_ROOT_DIR})
Expand Down Expand Up @@ -139,14 +139,14 @@ endforeach()
#set(CMAKE_FRAMEWORK_PATH "${Qt5_DIR}/lib/cmake")

# Basic information about project
project(bioGUI VERSION 1.0)
project(bioGUI VERSION 1.1)

# Set PROJECT_VERSION_PATCH and PROJECT_VERSION_TWEAK to 0 if not present, needed by add_project_meta
fix_project_version()

# Set additional project information
set(COMPANY "LFE Bioinformatik")
set(COPYRIGHT "Copyright (c) 2016 Markus Joppich. All rights reserved.")
set(COPYRIGHT "Copyright (c) 2019 Markus Joppich. All rights reserved.")
set(IDENTIFIER "de.lmu.ifi.bio.mjoppich")


Expand Down Expand Up @@ -174,11 +174,10 @@ message(STATUS " *** Lua DLL dir: ${LUA_DLL_DIR}")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".so .a")

# Search OpenSSL
set(OPENSSL_USE_STATIC_LIBS True)
set(OPENSSL_USE_STATIC_LIBS TRUE)
find_package(OpenSSL)

if( OPENSSL_FOUND )

include_directories(${OPENSSL_INCLUDE_DIRS})

message(STATUS "Using OpenSSL ${OPENSSL_VERSION}")
Expand Down Expand Up @@ -245,7 +244,7 @@ if (APPLE)
LIST(APPEND META_FILES_TO_INCLUDE "${BIOGUI_NETOWRK_INI}")

set(BIOGUI_INSTALL_TEMPLATES_GUI "${CMAKE_CURRENT_SOURCE_DIR}/templates/WSL_install.gui")
set_source_files_properties(${BIOGUI_INSTALL_TEMPLATES_GUI} PROPERTIES MACOSX_PACKAGE_LOCATION MacOS/templates/)
set_source_files_properties(${BIOGUI_INSTALL_TEMPLATES_GUI} PROPERTIES MACOSX_PACKAGE_LOCATION MacOS/templates/)
set_source_files_properties(${BIOGUI_INSTALL_TEMPLATES_GUI} PROPERTIES MACOSX_PACKAGE_LOCATION MacOS/install_templates/)

LIST(APPEND META_FILES_TO_INCLUDE "${BIOGUI_INSTALL_TEMPLATES_GUI}")
Expand All @@ -262,21 +261,19 @@ add_executable(${PROJECT_NAME} ${OS_BUNDLE} # Expands to WIN32 or MACOS_BUNDLE d
)


ADD_LIBRARY(mylibeay STATIC IMPORTED)
SET_TARGET_PROPERTIES(mylibeay PROPERTIES IMPORTED_LOCATION "${OPENSSL_SSL_LIBRARY}")
ADD_LIBRARY(openssl_crypto STATIC IMPORTED)
SET_TARGET_PROPERTIES(openssl_crypto PROPERTIES IMPORTED_LOCATION "${OPENSSL_CRYPTO_LIBRARY}")

ADD_LIBRARY(myssleay STATIC IMPORTED)
SET_TARGET_PROPERTIES(myssleay PROPERTIES IMPORTED_LOCATION "${OPENSSL_CRYPTO_LIBRARY}")
ADD_LIBRARY(openssl_ssl STATIC IMPORTED)
SET_TARGET_PROPERTIES(openssl_ssl PROPERTIES IMPORTED_LOCATION "${OPENSSL_SSL_LIBRARY}")

#ADD_LIBRARY(lualib STATIC IMPORTED IMPORTED_LOCATION "${LUA_LIBRARY}")
#SET_TARGET_PROPERTIES(lualib PROPERTIES IMPORTED_LOCATION "${LUA_LIBRARY}")
LINK_DIRECTORIES( ${LINK_DIRECTORIES} "${CMAKE_CURRENT_SOURCE_DIR}/extlib/ssl/")

ADD_LIBRARY(lualib STATIC IMPORTED)
SET_TARGET_PROPERTIES(lualib PROPERTIES IMPORTED_LOCATION "${LUA_LIBRARY}")

target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} mylibeay myssleay m lualib ${CMAKE_DL_LIBS})

TARGET_LINK_LIBRARIES(${PROJECT_NAME} openssl_crypto openssl_ssl lualib ${CMAKE_DL_LIBS} )

qt5_use_modules(${PROJECT_NAME} Core Gui Widgets Network Xml XmlPatterns)
install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX} )
Expand Down Expand Up @@ -464,8 +461,8 @@ if (NOT APPLE)
install(FILES $<$<CONFIG:Debug>:${Qt5_XmlLocation_Debug}>$<$<NOT:$<CONFIG:Debug>>:${Qt5_XmlLocation}> DESTINATION ${CMAKE_INSTALL_PREFIX} RENAME ${Qt5_XmlSOName})
install(FILES $<$<CONFIG:Debug>:${Qt5_XmlPatternsLocation_Debug}>$<$<NOT:$<CONFIG:Debug>>:${Qt5_XmlPatternsLocation}> DESTINATION ${CMAKE_INSTALL_PREFIX} RENAME ${Qt5_XmlPatternsSOName})
install(FILES $<$<CONFIG:Debug>:${Qt5_NetworkLocation_Debug}>$<$<NOT:$<CONFIG:Debug>>:${Qt5_NetworkLocation}> DESTINATION ${CMAKE_INSTALL_PREFIX} RENAME ${Qt5_NetworkSOName})
install(FILES $<$<CONFIG:Debug>:${Qt5_GuiLocation_Debug}>$<$<NOT:$<CONFIG:Debug>>:${Qt5_GuiLocation}> DESTINATION ${CMAKE_INSTALL_PREFIX} RENAME ${Qt5_GuiSOName})

install(FILES $<$<CONFIG:Debug>:${Qt5_GuiLocation_Debug}>$<$<NOT:$<CONFIG:Debug>>:${Qt5_GuiLocation}> DESTINATION ${CMAKE_INSTALL_PREFIX} RENAME ${Qt5_GuiSOName})

get_filename_component(QT5GUI_DIR ${Qt5_GuiLocation} DIRECTORY)
install(DIRECTORY ${QT5GUI_DIR}/../plugins/platforms/ DESTINATION platforms)
endif()
Expand All @@ -476,22 +473,33 @@ endif()

get_filename_component(MINGW_BUILD_BIN ${CMAKE_CXX_COMPILER} PATH)

add_custom_command( TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${MINGW_BUILD_BIN}/libgcc_s_dw2-1.dll ${PROJECT_BINARY_DIR})
add_custom_command( TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${MINGW_BUILD_BIN}/libgcc_s_seh-1.dll ${PROJECT_BINARY_DIR})
add_custom_command( TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${MINGW_BUILD_BIN}/libstdc++-6.dll ${PROJECT_BINARY_DIR})
add_custom_command( TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${MINGW_BUILD_BIN}/libwinpthread-1.dll ${PROJECT_BINARY_DIR})

add_custom_command( TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/extlib/openssl/libeay32.dll ${PROJECT_BINARY_DIR})
add_custom_command( TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/extlib/openssl/ssleay32.dll ${PROJECT_BINARY_DIR})
add_custom_command( TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/extlib/lua/lua53.dll ${PROJECT_BINARY_DIR})

file(GLOB biogui_win_libs
${MINGW_BUILD_BIN}/libgcc_s_dw2-1.dll
${MINGW_BUILD_BIN}/libstdc++-6.dll
${MINGW_BUILD_BIN}/libwinpthread-1.dll
)

message(STATUS "CURRENT SOURCE DIR")
message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}")

file(GLOB biogui_win_libs
${MINGW_BUILD_BIN}/libgcc_s_seh-1.dll
${MINGW_BUILD_BIN}/libstdc++-6.dll
${MINGW_BUILD_BIN}/libwinpthread-1.dll
${CMAKE_CURRENT_SOURCE_DIR}/extlib/openssl/libeay32.dll
${CMAKE_CURRENT_SOURCE_DIR}/extlib/openssl/ssleay32.dll
${CMAKE_CURRENT_SOURCE_DIR}/extlib/lua/lua53.dll
)

foreach (_file ${biogui_win_libs})
get_filename_component(_resolvedFile "${_file}" REALPATH)
get_filename_component(_originalName "${_file}" NAME)
get_filename_component(_originalExt "${_file}" EXT)

#message(STATUS "${_resolvedFile} ${_originalName} ${_originalExt}")
message(STATUS "${_resolvedFile} ${_originalName} ${_originalExt}")

install(FILES ${_resolvedFile} DESTINATION ${CMAKE_INSTALL_PREFIX} RENAME "${_originalName}")
endforeach()
Expand Down
2 changes: 1 addition & 1 deletion config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
location=https://services.bio.ifi.lmu.de:1047/biogui/

[bash]
location=C:\\WINDOWS\\Sysnative\\wsl.exe
location=C:\\Windows\\System32\\wsl.exe
2 changes: 1 addition & 1 deletion extlib/lua/include/lauxlib.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** $Id: lauxlib.h,v 1.131 2016/12/06 14:54:31 roberto Exp $
** $Id: lauxlib.h,v 1.131.1.1 2017/04/19 17:20:42 roberto Exp $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
Expand Down
8 changes: 4 additions & 4 deletions extlib/lua/include/lua.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** $Id: lua.h,v 1.332 2016/12/22 15:51:20 roberto Exp $
** $Id: lua.h,v 1.332.1.2 2018/06/13 16:58:17 roberto Exp $
** Lua - A Scripting Language
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
** See Copyright Notice at the end of this file
Expand All @@ -19,11 +19,11 @@
#define LUA_VERSION_MAJOR "5"
#define LUA_VERSION_MINOR "3"
#define LUA_VERSION_NUM 503
#define LUA_VERSION_RELEASE "4"
#define LUA_VERSION_RELEASE "5"

#define LUA_VERSION "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR
#define LUA_RELEASE LUA_VERSION "." LUA_VERSION_RELEASE
#define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2017 Lua.org, PUC-Rio"
#define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2018 Lua.org, PUC-Rio"
#define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo, W. Celes"


Expand Down Expand Up @@ -460,7 +460,7 @@ struct lua_Debug {


/******************************************************************************
* Copyright (C) 1994-2017 Lua.org, PUC-Rio.
* Copyright (C) 1994-2018 Lua.org, PUC-Rio.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
Expand Down
9 changes: 8 additions & 1 deletion extlib/lua/include/luaconf.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** $Id: luaconf.h,v 1.259 2016/12/22 13:08:50 roberto Exp $
** $Id: luaconf.h,v 1.259.1.1 2017/04/19 17:29:57 roberto Exp $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
Expand Down Expand Up @@ -622,6 +622,13 @@
#endif


/*
@@ lua_pointer2str converts a pointer to a readable string in a
** non-specified way.
*/
#define lua_pointer2str(buff,sz,p) l_sprintf(buff,sz,"%p",p)


/*
@@ lua_number2strx converts a float to an hexadecimal numeric string.
** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that.
Expand Down
2 changes: 1 addition & 1 deletion extlib/lua/include/lualib.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** $Id: lualib.h,v 1.45 2017/01/12 17:14:26 roberto Exp $
** $Id: lualib.h,v 1.45.1.1 2017/04/19 17:20:42 roberto Exp $
** Lua standard libraries
** See Copyright Notice in lua.h
*/
Expand Down
Binary file modified extlib/lua/liblua53.a
Binary file not shown.
4 changes: 2 additions & 2 deletions extlib/openssl/BUILD-HOMEPAGE.url
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[InternetShortcut]
URL=https://github.com/vszakats/curl-for-win
[InternetShortcut]
URL=https://github.com/vszakats/harbour-deps
13 changes: 10 additions & 3 deletions extlib/openssl/BUILD-README.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Visit the project page for details about these builds and the list of changes:

https://github.com/vszakats/curl-for-win
Visit the project page for details about these builds and the list of changes:

https://github.com/vszakats/harbour-deps

Please donate to support maintaining these builds:

PayPal:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2DZM6WAGRJWT6

Thank you!
Loading

0 comments on commit fa811d6

Please sign in to comment.