X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e602dae828e1f522c3142d15d6449f89dda33340..56bcdffdc3bd8a3021979b47728c1b04d04f5cf7:/build/bakefiles/wxpresets/presets/wx.bkl diff --git a/build/bakefiles/wxpresets/presets/wx.bkl b/build/bakefiles/wxpresets/presets/wx.bkl index 2eef873e0b..9a22a95ce9 100644 --- a/build/bakefiles/wxpresets/presets/wx.bkl +++ b/build/bakefiles/wxpresets/presets/wx.bkl @@ -10,7 +10,7 @@ - WX_* : used to let the user of the generated makefile choose a wxWidgets build among those available; you can use them in your project to - e.g. build a target only if WX_DEBUG is 0 or if WX_PORT is "msw". + e.g. build a target only if WX_SHARED is 0 or if WX_PORT is "msw". VARIABLES: @@ -24,13 +24,17 @@ - wx, wx-lib: templates to be used respectively for / and targets; they add all the wxWidgets-related settings (e.g. the - include and library search paths, the __WXDEBUG__ symbol, etc) + include and library search paths, the necessary preprocessor + symbols, etc). - - wxconsole: to be used when building console-only libraries or apps - (adds the wxUSE_GUI=0 define). + - wxgui: to be used when building GUI-mode applications. + + - wxconsole: to be used when building console-only applications + (NOTE: it doesn't add the wxUSE_GUI=0 define since you don't + need it when compiling wxBase-only code). - wxlike: this template should be combined with "wx" or "wx-lib" and will - make your project build with the same Unicode, debug & shared + make your project build with the same Unicode & shared config as the wxWidgets build selected using the WX_* options. @@ -60,7 +64,12 @@ follows the wxWidgets naming conventions, then this tag is what you need to reference the wx-based additional library. - - : if your library/application needs to cpmpile & link with both + - : sets the output directory for the current target to $(value) + when on Unix and to e.g. $(value)/vc_lib when on Windows, + i.e. acts like just following wxWidgets naming rules. + Useful to allow multiple builds of the + + - : if your library/application needs to compile & link with both wxWidgets and some other wx-based library, which in turn follows the wxWidgets naming conventions, then this tag is what you need to add to the compiler and linker flags the paths @@ -73,16 +82,20 @@ to keep object files compiled with different settings separate. + - : sets a variable with the name of a library named with the same + wxWidgets rules. + NOTE: as a reference here is a list of all wxWidgets libraries satisfying the dependency constraints mentioned in description: richtext aui + ribbon + propgrid + stc qa - dbgrid gl - odbc xrc html media @@ -97,25 +110,32 @@ + + + + + this is changed only when major changes to wxpresets take place. + --> 4 - - base core net xml odbc xrc html adv media gl dbgrid qa aui richtext + + base core net xml xrc html adv media gl qa aui ribbon propgrid richtext stc - - - applet deprecated fl foldbar gizmos mmedia netutils ogl plot stc svg + + 1 - $(LIB_LIST) $(CONTRIBLIB_LIST) @@ -151,7 +171,7 @@ - 0 + 1 1 0 @@ -159,7 +179,6 @@ - @@ -176,7 +195,7 @@ Static,DLL $(WX_SHARED_DEFAULT) - Use DLL build of wx library to use? + Use DLL build of wx library? @@ -184,13 +203,13 @@ - 0 + 1 @@ -202,13 +221,13 @@ Release,Debug $(WX_DEBUG_DEFAULT) - Use debug build of wxWidgets (define __WXDEBUG__)? + Use debug build of wxWidgets (linked with debug CRT)? - 28 + 29 + + $(COMPILER) + + - + + 0 @@ -271,6 +295,13 @@ 1 + + + + 1 + + This format is not (yet) supported by wx preset. @@ -301,9 +332,13 @@ + + + @@ -312,8 +347,11 @@ - - + + $(attributes['prefix'])_$(WX_PORT)$(WX_VERSION)$(WXLIBPOSTFIX)_$(value) @@ -351,46 +389,65 @@ $(__temp) - - + lib dll - lib/$(COMPILER)_$(_DIRNAME_SHARED_SUFFIX) + $(value)/$(COMPILER_PREFIX)_$(_DIRNAME_SHARED_SUFFIX) $(_DIRNAME) - - - - @mkdir -p $(_DIRNAME) - - - if not exist $(_DIRNAME) mkdir $(_DIRNAME) - - $(id) - - + + make_dir_$(id) + + + + + @mkdir -p $(_DIRNAME) + + + if not exist $(nativePaths(_DIRNAME)) mkdir $(nativePaths(_DIRNAME)) + + + + + + + $(substitute(__mkdir_tgt, lambda x: ref('__depname', x), 'DEP')) + + + - lib + $(value) + $(_DIRNAME) - + + + + + + + + + + + $(attributes['prefix'])_$(WX_PORT)$(WX_VERSION)$(WXLIBPOSTFIX)_$(value) + + + + + + $(attributes['prefix'])_$(WX_PORT)$(WX_VERSION)$(WXLIBPOSTFIX)_$(value) + + + + + + + + + $(attributes['prefix'])_$(WX_PORT)$(WXLIBPOSTFIX)_$(value)-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR) + + + + + + $(attributes['prefix'])_$(WX_PORT)$(WXLIBPOSTFIX)_$(value)-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR) + + + + + + + + +