Update of /cvsroot/wxlua/wxLua/build/bakefiles
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv14727/build/bakefiles
Modified Files:
wxlua.bkl
Log Message:
Added option checking for win32
Index: wxlua.bkl
===================================================================
RCS file: /cvsroot/wxlua/wxLua/build/bakefiles/wxlua.bkl,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** wxlua.bkl 12 Apr 2006 18:04:05 -0000 1.24
--- wxlua.bkl 20 May 2006 11:57:27 -0000 1.25
***************
*** 32,35 ****
--- 32,38 ----
<set var="VARS_DONT_ELIMINATE" append="1">
+ <!-- compilers (at least with MINGW there are problems if these get removed) -->
+ CC CXX CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
+
<!-- generic options -->
SHARED BUILD UNICODE
***************
*** 42,46 ****
<!-- modules options -->
! USE_WXBINDSTC USE_WXLUADEBUG USE_WXLUASOCKET INSTALL_CUSTOM_WXBIND
</set>
</if>
--- 45,49 ----
<!-- modules options -->
! USE_WXBINDSTC USE_WXLUADEBUG USE_WXLUASOCKET USE_LUAMODULE INSTALL_CUSTOM_WXBIND
</set>
</if>
***************
*** 200,202 ****
--- 203,228 ----
</if>
+
+
+
+ <!-- ================================================================== -->
+ <!-- OPTIONS CHECKING FOR MAKEFILES -->
+ <!-- ================================================================== -->
+
+
+ <!-- TODO: the following error is enabled only for MSVC and AUTOCONF (see configure.ac) currently ! -->
+
+ <!-- Longer explanation of the error: it just makes no sense to link a SHARED build of wxLua to a
+ STATIC build of wxWidgets since *any* object file which ends up in a .DLL/.SO needs to be compiled
+ with special flags (e.g. -fPIC with GCC) - trying to link a SHARED build of wxLua to a
+ STATIC build of wxWidgets would be equivalent to put object files compiled for a static build
+ in a DLL - this will just fail at link-time with lots of difficult-to-understand error message !!!
+ -->
+ <fragment format="msvc">
+ !if "$(SHARED)" == "1" && "$(WX_SHARED)" == "0"
+ !error Cannot build a SHARED version of wxLua (SHARED is 1) against a static version of wxWidgets (WX_SHARED is 0) ! You can only do the opposite (STATIC build of wxLua against SHARED build of wxWidgets)
+ !endif
+ </fragment>
+
+
</makefile>
|