Changeset 2035


Ignore:
Timestamp:
Nov 26, 2007, 7:19:40 AM (17 years ago)
Author:
mloskot
Message:

Added common Property Sheet for Visual C++ projects where Python and Ruby macros/locations are defined. Fixed include of Python.h, see Ticket #164 for details.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r2033 r2035  
    66          source\headers\geos\version.h.vc: added test if used
    77          with Visual C++ compiler
     8        * build\msvc80\geos.vsprops,
     9        * build\msvc80\geos_python\geos_python.vcproj,
     10        * build\msvc80\geos_ruby\geos_ruby.vcproj: added common
     11          Property Sheet for Visual C++ projects where Python and
     12          Ruby macros/locations are defined.
     13        * swig\python\geos_wrap.cxx: Fixed include of Python.h,
     14          see Ticket #164 for details.
    815
    9162007-11-22 Mateusz Loskot <mateusz@loskot.net>
  • trunk/build/msvc80/geos_python/geos_python.vcproj

    r2010 r2035  
    2121                        IntermediateDirectory="$(ConfigurationName)"
    2222                        ConfigurationType="2"
     23                        InheritedPropertySheets="..\geos.vsprops"
    2324                        CharacterSet="1"
    2425                        >
     
    4142                                Name="VCCLCompilerTool"
    4243                                Optimization="0"
    43                                 AdditionalIncludeDirectories="..\..\..\source\headers;..\..\..\capi;C:\Development\Python25\include"
     44                                AdditionalIncludeDirectories="..\..\..\source\headers;..\..\..\capi;&quot;$(PYTHON_DIR)\include&quot;"
    4445                                PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;GEOS_PYTHON_EXPORTS"
    4546                                MinimalRebuild="true"
     
    6465                                OutputFile="$(ConfigurationName)\geos.dll"
    6566                                LinkIncremental="2"
    66                                 AdditionalLibraryDirectories="C:\Development\Python25\libs"
     67                                AdditionalLibraryDirectories="$(PYTHON_DIR)\libs"
    6768                                GenerateDebugInformation="true"
    6869                                SubSystem="2"
     
    99100                        IntermediateDirectory="$(ConfigurationName)"
    100101                        ConfigurationType="2"
     102                        InheritedPropertySheets="..\geos.vsprops"
    101103                        CharacterSet="1"
    102104                        WholeProgramOptimization="1"
     
    119121                        <Tool
    120122                                Name="VCCLCompilerTool"
    121                                 AdditionalIncludeDirectories="..\..\..\source\headers;..\..\..\capi;C:\Development\Python25\include"
     123                                AdditionalIncludeDirectories="..\..\..\source\headers;..\..\..\capi;$(PYTHON_DIR)\include"
    122124                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GEOS_PYTHON_EXPORTS"
    123125                                RuntimeLibrary="2"
     
    140142                                OutputFile="$(ConfigurationName)\geos.dll"
    141143                                LinkIncremental="1"
    142                                 AdditionalLibraryDirectories="C:\Development\Python25\libs"
     144                                AdditionalLibraryDirectories="$(PYTHON_DIR)\libs"
    143145                                GenerateDebugInformation="true"
    144146                                SubSystem="2"
  • trunk/build/msvc80/geos_ruby/geos_ruby.vcproj

    r2024 r2035  
    2121                        IntermediateDirectory="$(ConfigurationName)"
    2222                        ConfigurationType="2"
     23                        InheritedPropertySheets="..\geos.vsprops"
    2324                        CharacterSet="1"
    2425                        >
     
    4142                                Name="VCCLCompilerTool"
    4243                                Optimization="0"
    43                                 AdditionalIncludeDirectories="..\..\..\source\headers;..\..\..\capi;&quot;C:\Development\ruby\lib\ruby\1.8\i386-mswin32&quot;"
     44                                AdditionalIncludeDirectories="..\..\..\source\headers;..\..\..\capi;&quot;$(RUBY_INCLUDE_DIR)&quot;"
    4445                                PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;GEOS_RUBY_EXPORTS"
    4546                                MinimalRebuild="true"
     
    6364                                Name="VCLinkerTool"
    6465                                AdditionalDependencies="msvcrt-ruby18.lib"
    65                                 OutputFile="C:\Development\ruby\lib\ruby\site_ruby\1.8\i386-msvcrt\geos.dll"
     66                                OutputFile="$(RUBY_OUTPUT_DIR)\geos.dll"
    6667                                LinkIncremental="2"
    67                                 AdditionalLibraryDirectories="C:\Development\ruby\lib"
     68                                AdditionalLibraryDirectories="$(RUBY_LIB_DIR)"
    6869                                GenerateDebugInformation="true"
    6970                                SubSystem="2"
     
    100101                        IntermediateDirectory="$(ConfigurationName)"
    101102                        ConfigurationType="2"
     103                        InheritedPropertySheets="..\geos.vsprops"
    102104                        CharacterSet="1"
    103105                        WholeProgramOptimization="1"
     
    120122                        <Tool
    121123                                Name="VCCLCompilerTool"
     124                                AdditionalIncludeDirectories="..\..\..\source\headers;..\..\..\capi;&quot;$(RUBY_INCLUDE_DIR)&quot;"
    122125                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GEOS_RUBY_EXPORTS"
    123126                                RuntimeLibrary="2"
     
    138141                        <Tool
    139142                                Name="VCLinkerTool"
     143                                AdditionalDependencies="msvcrt-ruby18.lib"
     144                                OutputFile="$(RUBY_OUTPUT_DIR)\geos.dll"
    140145                                LinkIncremental="1"
     146                                AdditionalLibraryDirectories="$(RUBY_LIB_DIR)"
    141147                                GenerateDebugInformation="true"
    142148                                SubSystem="2"
  • trunk/swig/python/geos_wrap.cxx

    r2002 r2035  
    127127
    128128/* Python.h has to appear first */
     129#ifdef _DEBUG
     130#undef _DEBUG
    129131#include <Python.h>
     132#define _DEBUG
     133#undef _CRT_MANIFEST_RETAIL
     134#else
     135#include <Python.h>
     136#endif
    130137
    131138/* -----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.