LuaBridge3 icon indicating copy to clipboard operation
LuaBridge3 copied to clipboard

Support for vcpkg

Open BritishPiper opened this issue 3 years ago • 3 comments

The latest LuaBridge2 supports using vcpkg (https://vcpkg.info/port/luabridge).

Are there any plans to also include luabridge3?

BritishPiper avatar Nov 15 '21 13:11 BritishPiper

Yeah nice idea, need to only understand what's needed to make a package. Do you know what are the steps to get a library into vcpkg ?

p.s. What about conan?

kunitoki avatar Nov 24 '21 22:11 kunitoki

I found it easy to add to vcpkg by adding these files to vcpkg/ports/luabridge3/

luabridge3.zip

portfile.cmake

vcpkg_from_github(
	OUT_SOURCE_PATH SOURCE_PATH
	REPO kunitoki/LuaBridge3 
	REF 46963493b262ca81e432285a522455eaeb2aae10
	SHA512 a901fd9979b06ddb1a7b27d311d59c03dddc3de309c8a784b3b9c1632818d3186b5ab03f49b396f3a064562d123489ad71c5ddd7179e37bd15bcccf892075b04
	HEAD_REF master
)

file(
	COPY ${SOURCE_PATH}/Source/LuaBridge
	DESTINATION ${CURRENT_PACKAGES_DIR}/include
)

configure_file(
	${SOURCE_PATH}/README.md
	${CURRENT_PACKAGES_DIR}/share/luabridge3/copyright
	COPYONLY
)

vcpkg.json:

{
	  "name": "luabridge3",
	  "version-string": "3",
	  "port-version": 1,
	  "description": "A lightweight, dependency-free library for binding Lua to C++"
}

galsjel avatar Apr 15 '22 01:04 galsjel

PR is being opened https://github.com/microsoft/vcpkg/pull/26600

kunitoki avatar Aug 30 '22 22:08 kunitoki

Merged!

Will bump vcpkg support as soon as we release new versions

kunitoki avatar Oct 06 '22 17:10 kunitoki