Commit Graph

21 Commits

Author SHA1 Message Date
Ruitard
29fd45c883
[lua] cmake link library is absolute path (#30922)
* [lua] cmake_minimum_required should before project

* [lua] link dl not use absolute path

* [lua] update port-version
2023-04-18 16:58:56 -07:00
Tobias Funk
b41bc7cfed
[lua] Fix compiler error of lua[tools] (#29897)
* Fix linux tools can't compile with undefined reference to `sin'

* update port version

* update baseline.json

* fix duplicate FIND_LIBRARY (LIB_MATH NAMES m) & fix linking of luac is missing math libs

* update lua port version in version database

---------

Co-authored-by: tobias.funk <tobias.funk@nortonlifelock.com>
2023-03-01 10:41:21 -08:00
autoantwort
aaded72a03
[lua] fix tool feature (#29176) 2023-01-25 12:25:56 -08:00
Ruitard
ceb291e236
[lua] Fix CMake LINK_INTERFACE_LIBRARIES (#28027)
* [lua] Fix CMake LINK_INTERFACE_LIBRARIES

* [lua] update port-version
2022-11-28 10:21:55 -08:00
Jack·Boos·Yu
32d25e6b85
[lua] Fix library type and usage (#24436)
* [lua] Fix library type and usage

* version

* Use c code in executables

* version

* Apply suggestion

* version

* Add an extra CMakeLists.txt to avoid scope pollution of SET_SOURCE_FILES_PROPERTIES

* version

* Apply suggestions

* version

* Various nitpicks:

* Use "supports" on features rather than if tests plus message FATAL_ERROR
* Deduplicate ENABLE_LUA_CPP and COMPILE_AS_CPP
* Add quotes.
* Use file(INSTALL rather than configure_file(COPYONLY)

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2022-05-13 15:02:20 -07:00
Jack·Boos·Yu
1dfb5d9d2f
[lua] Export cmake targets, rewrite CMakeLists and delete usage (#15921) 2021-08-11 17:27:43 -07:00
Park DongHa
1045e88e42
[lua] support iOS triplets (#16107)
* [lua] support iOS triplets

* separate interpreter/compiler to lua[tools] feature
* update git-tree SHA

* [lua] revert feature separation

* [lua] update port SHA

* [lua] make 'tools' default-feature

* set `ENABLE_LUA_CPP` for cmake wrapper

* [lua] fix after collision

* Update ports/lua/portfile.cmake

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* Update ports/lua/portfile.cmake

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* [lua] import TargetConditionals for apple platform

* Update ports/lua/vcpkg.json

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* Update ports/lua/portfile.cmake

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* [lua] remove negations for 'tool' config

use FEATURES instread of INVERTED_FEATURES to prevent confusions

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-04-19 17:13:08 -07:00
JonLiu1993
09fe2c31fd
[lua] update to 5.4.0 (#12352) 2020-10-30 11:52:40 -07:00
Kevin Lu
147f02caff
[lua] Compile as position-independent code (#11163) 2020-05-07 23:32:21 -07:00
Kevin Lu
8ca8de6926 [lua] Add [cpp] feature to additionally build lua-c++ (#7101)
* [lua] Add [cpp] feature to build lua-c++

* [lua] Switch tab for spaces in CMakeLists, set version to 5.3.5-2 as requested

* Use spaces for indentation
2019-07-02 13:49:17 -07:00
TitanSnow
a462daf251 [lua] Upgrade to 5.3.5 and add support for Linux and macOS (#6515)
* upgrade lua to 5.3.5

* support POSIX systems

* bump version in CONTROL file

* -lm

* fix copyright check

* don't use c89 on windows

vs2015 already supports c99

* correct vcpkg_extract_source_archive_ex usage and platform detection

* fix FreeBSD
2019-05-18 14:33:05 -07:00
Robert Schumacher
1211c77766 [lua] Move tools to /tools/lua 2017-10-17 15:08:30 -07:00
alex85k
6fb6abba22 [lua] fix static build 2017-10-17 22:29:34 +05:00
Stephen E. Baker
493d94e296 Dynamically link lua.dll to lua.exe
For lua.exe to load C modules which are linked against lua, it must itself be
linked against lua, otherwise loading the module fails.
2017-09-27 21:24:38 -04:00
Robert Schumacher
3e0dc1e81e [lua] Expanded comment on COMPILE_AS_CPP 2017-03-02 07:16:46 -08:00
codicodi
b9b27e72d3 [lua] add comment about new option 2017-03-02 16:02:45 +01:00
codicodi
1551d9942e [lua] update to 5.3.4 2017-03-02 14:59:32 +01:00
codicodi
3d58393ad2 [lua] don't export from executables 2016-12-24 02:02:55 +01:00
codicodi
fd74c49a5f [lua] add interpreter and compiler 2016-12-04 19:11:01 +01:00
Robert Schumacher
d3a453e638 [lua] Reduce post-install work needed in portfile by adding them to CMakeLists.txt 2016-10-07 14:49:49 -07:00
Adam Martin
ea65c0e5ba [lua] Initial addition 2016-10-07 15:54:12 -05:00