aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/lua/CMakeLists.darwin.txt
blob: c90aa7f2a23b4fed1e3579d05f7659d9423601a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This file was generated by the build system used internally in the Yandex monorepo.
# Only simple modifications are allowed (adding source-files to targets, adding simple properties
# like target_include_directories). These modifications will be ported to original
# ya.make files by maintainers. Any complex modifications which can't be ported back to the
# original buildsystem will not be accepted.



add_library(contrib-libs-lua)
target_compile_options(contrib-libs-lua PRIVATE
  -DLUA_USE_MACOSX
  -Wno-everything
)
target_include_directories(contrib-libs-lua PUBLIC
  ${CMAKE_BINARY_DIR}/contrib/libs/lua
)
target_include_directories(contrib-libs-lua PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/lua/lua-5.2.0/src
)
target_link_libraries(contrib-libs-lua PUBLIC
  contrib-libs-cxxsupp
  yutil
  library-cpp-archive
)
target_sources(contrib-libs-lua PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/lua/lib.cpp
  ${CMAKE_BINARY_DIR}/contrib/libs/lua/common.inc
)
add_custom_command(
  OUTPUT
  ${CMAKE_BINARY_DIR}/contrib/libs/lua/common.inc
  DEPENDS
  ${TOOLS_ROOT}/tools/archiver/archiver
  ${CMAKE_SOURCE_DIR}/contrib/libs/lua/common/stdlib.lua
  ${CMAKE_SOURCE_DIR}/contrib/libs/lua/common/json.lua
  COMMAND
  ${TOOLS_ROOT}/tools/archiver/archiver
  -q
  -x
  ${CMAKE_SOURCE_DIR}/contrib/libs/lua/common/stdlib.lua:
  ${CMAKE_SOURCE_DIR}/contrib/libs/lua/common/json.lua:
  -o
  ${CMAKE_BINARY_DIR}/contrib/libs/lua/common.inc
)