Changeset 226 for SConstruct


Ignore:
Timestamp:
04/05/11 15:01:41 (13 years ago)
Author:
tim
Message:

several fixes for pyregfi Windows portability
better error handling within pyregfi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SConstruct

    r225 r226  
    1 cflags = '-std=gnu99 -pedantic -Wall'
     1cflags = '-std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -DREGFI_WIN32'
    22
    33libiconv_path='win32/libiconv/'
     
    100100                regfi_obj.append(s[0:-1]+'o')
    101101
     102            # XXX: Several options here may not be necessary. 
     103            #      Need to investigate why stdcall interfaces don't seem to be
     104            #      working on Windows.
    102105            env.Command(input_prefix+'lib/libregfi.o', regfi_o+extra_obj,
    103106                        'i586-mingw32msvc-dlltool --export-all-symbols'
    104                         +' --dllname libregfi.dll -e $TARGET'
     107                        +' --add-stdcall-alias  --dllname libregfi.dll -e $TARGET'
    105108                        +' -l %slib/libregfi.dll.a %s'
    106109                        % (input_prefix, ' '.join(regfi_obj)))
     
    108111            env.Command(input_prefix+'lib/libregfi.dll',
    109112                        input_prefix+'lib/libregfi.o',
    110                         'i586-mingw32msvc-gcc --shared -o $TARGET $SOURCE %s'
     113                        'i586-mingw32msvc-gcc ' + cflags
     114                        + ' --shared -Wl,--out-implib -add-stdcall-alias -o $TARGET $SOURCE %s'
    111115                        % ' '.join(regfi_obj+extra_obj))
    112116
Note: See TracChangeset for help on using the changeset viewer.