aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/lua/CMakeLists.windows-x86_64.txt
blob: eae8e899a2da932db5750669b81ca71e1c9162e5 (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
47
48
49
50
51
52
53
54
55
56
# 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.


get_built_tool_path(
  TOOL_archiver_bin
  TOOL_archiver_dependency
  tools/archiver
  archiver
)

add_library(contrib-libs-lua)
target_compile_options(contrib-libs-lua PRIVATE
  -DLUA_WIN
  $<IF:$<CXX_COMPILER_ID:MSVC>,,-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
  ${TOOL_archiver_bin}
  ${CMAKE_SOURCE_DIR}/contrib/libs/lua/common/stdlib.lua
  ${CMAKE_SOURCE_DIR}/contrib/libs/lua/common/json.lua
  COMMAND
  ${TOOL_archiver_bin}
  -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
)
if(NOT CMAKE_CROSSCOMPILING)
  add_dependencies(contrib-libs-lua
    archiver
)
endif()