mail[Wesnoth-commits] r24944 - /trunk/SConstruct


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by esr on March 21, 2008 - 16:28:
Author: esr
Date: Fri Mar 21 16:28:19 2008
New Revision: 24944

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24944&view=rev
Log:
Make the campaign server and tags file.

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=24944&r1=24943&r2=24944&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Fri Mar 21 16:28:19 2008
@@ -44,12 +44,12 @@
 # Setup
 #
 
-# FIXME: will need some elaboration under Windows
 env = Environment(options = opts)
-env.Default("wesnothd")
-
-#
-# Program declarations (incomplete, no libraries yet)
+all = env.Alias("all", ["wesnoth", "wesnoth_editor", "wesnothd", 
"campaignd"])
+env.Default("all")
+
+#
+# Program declarations
 #
 boost_libs = Split("boost_iostreams-mt boost_regex")
 SDL_libs = Split("SDL_net SDL_ttf SDL_mixer SDL pthread SDL_image")
@@ -223,6 +223,18 @@
             LIBS = commonlibs + ['wesnoth_core', 'wesnoth'],
             LIBPATH = [".", "src", "/lib", "/usr/lib"])
 
+campaignd_sources = [
+       "src/campaign_server/campaign_server.cpp",
+       "src/network.cpp",
+       "src/network_worker.cpp",
+       "src/publish_campaign.cpp",
+       "src/loadscreen_empty.cpp",
+        ]
+env.Program("campaignd", campaignd_sources,
+            CPPPATH = ['src', 'src/server', "/usr/include/SDL"],
+            LIBS = commonlibs + ['wesnoth_core', 'wesnoth'],
+            LIBPATH = [".", "src", "/lib", "/usr/lib"])
+
 wesnothd_sources = [
     "src/server/game.cpp",
     "src/server/input_stream.cpp",
@@ -241,6 +253,16 @@
             LIBPATH = [".", "src", "/lib", "/usr/lib"])
 
 #
+# Utility productions
+#
+
+tags = env.Command("TAGS",
+            libwesnoth_sources + libwesnoth_core_sources + \
+            wesnoth_editor_sources + campaignd_sources + wesnothd_sources,
+            'etags -l c++ $SOURCES')
+env.Clean(all, 'TAGS')
+
+#
 # Configuration
 #
 
@@ -280,7 +302,7 @@
 if env['raw_sockets']:
     env["CXXFLAGS"].append("-DNETWORK_USE_RAW_SOCKETS")
 
-print "%s version %s, flags %s" % (env["CC"], cc_version, " 
".join(env["CXXFLAGS"]))
+#print "%s version %s, flags %s" % (env["CC"], cc_version, " 
".join(env["CXXFLAGS"]))
 if env["CC"] == "gcc":
     (major, minor, rev) = map(int, cc_version.split("."))
     if major*10+minor < 33:




Related Messages


Powered by MHonArc, Updated Fri Mar 21 17:41:30 2008