Changeset 10447


Ignore:
Timestamp:
Dec 4, 2006 1:43:00 PM (9 years ago)
Author:
tamas
Message:

Support for the dynamic linkage of the gdal dll (static remains the default)

Location:
trunk/swig/csharp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/swig/csharp/csharp.opt

    r10002 r10447  
    77#Uncomment the following line if you want to compile with MONO on windows
    88#MONO = YES
     9
     10#Comment the following line out if you want to link against the gdal dll
     11CSHARP_STATIC_LINKAGE = YES
  • trunk/swig/csharp/makefile.vc

    r10385 r10447  
    1212#
    1313
    14 !INCLUDE ../../nmake.opt
     14GDAL_ROOT       =       ..\..
     15
     16!INCLUDE $(GDAL_ROOT)\nmake.opt
     17
    1518!INCLUDE csharp.opt
     19
     20!IFDEF CSHARP_STATIC_LINKAGE
     21GDALLIB = $(GDAL_ROOT)\gdal.lib
     22!ELSE
     23GDALLIB = $(GDAL_ROOT)\gdal_i.lib
     24!ENDIF
    1625
    1726!IFDEF MONO
     
    3241    $(CSC) /debug:full /target:library /out:gdal_osr_csharp.dll osr\*.cs
    3342    link /dll /debug $(OGR_INCLUDE) $(BASE_INCLUDE) ogr_wrap.obj \
    34                 $(EXTERNAL_LIBS) ..\..\gdal.lib\
     43                $(EXTERNAL_LIBS) $(GDALLIB)\
    3544                 /out:gdal_ogr_wrap.dll $(LINKER_FLAGS)
    3645        if exist gdal_ogr_wrap.dll.manifest mt -manifest gdal_ogr_wrap.dll.manifest -outputresource:gdal_ogr_wrap.dll;2
    3746    link /dll /debug $(OGR_INCLUDE) $(BASE_INCLUDE) gdal_wrap.obj \
    38                 $(EXTERNAL_LIBS) ..\..\gdal.lib\
     47                $(EXTERNAL_LIBS) $(GDALLIB)\
    3948                 /out:gdal_gdal_wrap.dll $(LINKER_FLAGS)
    4049        if exist gdal_gdal_wrap.dll.manifest mt -manifest gdal_gdal_wrap.dll.manifest -outputresource:gdal_gdal_wrap.dll;2
    4150    link /dll /debug $(OGR_INCLUDE) $(BASE_INCLUDE) gdalconst_wrap.obj \
    42                 $(EXTERNAL_LIBS) ..\..\gdal.lib\
     51                $(EXTERNAL_LIBS) $(GDALLIB)\
    4352                 /out:gdal_gdalconst_wrap.dll $(LINKER_FLAGS)
    4453        if exist gdal_gdalconst_wrap.dll.manifest mt -manifest gdal_gdalconst_wrap.dll.manifest -outputresource:gdal_ogr_wrap.dll;2
    4554    link /dll /debug $(OGR_INCLUDE) $(BASE_INCLUDE) osr_wrap.obj \
    46                 $(EXTERNAL_LIBS) ..\..\gdal.lib\
     55                $(EXTERNAL_LIBS) $(GDALLIB)\
    4756                 /out:gdal_osr_wrap.dll $(LINKER_FLAGS)
    4857        if exist gdal_osr_wrap.dll.manifest mt -manifest gdal_osr_wrap.dll.manifest -outputresource:gdal_osr_wrap.dll;2
Note: See TracChangeset for help on using the changeset viewer.