|
994 | 994 |
|
995 | 995 | -- do build for msvc
|
996 | 996 | function _build_for_msvc(package, configs, opt)
|
997 |
| - local slnfile = assert(find_file("*.sln", os.curdir()), "*.sln file not found!") |
998 |
| - msbuild.build(package, {slnfile, "-t:Rebuild"}) |
| 997 | + local allbuild = os.isfile("ALL_BUILD.vcxproj") and "ALL_BUILD.vcxproj" or "ALL_BUILD.vcproj" |
| 998 | + assert(os.isfile(allbuild), "ALL_BUILD project not found!") |
| 999 | + msbuild.build(package, {allbuild, "-t:Rebuild"}) |
999 | 1000 | end
|
1000 | 1001 |
|
1001 | 1002 | -- do build for make
|
@@ -1056,8 +1057,9 @@ end
|
1056 | 1057 |
|
1057 | 1058 | -- do install for msvc
|
1058 | 1059 | function _install_for_msvc(package, configs, opt)
|
1059 |
| - local slnfile = assert(find_file("*.sln", os.curdir()), "*.sln file not found!") |
1060 |
| - msbuild.build(package, {slnfile, "-t:Rebuild", "/nr:false"}) |
| 1060 | + local allbuild = os.isfile("ALL_BUILD.vcxproj") and "ALL_BUILD.vcxproj" or "ALL_BUILD.vcproj" |
| 1061 | + assert(os.isfile(allbuild), "ALL_BUILD project not found!") |
| 1062 | + msbuild.build(package, {allbuild, "-t:Rebuild", "/nr:false"}) |
1061 | 1063 | local projfile = os.isfile("INSTALL.vcxproj") and "INSTALL.vcxproj" or "INSTALL.vcproj"
|
1062 | 1064 | if os.isfile(projfile) then
|
1063 | 1065 | msbuild.build(package, {projfile})
|
|
0 commit comments