Skip to content

Commit

Permalink
WIP1
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Dec 28, 2024
1 parent 9d8650c commit 9e00962
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ jobs:
- name: Install MacOS Build Dependencies
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew uninstall --ignore-dependencies gnutls libgcrypt
brew install wxwidgets
brew install wxwidgets coreutils
- name: Install Windows Build Dependencies
if: ${{ matrix.os == 'windows-latest' }}
uses: johnwason/vcpkg-action@v6
Expand All @@ -37,6 +36,9 @@ jobs:
pkgs: wxwidgets gettext[tools]
triplet: x64-windows
token: ${{ github.token }}
- name: Prepare LibreSSL
run: |
./prepareLibreSSL.sh
- name: Build
run: |
mkdir build
Expand Down
22 changes: 22 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,32 @@ message("-----wxServDisc-----")
set(WXSERVDISC_INSTALL OFF CACHE BOOL "Set to OFF to not include wxservdisc artifacts in install")
add_subdirectory(libwxservdisc/src)

# libressl
message("-----LibreSSL-----")
set(LIBRESSL_SKIP_INSTALL ON CACHE BOOL "Skip installation")
set(LIBRESSL_APPS OFF CACHE BOOL "Build apps")
set(LIBRESSL_TESTS OFF CACHE BOOL "Build tests")
set(libssl_src_DIR ${CMAKE_SOURCE_DIR}/libressl)
set(libssl_build_DIR ${CMAKE_BINARY_DIR}/libssl)
# adds a source subdir with specifying a build output dir
add_subdirectory(${libssl_src_DIR} ${libssl_build_DIR})
# set these variables so Findssl can find the library
set(OPENSSL_SSL_LIBRARY ${libssl_build_DIR}/ssl/libssl.a CACHE FILEPATH "")
set(OPENSSL_CRYPTO_LIBRARY ${libssl_build_DIR}/crypto/libcrypto.a CACHE FILEPATH "")
set(OPENSSL_INCLUDE_DIR ${libssl_src_DIR}/include CACHE PATH "")
# set include directories so dependent code can find the headers
include_directories(
${CMAKE_BINARY_DIR}/include # generated headers in there
${libssl_src_DIR}/include
)

# libvncclient
message("-----LibVNCClient-----")
set(LIBVNCSERVER_INSTALL OFF CACHE BOOL "Set to OFF to not include libvncserver artifacts in install")
set(WITH_EXAMPLES OFF CACHE BOOL "Set to OFF to not build libvncserver examples")
# disable looking for GnuTLS and grcypt to only have LibreSSL as above
set(WITH_GNUTLS OFF CACHE BOOL "Search for the GnuTLS secure communications library to support TLS")
set(WITH_GCRYPT OFF CACHE BOOL "Search for Libgcrypt to use as crypto backend")
add_subdirectory(libvncserver)


Expand Down
4 changes: 4 additions & 0 deletions flatpak/net.christianbeier.MultiVNC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ modules:
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=Release
cleanup:
- /lib/libcrypto.a
- /lib/libssl.a
- /lib/libtls.a
sources:
- type: dir
path: ..
2 changes: 1 addition & 1 deletion macos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
For the time being, we're building an Intel binary only. Universal builds to come later.

- Install build tools: `brew install cmake gettext`
- Install build dependencies: `brew install wxwidgets jpeg-turbo openssl`
- Install build dependencies: `brew install wxwidgets jpeg-turbo`
- Building a release app bundle, [signing the app](https://developer.apple.com/documentation/xcode/creating-distribution-signed-code-for-the-mac),
[building an installer package for App Store distribution](https://developer.apple.com/documentation/xcode/packaging-mac-software-for-distribution) as well as
[validating and uploading the package](https://help.apple.com/asc/appsaltool) is all done by the `build-sign-validate-upload.sh` script.

0 comments on commit 9e00962

Please sign in to comment.