|
|
@ -7,9 +7,10 @@ package("mio") |
|
|
|
|
|
|
|
|
|
|
|
add_urls("https://github.com/mandreyel/mio.git") |
|
|
|
add_urls("https://github.com/mandreyel/mio.git") |
|
|
|
add_versions("2021.9.21", "3f86a95c0784d73ce6815237ec33ed25f233b643") |
|
|
|
add_versions("2021.9.21", "3f86a95c0784d73ce6815237ec33ed25f233b643") |
|
|
|
|
|
|
|
add_versions("2023.3.3", "8b6b7d878c89e81614d05edca7936de41ccdd2da") |
|
|
|
|
|
|
|
|
|
|
|
add_deps("cmake") |
|
|
|
add_deps("cmake") |
|
|
|
on_install("linux", "macosx", "bsd", "iphoneos", "android", function (package) |
|
|
|
on_install("windows", "linux", "macosx", "bsd", "iphoneos", "android", function (package) |
|
|
|
import("package.tools.cmake").install(package, {"-Dmio.tests=OFF"}) |
|
|
|
import("package.tools.cmake").install(package, {"-Dmio.tests=OFF"}) |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
@ -22,7 +23,7 @@ package("mio") |
|
|
|
#include <mio/mmap.hpp> |
|
|
|
#include <mio/mmap.hpp> |
|
|
|
|
|
|
|
|
|
|
|
static void test() { |
|
|
|
static void test() { |
|
|
|
mio::mmap_source mmap(0, 0, mio::map_entire_file); |
|
|
|
mio::mmap_source mmap(mio::invalid_handle, 0, mio::map_entire_file); |
|
|
|
} |
|
|
|
} |
|
|
|
]] |
|
|
|
]] |
|
|
|
}, {configs = {languages = "c++11"}})) |
|
|
|
}, {configs = {languages = "c++11"}})) |
|
|
|