Update build scripts to match uv.gyp

https://github.com/dotnet/coreclr/issues/1466
This commit is contained in:
Stephen Halter 2016-04-07 12:16:30 -07:00
Родитель b4863e8af2
Коммит 23ab4a640e
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -67,7 +67,7 @@ var FULL_VERSION = '${PRODUCT_VERSION + "-" + E("DOTNET_BUILD_VERSION")}'
var sources = string.Join(" ", sourceFiles);
Exec(CLANG,
string.Format("{0} -fPIC -shared -o {1} -I{2}/include -I{2}/src -Wall -Wextra -Wno-unused-parameter -g --std=gnu89 -pedantic -D_DARWIN_USE_64_BIT_INODE=1 -D_DARWIN_UNLIMITED_SELECT=1 -arch i386 -arch x86_64",
string.Format("{0} -lm -pthread -fPIC -shared -o {1} -I{2}/include -I{2}/src -Wall -Wextra -Wno-unused-parameter -g --std=gnu89 -pedantic -D_DARWIN_USE_64_BIT_INODE=1 -D_DARWIN_UNLIMITED_SELECT=1 -D_BUILDING_UV_SHARED=1 -arch i386 -arch x86_64",
sources, outputPath, libuvRoot));
}
@ -92,7 +92,7 @@ var FULL_VERSION = '${PRODUCT_VERSION + "-" + E("DOTNET_BUILD_VERSION")}'
var sources = string.Join(" ", sourceFiles);
Exec(CLANG,
string.Format("{0} -fPIC -shared -o {1} -I{2}/include -I{2}/src -Wall -Wextra -Wno-unused-parameter -g --std=gnu89 -pedantic -D_GNU_SOURCE", sources, outputPath, libuvRoot));
string.Format("{0} -lm -pthread -ldl -lrt -fPIC -shared -o {1} -I{2}/include -I{2}/src -Wall -Wextra -Wno-unused-parameter -Wstrict-aliasing -g --std=gnu89 -pedantic -D_GNU_SOURCE -D_BUILDING_UV_SHARED=1", sources, outputPath, libuvRoot));
}
#nuget-pack target='package' if='CanBuildForDarwin'

Просмотреть файл

@ -85,6 +85,7 @@
<ClCompile Include="..\..\submodules\libuv\src\win\process-stdio.c"/>
<ClCompile Include="..\..\submodules\libuv\src\win\req.c"/>
<ClCompile Include="..\..\submodules\libuv\src\win\signal.c"/>
<ClCompile Include="..\..\submodules\libuv\src\win\snprintf.c"/>
<ClCompile Include="..\..\submodules\libuv\src\win\stream.c"/>
<ClCompile Include="..\..\submodules\libuv\src\win\tcp.c"/>
<ClCompile Include="..\..\submodules\libuv\src\win\tty.c"/>