gameServer/hedgewars-server.cabal
branchtransitional_engine
changeset 16051 2003b466b279
parent 16014 e42d1819b150
--- a/gameServer/hedgewars-server.cabal	Wed Aug 28 15:31:51 2024 +0200
+++ b/gameServer/hedgewars-server.cabal	Wed Aug 28 15:34:49 2024 +0200
@@ -1,5 +1,5 @@
 Name:                hedgewars-server
-Version:             0.1
+Version:             1.1.0
 Synopsis:            hedgewars server
 Description:         hedgewars server
 Homepage:            https://www.hedgewars.org/
@@ -11,37 +11,71 @@
 Cabal-version:       >=1.10
 
 
+flag officialServer
+  description: Build for official server
+  default:     False
+  manual:      True
+
 Executable hedgewars-server
   main-is: hedgewars-server.hs
+  other-modules:
+    Actions
+    ClientIO
+    CommandHelp
+    ConfigFile
+    Consts
+    CoreTypes
+    Data.TConfig
+    EngineInteraction
+    FloodDetection
+    HWProtoChecker
+    HWProtoCore
+    HWProtoInRoomState
+    HWProtoLobbyState
+    HWProtoNEState
+    HandlerUtils
+    JoinsMonitor
+    NetRoutines
+    OfficialServer.DBInteraction
+    Opts
+    RoomsAndClients
+    ServerCore
+    ServerState
+    Store
+    Utils
+    Votes
 
   default-language:    Haskell2010
 
 -- Don't forget to update INSTALL.md and .travis.yml when you change these dependencies!
   Build-depends:
     base >= 4.8,
-    containers,
-    vector,
+    binary >= 0.8.5.1,
     bytestring,
-    network >= 2.3 && < 3.2,
+    containers,
+    deepseq,
+    entropy,
+    hslogger,
+    mtl >= 2,
+    network >= 3.0 && < 3.2,
     network-bsd >= 2.8.1 && < 2.9,
+    process,
     random,
-    time,
-    mtl >= 2,
+    regex-tdfa,
     sandi,
-    hslogger,
-    process,
-    deepseq,
+    SHA,
+    time,
     utf8-string,
-    SHA,
-    entropy,
-    zlib >= 0.5.3 && < 0.7,
-    regex-tdfa,
-    binary >= 0.8.5.1,
+    vector
 
 -- These dependencies are for OFFICIAL_SERVER only and do not need to be mentioned in docs
-    yaml >= 0.8.30,
-    aeson,
-    text >= 1.2
+  if flag(officialServer)
+    build-depends:
+      aeson,
+      text >= 1.2,
+      yaml >= 0.8.30,
+      zlib >= 0.5.3 && < 0.7
+    cpp-options:   -DOFFICIAL_SERVER
 
   if !os(windows)
     build-depends: unix