include src/os/*.cpp

This commit is contained in:
Doug MacEachern 2009-08-05 17:22:08 -07:00
parent 7ccd02ef91
commit c6e8679079
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ sub flags {
push @cppflags, '-U_FILE_OFFSET_BITS'; push @cppflags, '-U_FILE_OFFSET_BITS';
} }
my(@src) = (<../../src/*.c>, <../../src/os/$os/*.c>); my(@src) = (<../../src/*.c>, <../../src/os/$os/*.c>, <../../src/os/$os/*.cpp>);
return { return {
is_win32 => $is_win32, is_win32 => $is_win32,

View File

@ -94,7 +94,7 @@ system('perl -Mlib=.. -MSigarBuild -e version_file ' +
$distcleanfiles = ['rbsigar_generated.rx','sigar_version.c'] $distcleanfiles = ['rbsigar_generated.rx','sigar_version.c']
#XXX seems mkmf forces basename on srcs #XXX seems mkmf forces basename on srcs
#XXX should be linking against libsigar anyhow #XXX should be linking against libsigar anyhow
(Dir["../../src/*.c"] + Dir["#{osdir}/*.c"]).each do |file| (Dir["../../src/*.c"] + Dir["#{osdir}/*.c"] + Dir["#{osdir}/*.cpp"]).each do |file|
cf = File.basename(file) cf = File.basename(file)
print file + ' -> ' + cf + "\n" print file + ' -> ' + cf + "\n"
if is_win32 if is_win32