From 8d14d9b2e0e459df6ca974dadee447abb3293a98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Sat, 26 Feb 2011 11:23:42 +0100 Subject: Avoid scons warning on multiply defined targets. diff --git a/Sluift/SConscript b/Sluift/SConscript index e00d32e..3a7d32f 100644 --- a/Sluift/SConscript +++ b/Sluift/SConscript @@ -12,10 +12,6 @@ if env["SCONS_STAGE"] == "build" : elif myenv["PLATFORM"] == "darwin" : myenv["SHLIBSUFFIX"] = ".so" - myenv.SharedLibrary("sluift", [ - "sluift.cpp", - ]) - sluift_bin_env = myenv.Clone() sluift_bin_env.Install(".", "#/3rdParty/Lua/src/lua.c") if sluift_bin_env.get("HAVE_READLINE", False) : @@ -26,3 +22,11 @@ if env["SCONS_STAGE"] == "build" : "lua.c", "linit.c", ]) + + # Create a copy of sluift.cpp to avoid conflicting targets + # Ideally, we would use variants for this + myenv.InstallAs("sluift_dll.cpp", "sluift.cpp") + myenv.SharedLibrary("sluift", [ + "sluift_dll.cpp", + ]) + -- cgit v0.10.2-6-g49f6