Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

[Proposal] Move the custom variables WX_SUFFIX... to global variables

<< < (6/6)

AndrewCot:
In the attached 7z file is my cbp & workspace files that use the global variables from the code snippet below.

These cbp & workspace files allow me to do the following:
* Change from 32 to 64 build without changing any cbp file
* change wxWidget versions  without changing any cbp file
* change wxWidget and other external third party dependent library references without changing any cbp file
* change the CPP debug flags without changing any cbp file
* change wxWidget library CFG, Version and Suffix without changing any cbp file
--- Code: ---<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocksGlobalVariableExportConfig version="1">
    <cb_win32>
        <cb_build>
            <BASE>D:\Andrew_Development\Work_Installers\CodeBLocks_Private_Experimental\src</BASE>
            <INCLUDE>$(#CB_BUILD)\include</INCLUDE>
            <CFLAGS>-g -O0 -ggdb</CFLAGS>
            <OSBITS>32</OSBITS>
            <CPP_STD>gnu++17</CPP_STD>
        </cb_build>
        <wxwidgets>
            <BASE>D:\Andrew_Development\Libraries\wxWidgets-3.1.5_win$(#CB_BUILD.OSBITS)</BASE>
            <INCLUDE>$(#WXWIDGETS)\include</INCLUDE>
            <LIB>$(#WXWIDGETS)\lib</LIB>
            <WX_CFG>&quot;&quot;</WX_CFG>
            <WX_VERSION>31</WX_VERSION>
            <WX_SUFFIX>u</WX_SUFFIX>
        </wxwidgets>
        <discount>
            <BASE>D:\Andrew_Development\Libraries\discount_win$(#CB_BUILD.OSBITS)</BASE>
            <INCLUDE>$(#DISCOUNT)</INCLUDE>
            <LIB>$(#DISCOUNT)</LIB>
        </discount>
        <boost>
            <BASE>D:\Andrew_Development\Libraries\boost</BASE>
            <INCLUDE>$(#BOOST)</INCLUDE>
        </boost>
    </cb_win32>
    <cb_win64>
        <wxwidgets>
            <BASE>D:\Andrew_Development\Libraries\wxWidgets-3.1.5_win64</BASE>
            <INCLUDE>$(#WXWIDGETS)\include</INCLUDE>
            <LIB>$(#WXWIDGETS)\lib</LIB>
            <WX_CFG>&quot;&quot;</WX_CFG>
            <WX_VERSION>31</WX_VERSION>
            <WX_SUFFIX>u</WX_SUFFIX>
        </wxwidgets>
        <discount>
            <BASE>D:\Andrew_Development\Libraries\discount_win64</BASE>
            <INCLUDE>$(#DISCOUNT)</INCLUDE>
            <LIB>$(#DISCOUNT)</LIB>
        </discount>
        <cb_build>
            <BASE>D:\Andrew_Development\Work_Installers\CodeBLocks_Private_Experimental\src</BASE>
            <INCLUDE>$(#CB_BUILD)\include</INCLUDE>
            <CFLAGS>-g -O0 -ggdb</CFLAGS>
            <OSBITS>64</OSBITS>
            <CPP_STD>gnu++17</CPP_STD>
        </cb_build>
        <boost>
            <BASE>D:\Andrew_Development\Libraries\boost</BASE>
            <INCLUDE>$(#BOOST)</INCLUDE>
        </boost>
    </cb_win64>
</CodeBlocksGlobalVariableExportConfig>

--- End code ---
P.S. The files include references to plugins and other items that you may not have as these files are from my local build directory and NOT from the CB SVN source tree. If you hit an issue diff the <TBA>_wx31_64.[cbp|workspace] against the <TBA>Windows.[cbp|workspace] file that you have an issue with.

AndrewCot:
Using the workspace/project files in the 7z file from the previous post makes it a allot easier to upgrade from wxWidget 3.1.5 to 3.1.6 as you can change one global variable and the recompile and you are done. The only catch is you must have already built wxWidget 3.1.6

Navigation

[0] Message Index

[*] Previous page

Go to full version