mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-28 20:29:53 +00:00
core: exclude CLI modules from client library (#5758)
* core: exclude CLI modules from client library * client_library flag in nix builds * use client_library in builds, update iOS library
This commit is contained in:
parent
ae24da090c
commit
b8e2e71a60
7 changed files with 49 additions and 23 deletions
|
@ -29,7 +29,7 @@ RUN cp ./scripts/cabal.project.local.linux ./cabal.project.local
|
||||||
|
|
||||||
# Compile simplex-chat
|
# Compile simplex-chat
|
||||||
RUN cabal update
|
RUN cabal update
|
||||||
RUN cabal build exe:simplex-chat --constraint 'simplexmq +client_library'
|
RUN cabal build exe:simplex-chat --constraint 'simplexmq +client_library' --constraint 'simplex-chat +client_library'
|
||||||
|
|
||||||
# Strip the binary from debug symbols to reduce size
|
# Strip the binary from debug symbols to reduce size
|
||||||
RUN bin=$(find /project/dist-newstyle -name "simplex-chat" -type f -executable) && \
|
RUN bin=$(find /project/dist-newstyle -name "simplex-chat" -type f -executable) && \
|
||||||
|
|
|
@ -174,8 +174,8 @@
|
||||||
64C3B0212A0D359700E19930 /* CustomTimePicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64C3B0202A0D359700E19930 /* CustomTimePicker.swift */; };
|
64C3B0212A0D359700E19930 /* CustomTimePicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64C3B0202A0D359700E19930 /* CustomTimePicker.swift */; };
|
||||||
64C8299D2D54AEEE006B9E89 /* libgmp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C829982D54AEED006B9E89 /* libgmp.a */; };
|
64C8299D2D54AEEE006B9E89 /* libgmp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C829982D54AEED006B9E89 /* libgmp.a */; };
|
||||||
64C8299E2D54AEEE006B9E89 /* libffi.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C829992D54AEEE006B9E89 /* libffi.a */; };
|
64C8299E2D54AEEE006B9E89 /* libffi.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C829992D54AEEE006B9E89 /* libffi.a */; };
|
||||||
64C8299F2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3RDt4h0Fq4hJV00CU7V8H-ghc9.6.3.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C8299A2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3RDt4h0Fq4hJV00CU7V8H-ghc9.6.3.a */; };
|
64C8299F2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3t1toqktTLqKKdcXhaf4EO-ghc9.6.3.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C8299A2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3t1toqktTLqKKdcXhaf4EO-ghc9.6.3.a */; };
|
||||||
64C829A02D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3RDt4h0Fq4hJV00CU7V8H.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C8299B2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3RDt4h0Fq4hJV00CU7V8H.a */; };
|
64C829A02D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3t1toqktTLqKKdcXhaf4EO.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C8299B2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3t1toqktTLqKKdcXhaf4EO.a */; };
|
||||||
64C829A12D54AEEE006B9E89 /* libgmpxx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C8299C2D54AEEE006B9E89 /* libgmpxx.a */; };
|
64C829A12D54AEEE006B9E89 /* libgmpxx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C8299C2D54AEEE006B9E89 /* libgmpxx.a */; };
|
||||||
64D0C2C029F9688300B38D5F /* UserAddressView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64D0C2BF29F9688300B38D5F /* UserAddressView.swift */; };
|
64D0C2C029F9688300B38D5F /* UserAddressView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64D0C2BF29F9688300B38D5F /* UserAddressView.swift */; };
|
||||||
64D0C2C229FA57AB00B38D5F /* UserAddressLearnMore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64D0C2C129FA57AB00B38D5F /* UserAddressLearnMore.swift */; };
|
64D0C2C229FA57AB00B38D5F /* UserAddressLearnMore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64D0C2C129FA57AB00B38D5F /* UserAddressLearnMore.swift */; };
|
||||||
|
@ -531,8 +531,8 @@
|
||||||
64C3B0202A0D359700E19930 /* CustomTimePicker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomTimePicker.swift; sourceTree = "<group>"; };
|
64C3B0202A0D359700E19930 /* CustomTimePicker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomTimePicker.swift; sourceTree = "<group>"; };
|
||||||
64C829982D54AEED006B9E89 /* libgmp.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libgmp.a; sourceTree = "<group>"; };
|
64C829982D54AEED006B9E89 /* libgmp.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libgmp.a; sourceTree = "<group>"; };
|
||||||
64C829992D54AEEE006B9E89 /* libffi.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libffi.a; sourceTree = "<group>"; };
|
64C829992D54AEEE006B9E89 /* libffi.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libffi.a; sourceTree = "<group>"; };
|
||||||
64C8299A2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3RDt4h0Fq4hJV00CU7V8H-ghc9.6.3.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "libHSsimplex-chat-6.3.0.8-3RDt4h0Fq4hJV00CU7V8H-ghc9.6.3.a"; sourceTree = "<group>"; };
|
64C8299A2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3t1toqktTLqKKdcXhaf4EO-ghc9.6.3.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "libHSsimplex-chat-6.3.0.8-3t1toqktTLqKKdcXhaf4EO-ghc9.6.3.a"; sourceTree = "<group>"; };
|
||||||
64C8299B2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3RDt4h0Fq4hJV00CU7V8H.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "libHSsimplex-chat-6.3.0.8-3RDt4h0Fq4hJV00CU7V8H.a"; sourceTree = "<group>"; };
|
64C8299B2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3t1toqktTLqKKdcXhaf4EO.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "libHSsimplex-chat-6.3.0.8-3t1toqktTLqKKdcXhaf4EO.a"; sourceTree = "<group>"; };
|
||||||
64C8299C2D54AEEE006B9E89 /* libgmpxx.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libgmpxx.a; sourceTree = "<group>"; };
|
64C8299C2D54AEEE006B9E89 /* libgmpxx.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libgmpxx.a; sourceTree = "<group>"; };
|
||||||
64D0C2BF29F9688300B38D5F /* UserAddressView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserAddressView.swift; sourceTree = "<group>"; };
|
64D0C2BF29F9688300B38D5F /* UserAddressView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserAddressView.swift; sourceTree = "<group>"; };
|
||||||
64D0C2C129FA57AB00B38D5F /* UserAddressLearnMore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserAddressLearnMore.swift; sourceTree = "<group>"; };
|
64D0C2C129FA57AB00B38D5F /* UserAddressLearnMore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserAddressLearnMore.swift; sourceTree = "<group>"; };
|
||||||
|
@ -688,8 +688,8 @@
|
||||||
64C8299D2D54AEEE006B9E89 /* libgmp.a in Frameworks */,
|
64C8299D2D54AEEE006B9E89 /* libgmp.a in Frameworks */,
|
||||||
64C8299E2D54AEEE006B9E89 /* libffi.a in Frameworks */,
|
64C8299E2D54AEEE006B9E89 /* libffi.a in Frameworks */,
|
||||||
64C829A12D54AEEE006B9E89 /* libgmpxx.a in Frameworks */,
|
64C829A12D54AEEE006B9E89 /* libgmpxx.a in Frameworks */,
|
||||||
64C8299F2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3RDt4h0Fq4hJV00CU7V8H-ghc9.6.3.a in Frameworks */,
|
64C8299F2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3t1toqktTLqKKdcXhaf4EO-ghc9.6.3.a in Frameworks */,
|
||||||
64C829A02D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3RDt4h0Fq4hJV00CU7V8H.a in Frameworks */,
|
64C829A02D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3t1toqktTLqKKdcXhaf4EO.a in Frameworks */,
|
||||||
CE38A29C2C3FCD72005ED185 /* SwiftyGif in Frameworks */,
|
CE38A29C2C3FCD72005ED185 /* SwiftyGif in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
@ -774,8 +774,8 @@
|
||||||
64C829992D54AEEE006B9E89 /* libffi.a */,
|
64C829992D54AEEE006B9E89 /* libffi.a */,
|
||||||
64C829982D54AEED006B9E89 /* libgmp.a */,
|
64C829982D54AEED006B9E89 /* libgmp.a */,
|
||||||
64C8299C2D54AEEE006B9E89 /* libgmpxx.a */,
|
64C8299C2D54AEEE006B9E89 /* libgmpxx.a */,
|
||||||
64C8299A2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3RDt4h0Fq4hJV00CU7V8H-ghc9.6.3.a */,
|
64C8299A2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3t1toqktTLqKKdcXhaf4EO-ghc9.6.3.a */,
|
||||||
64C8299B2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3RDt4h0Fq4hJV00CU7V8H.a */,
|
64C8299B2D54AEEE006B9E89 /* libHSsimplex-chat-6.3.0.8-3t1toqktTLqKKdcXhaf4EO.a */,
|
||||||
);
|
);
|
||||||
path = Libraries;
|
path = Libraries;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
|
|
@ -198,6 +198,7 @@
|
||||||
packages.direct-sqlcipher.components.library.libs = pkgs.lib.mkForce [
|
packages.direct-sqlcipher.components.library.libs = pkgs.lib.mkForce [
|
||||||
pkgs.pkgsCross.mingwW64.openssl
|
pkgs.pkgsCross.mingwW64.openssl
|
||||||
];
|
];
|
||||||
|
packages.simplex-chat.flags.client_library = true;
|
||||||
packages.simplexmq.flags.client_library = true;
|
packages.simplexmq.flags.client_library = true;
|
||||||
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
||||||
pkgs.pkgsCross.mingwW64.openssl
|
pkgs.pkgsCross.mingwW64.openssl
|
||||||
|
@ -336,6 +337,7 @@
|
||||||
packages.direct-sqlcipher.patches = [
|
packages.direct-sqlcipher.patches = [
|
||||||
./scripts/nix/direct-sqlcipher-android-log.patch
|
./scripts/nix/direct-sqlcipher-android-log.patch
|
||||||
];
|
];
|
||||||
|
packages.simplex-chat.flags.client_library = true;
|
||||||
packages.simplexmq.flags.client_library = true;
|
packages.simplexmq.flags.client_library = true;
|
||||||
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
||||||
(android32Pkgs.openssl.override { static = true; enableKTLS = false; })
|
(android32Pkgs.openssl.override { static = true; enableKTLS = false; })
|
||||||
|
@ -445,6 +447,7 @@
|
||||||
packages.direct-sqlcipher.patches = [
|
packages.direct-sqlcipher.patches = [
|
||||||
./scripts/nix/direct-sqlcipher-android-log.patch
|
./scripts/nix/direct-sqlcipher-android-log.patch
|
||||||
];
|
];
|
||||||
|
packages.simplex-chat.flags.client_library = true;
|
||||||
packages.simplexmq.flags.client_library = true;
|
packages.simplexmq.flags.client_library = true;
|
||||||
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
||||||
(androidPkgs.openssl.override { static = true; })
|
(androidPkgs.openssl.override { static = true; })
|
||||||
|
@ -550,6 +553,7 @@
|
||||||
packages.simplexmq.flags.swift = true;
|
packages.simplexmq.flags.swift = true;
|
||||||
packages.direct-sqlcipher.flags.commoncrypto = true;
|
packages.direct-sqlcipher.flags.commoncrypto = true;
|
||||||
packages.entropy.flags.DoNotGetEntropy = true;
|
packages.entropy.flags.DoNotGetEntropy = true;
|
||||||
|
packages.simplex-chat.flags.client_library = true;
|
||||||
packages.simplexmq.flags.client_library = true;
|
packages.simplexmq.flags.client_library = true;
|
||||||
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
||||||
# TODO: have a cross override for iOS, that sets this.
|
# TODO: have a cross override for iOS, that sets this.
|
||||||
|
@ -565,6 +569,7 @@
|
||||||
extra-modules = [{
|
extra-modules = [{
|
||||||
packages.direct-sqlcipher.flags.commoncrypto = true;
|
packages.direct-sqlcipher.flags.commoncrypto = true;
|
||||||
packages.entropy.flags.DoNotGetEntropy = true;
|
packages.entropy.flags.DoNotGetEntropy = true;
|
||||||
|
packages.simplex-chat.flags.client_library = true;
|
||||||
packages.simplexmq.flags.client_library = true;
|
packages.simplexmq.flags.client_library = true;
|
||||||
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
||||||
((pkgs.openssl.override { static = true; }).overrideDerivation (old: { CFLAGS = "-mcpu=apple-a7 -march=armv8-a+norcpc" ;}))
|
((pkgs.openssl.override { static = true; }).overrideDerivation (old: { CFLAGS = "-mcpu=apple-a7 -march=armv8-a+norcpc" ;}))
|
||||||
|
@ -583,6 +588,7 @@
|
||||||
packages.simplexmq.flags.swift = true;
|
packages.simplexmq.flags.swift = true;
|
||||||
packages.direct-sqlcipher.flags.commoncrypto = true;
|
packages.direct-sqlcipher.flags.commoncrypto = true;
|
||||||
packages.entropy.flags.DoNotGetEntropy = true;
|
packages.entropy.flags.DoNotGetEntropy = true;
|
||||||
|
packages.simplex-chat.flags.client_library = true;
|
||||||
packages.simplexmq.flags.client_library = true;
|
packages.simplexmq.flags.client_library = true;
|
||||||
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
||||||
(pkgs.openssl.override { static = true; })
|
(pkgs.openssl.override { static = true; })
|
||||||
|
@ -597,6 +603,7 @@
|
||||||
extra-modules = [{
|
extra-modules = [{
|
||||||
packages.direct-sqlcipher.flags.commoncrypto = true;
|
packages.direct-sqlcipher.flags.commoncrypto = true;
|
||||||
packages.entropy.flags.DoNotGetEntropy = true;
|
packages.entropy.flags.DoNotGetEntropy = true;
|
||||||
|
packages.simplex-chat.flags.client_library = true;
|
||||||
packages.simplexmq.flags.client_library = true;
|
packages.simplexmq.flags.client_library = true;
|
||||||
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
packages.simplexmq.components.library.libs = pkgs.lib.mkForce [
|
||||||
(pkgs.openssl.override { static = true; })
|
(pkgs.openssl.override { static = true; })
|
||||||
|
|
|
@ -25,7 +25,7 @@ for elem in "${exports[@]}"; do count=$(grep -R "$elem$" libsimplex.dll.def | wc
|
||||||
for elem in "${exports[@]}"; do count=$(grep -R "\"$elem\"" flake.nix | wc -l); if [ $count -ne 2 ]; then echo Wrong exports in flake.nix. Add \"$elem\" in two places of the file; exit 1; fi ; done
|
for elem in "${exports[@]}"; do count=$(grep -R "\"$elem\"" flake.nix | wc -l); if [ $count -ne 2 ]; then echo Wrong exports in flake.nix. Add \"$elem\" in two places of the file; exit 1; fi ; done
|
||||||
|
|
||||||
rm -rf $BUILD_DIR
|
rm -rf $BUILD_DIR
|
||||||
cabal build lib:simplex-chat --ghc-options='-optl-Wl,-rpath,$ORIGIN -flink-rts -threaded' --constraint 'simplexmq +client_library'
|
cabal build lib:simplex-chat --ghc-options='-optl-Wl,-rpath,$ORIGIN -flink-rts -threaded' --constraint 'simplexmq +client_library' --constraint 'simplex-chat +client_library'
|
||||||
cd $BUILD_DIR/build
|
cd $BUILD_DIR/build
|
||||||
#patchelf --add-needed libHSrts_thr-ghc${GHC_VERSION}.so libHSsimplex-chat-*-inplace-ghc${GHC_VERSION}.so
|
#patchelf --add-needed libHSrts_thr-ghc${GHC_VERSION}.so libHSsimplex-chat-*-inplace-ghc${GHC_VERSION}.so
|
||||||
#patchelf --add-rpath '$ORIGIN' libHSsimplex-chat-*-inplace-ghc${GHC_VERSION}.so
|
#patchelf --add-rpath '$ORIGIN' libHSsimplex-chat-*-inplace-ghc${GHC_VERSION}.so
|
||||||
|
|
|
@ -28,10 +28,10 @@ rm -rf $BUILD_DIR
|
||||||
|
|
||||||
if [[ "$DATABASE_BACKEND" == "postgres" ]]; then
|
if [[ "$DATABASE_BACKEND" == "postgres" ]]; then
|
||||||
echo "Building with postgres backend..."
|
echo "Building with postgres backend..."
|
||||||
cabal build -f client_postgres lib:simplex-chat lib:simplex-chat --ghc-options="-optl-Wl,-rpath,@loader_path -optl-Wl,-L$GHC_LIBS_DIR/$ARCH-osx-ghc-$GHC_VERSION -optl-lHSrts_thr-ghc$GHC_VERSION -optl-lffi" --constraint 'simplexmq +client_library'
|
cabal build -f client_postgres lib:simplex-chat lib:simplex-chat --ghc-options="-optl-Wl,-rpath,@loader_path -optl-Wl,-L$GHC_LIBS_DIR/$ARCH-osx-ghc-$GHC_VERSION -optl-lHSrts_thr-ghc$GHC_VERSION -optl-lffi" --constraint 'simplexmq +client_library' --constraint 'simplex-chat +client_library'
|
||||||
else
|
else
|
||||||
echo "Building with sqlite backend..."
|
echo "Building with sqlite backend..."
|
||||||
cabal build lib:simplex-chat lib:simplex-chat --ghc-options="-optl-Wl,-rpath,@loader_path -optl-Wl,-L$GHC_LIBS_DIR/$ARCH-osx-ghc-$GHC_VERSION -optl-lHSrts_thr-ghc$GHC_VERSION -optl-lffi" --constraint 'simplexmq +client_library'
|
cabal build lib:simplex-chat lib:simplex-chat --ghc-options="-optl-Wl,-rpath,@loader_path -optl-Wl,-L$GHC_LIBS_DIR/$ARCH-osx-ghc-$GHC_VERSION -optl-lHSrts_thr-ghc$GHC_VERSION -optl-lffi" --constraint 'simplexmq +client_library' --constraint 'simplex-chat +client_library'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $BUILD_DIR/build
|
cd $BUILD_DIR/build
|
||||||
|
|
|
@ -51,7 +51,7 @@ echo " ghc-options: -shared -threaded -optl-L$openssl_windows_style_path -opt
|
||||||
# Very important! Without it the build fails on linking step since the linker can't find exported symbols.
|
# Very important! Without it the build fails on linking step since the linker can't find exported symbols.
|
||||||
# It looks like GHC bug because with such random path the build ends successfully
|
# It looks like GHC bug because with such random path the build ends successfully
|
||||||
sed -i "s/ld.lld.exe/abracadabra.exe/" `ghc --print-libdir`/settings
|
sed -i "s/ld.lld.exe/abracadabra.exe/" `ghc --print-libdir`/settings
|
||||||
cabal build lib:simplex-chat --constraint 'simplexmq +client_library'
|
cabal build lib:simplex-chat --constraint 'simplexmq +client_library' --constraint 'simplex-chat +client_library'
|
||||||
|
|
||||||
rm -rf apps/multiplatform/common/src/commonMain/cpp/desktop/libs/$OS-$ARCH/
|
rm -rf apps/multiplatform/common/src/commonMain/cpp/desktop/libs/$OS-$ARCH/
|
||||||
rm -rf apps/multiplatform/desktop/build/cmake
|
rm -rf apps/multiplatform/desktop/build/cmake
|
||||||
|
|
|
@ -24,6 +24,11 @@ flag swift
|
||||||
manual: True
|
manual: True
|
||||||
default: False
|
default: False
|
||||||
|
|
||||||
|
flag client_library
|
||||||
|
description: Don't build server- and CLI-related code.
|
||||||
|
manual: True
|
||||||
|
default: False
|
||||||
|
|
||||||
flag client_postgres
|
flag client_postgres
|
||||||
description: Build with PostgreSQL instead of SQLite.
|
description: Build with PostgreSQL instead of SQLite.
|
||||||
manual: True
|
manual: True
|
||||||
|
@ -33,13 +38,9 @@ library
|
||||||
exposed-modules:
|
exposed-modules:
|
||||||
Simplex.Chat
|
Simplex.Chat
|
||||||
Simplex.Chat.AppSettings
|
Simplex.Chat.AppSettings
|
||||||
Simplex.Chat.Bot
|
|
||||||
Simplex.Chat.Bot.KnownContacts
|
|
||||||
Simplex.Chat.Call
|
Simplex.Chat.Call
|
||||||
Simplex.Chat.Controller
|
Simplex.Chat.Controller
|
||||||
Simplex.Chat.Core
|
|
||||||
Simplex.Chat.Files
|
Simplex.Chat.Files
|
||||||
Simplex.Chat.Help
|
|
||||||
Simplex.Chat.Library.Commands
|
Simplex.Chat.Library.Commands
|
||||||
Simplex.Chat.Library.Internal
|
Simplex.Chat.Library.Internal
|
||||||
Simplex.Chat.Library.Subscriber
|
Simplex.Chat.Library.Subscriber
|
||||||
|
@ -78,17 +79,23 @@ library
|
||||||
Simplex.Chat.Store.Remote
|
Simplex.Chat.Store.Remote
|
||||||
Simplex.Chat.Store.Shared
|
Simplex.Chat.Store.Shared
|
||||||
Simplex.Chat.Styled
|
Simplex.Chat.Styled
|
||||||
Simplex.Chat.Terminal
|
|
||||||
Simplex.Chat.Terminal.Input
|
|
||||||
Simplex.Chat.Terminal.Main
|
|
||||||
Simplex.Chat.Terminal.Notification
|
|
||||||
Simplex.Chat.Terminal.Output
|
|
||||||
Simplex.Chat.Types
|
Simplex.Chat.Types
|
||||||
Simplex.Chat.Types.Preferences
|
Simplex.Chat.Types.Preferences
|
||||||
Simplex.Chat.Types.Shared
|
Simplex.Chat.Types.Shared
|
||||||
Simplex.Chat.Types.UITheme
|
Simplex.Chat.Types.UITheme
|
||||||
Simplex.Chat.Types.Util
|
Simplex.Chat.Types.Util
|
||||||
Simplex.Chat.Util
|
Simplex.Chat.Util
|
||||||
|
if !flag(client_library)
|
||||||
|
exposed-modules:
|
||||||
|
Simplex.Chat.Bot
|
||||||
|
Simplex.Chat.Bot.KnownContacts
|
||||||
|
Simplex.Chat.Core
|
||||||
|
Simplex.Chat.Help
|
||||||
|
Simplex.Chat.Terminal
|
||||||
|
Simplex.Chat.Terminal.Input
|
||||||
|
Simplex.Chat.Terminal.Main
|
||||||
|
Simplex.Chat.Terminal.Notification
|
||||||
|
Simplex.Chat.Terminal.Output
|
||||||
Simplex.Chat.View
|
Simplex.Chat.View
|
||||||
if flag(client_postgres)
|
if flag(client_postgres)
|
||||||
exposed-modules:
|
exposed-modules:
|
||||||
|
@ -296,6 +303,8 @@ library
|
||||||
, text >=1.2.4.0 && <1.3
|
, text >=1.2.4.0 && <1.3
|
||||||
|
|
||||||
executable simplex-bot
|
executable simplex-bot
|
||||||
|
if flag(client_library)
|
||||||
|
buildable: False
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
other-modules:
|
other-modules:
|
||||||
Paths_simplex_chat
|
Paths_simplex_chat
|
||||||
|
@ -313,6 +322,8 @@ executable simplex-bot
|
||||||
cpp-options: -DdbPostgres
|
cpp-options: -DdbPostgres
|
||||||
|
|
||||||
executable simplex-bot-advanced
|
executable simplex-bot-advanced
|
||||||
|
if flag(client_library)
|
||||||
|
buildable: False
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
other-modules:
|
other-modules:
|
||||||
Paths_simplex_chat
|
Paths_simplex_chat
|
||||||
|
@ -339,6 +350,8 @@ executable simplex-bot-advanced
|
||||||
text >=1.2.4.0 && <1.3
|
text >=1.2.4.0 && <1.3
|
||||||
|
|
||||||
executable simplex-broadcast-bot
|
executable simplex-broadcast-bot
|
||||||
|
if flag(client_library)
|
||||||
|
buildable: False
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
apps/simplex-broadcast-bot
|
apps/simplex-broadcast-bot
|
||||||
|
@ -369,6 +382,8 @@ executable simplex-broadcast-bot
|
||||||
text >=1.2.4.0 && <1.3
|
text >=1.2.4.0 && <1.3
|
||||||
|
|
||||||
executable simplex-chat
|
executable simplex-chat
|
||||||
|
if flag(client_library)
|
||||||
|
buildable: False
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
other-modules:
|
other-modules:
|
||||||
Server
|
Server
|
||||||
|
@ -400,6 +415,8 @@ executable simplex-chat
|
||||||
text >=1.2.4.0 && <1.3
|
text >=1.2.4.0 && <1.3
|
||||||
|
|
||||||
executable simplex-directory-service
|
executable simplex-directory-service
|
||||||
|
if flag(client_library)
|
||||||
|
buildable: False
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
apps/simplex-directory-service
|
apps/simplex-directory-service
|
||||||
|
@ -447,6 +464,8 @@ executable simplex-directory-service
|
||||||
, text >=1.2.4.0 && <1.3
|
, text >=1.2.4.0 && <1.3
|
||||||
|
|
||||||
test-suite simplex-chat-test
|
test-suite simplex-chat-test
|
||||||
|
if flag(client_library)
|
||||||
|
buildable: False
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
main-is: Test.hs
|
main-is: Test.hs
|
||||||
other-modules:
|
other-modules:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue