You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
582 B
22 lines
582 B
6 years ago
|
|
||
6 years ago
|
local function getenv(name) return os_getenv(name) or '' end
|
||
6 years ago
|
|
||
|
-- cross-compilation
|
||
|
|
||
6 years ago
|
variables.LUA_INCDIR = getenv('TARGET_INCLUDE_DIR')
|
||
|
variables.LUA_LIBDIR = getenv('TARGET_LIB_DIR')
|
||
|
variables.CC = getenv('TARGET_CC')
|
||
|
variables.LD = getenv('TARGET_LD')
|
||
6 years ago
|
variables.CFLAGS = getenv('TARGET_CFLAGS')
|
||
|
variables.LDFLAGS = getenv('TARGET_LDFLAGS')
|
||
6 years ago
|
variables.LIBFLAG = [[-shared ]] .. getenv('TARGET_LDFLAGS')
|
||
6 years ago
|
|
||
6 years ago
|
external_deps_dirs = { getenv('TARGET_DIR') }
|
||
|
gcc_rpath = false
|
||
|
wrap_bin_scripts = false
|
||
|
deps_mode = [[none]]
|
||
6 years ago
|
|
||
|
-- overriding rocks_trees
|
||
|
|
||
|
rocks_trees = { getenv('TARGET_DIR') }
|