aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/lua/CMakeLists.linux-aarch64.txt
blob: 382b8b648ce15ce7c9994246428ab25195505627 (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
46
# 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_LINUX
  -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-linux-headers
  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
)