mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 14:19:07 +08:00
Merge pull request #383 from codicodi/add-lua-tools
[lua] install compiler and interpreter
This commit is contained in:
commit
50a85c3159
@ -41,6 +41,13 @@ INSTALL ( TARGETS lua
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
|
||||
)
|
||||
|
||||
IF (NOT DEFINED SKIP_INSTALL_TOOLS)
|
||||
ADD_EXECUTABLE ( luac src/luac.c ${SRC_LIBLUA} ) # compiler
|
||||
ADD_EXECUTABLE ( luai src/lua.c ${SRC_LIBLUA} ) # interpreter
|
||||
SET_TARGET_PROPERTIES ( luai PROPERTIES OUTPUT_NAME lua PDB_NAME luai )
|
||||
INSTALL ( TARGETS luai luac RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/tools )
|
||||
ENDIF ()
|
||||
|
||||
IF (NOT DEFINED SKIP_INSTALL_HEADERS)
|
||||
INSTALL(
|
||||
FILES
|
||||
@ -51,4 +58,4 @@ IF (NOT DEFINED SKIP_INSTALL_HEADERS)
|
||||
src/lauxlib.h
|
||||
DESTINATION include
|
||||
)
|
||||
ENDIF ()
|
||||
ENDIF ()
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: lua
|
||||
Version: 5.3.3
|
||||
Version: 5.3.3-1
|
||||
Description: a powerful, fast, lightweight, embeddable scripting language
|
||||
|
@ -21,6 +21,7 @@ vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS_DEBUG
|
||||
-DSKIP_INSTALL_HEADERS=ON
|
||||
-DSKIP_INSTALL_TOOLS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
Loading…
Reference in New Issue
Block a user