Bugs item #1307806, was opened at 2005-09-29 03:08
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1307806&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Adal Chiriliuc (adalx)
Assigned to: Nobody/Anonymous (nobody)
Summary: PCbuild vcproj project files need a cleanup

Initial Comment:
The Visual Studio .NET vcproj files were probably
generated by importing the older Visual C++ 6.0 dsp
files and saving them back into the new format. The
convertor is not perfect. The bigest problem it has
it's the handling of the configuration macro defines.
Instead of defining the used macros once for each
configuration, it defines them for each individual
file. This causes file bloat and could cause problems
when new files are added to the project since we could
get builds with mixed defines due to the $(NoInherit)
flag which makes the compiler ignore global defines.

For example, the current pythoncore.vcproj file has 100
KB. A cleaned up version is less than 25 KB.

NOW:
<File
        RelativePath="..\Parser\acceler.c">
        <FileConfiguration
                Name="Release|Win32">
                <Tool
                        Name="VCCLCompilerTool"
                        Optimization="2"
                        AdditionalIncludeDirectories=""
                
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;USE_DL_EXPORT;$(NoInherit)"/>
        </FileConfiguration>
        <FileConfiguration
                Name="Debug|Win32">
                <Tool
                        Name="VCCLCompilerTool"
                        Optimization="0"
                        AdditionalIncludeDirectories=""
                
PreprocessorDefinitions="_DEBUG;USE_DL_EXPORT;WIN32;_WINDOWS;$(NoInherit)"/>
        </FileConfiguration>
        <FileConfiguration
                Name="ReleaseItanium|Win32">
                <Tool
                        Name="VCCLCompilerTool"
                        Optimization="2"
                        AdditionalIncludeDirectories=""
                
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;USE_DL_EXPORT;$(NoInherit)"/>
        </FileConfiguration>
</File>

CLEANED-UP:
<File
        RelativePath="..\Parser\acceler.c">
</File>

There are a couple of files which require custom options:

..\Modules\getbuildinfo.c -                                     
PreprocessorDefinitions="BUILD=67"

..\PC\import_nt.c -                                     
AdditionalIncludeDirectories="..\Python"


----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2005-10-03 12:56

Message:
Logged In: YES 
user_id=33168

Can you provide a patch (attach to this bug report if
possible) for what the new file should look like?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1307806&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to