|
@@ -18,7 +18,7 @@ package("raw_pdb")
|
|
table.insert(configs, "-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON")
|
|
table.insert(configs, "-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON")
|
|
end
|
|
end
|
|
|
|
|
|
- if package:version():ge("2024.08.27") then
|
|
|
|
|
|
+ if package:gitref() or package:version():ge("2024.08.27") then
|
|
io.replace("src/CMakeLists.txt", "if (UNIX)", "if(1)", {plain = true})
|
|
io.replace("src/CMakeLists.txt", "if (UNIX)", "if(1)", {plain = true})
|
|
import("package.tools.cmake").install(package, configs)
|
|
import("package.tools.cmake").install(package, configs)
|
|
if is_host("windows") then
|
|
if is_host("windows") then
|
|
@@ -44,7 +44,7 @@ package("raw_pdb")
|
|
end)
|
|
end)
|
|
|
|
|
|
on_test(function (package)
|
|
on_test(function (package)
|
|
- if package:version():ge("2024.08.27") then
|
|
|
|
|
|
+ if package:gitref() or package:version():ge("2024.08.27") then
|
|
assert(package:has_cxxfuncs("PDB::ValidateFile(0, 0)", {includes = {"cstddef", "raw_pdb/PDB.h"}}))
|
|
assert(package:has_cxxfuncs("PDB::ValidateFile(0, 0)", {includes = {"cstddef", "raw_pdb/PDB.h"}}))
|
|
else
|
|
else
|
|
assert(package:has_cxxfuncs("PDB::ValidateFile(0)", {includes = "PDB.h"}))
|
|
assert(package:has_cxxfuncs("PDB::ValidateFile(0)", {includes = "PDB.h"}))
|