diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 13:19:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 13:20:02 +0000 |
commit | 58daab21cd043e1dc37024a7f99b396788372918 (patch) | |
tree | 96771e43bb69f7c1c2b0b4f7374cb74d7866d0cb /fluent-bit/lib/luajit-cmake/Makefile | |
parent | Releasing debian version 1.43.2-1. (diff) | |
download | netdata-58daab21cd043e1dc37024a7f99b396788372918.tar.xz netdata-58daab21cd043e1dc37024a7f99b396788372918.zip |
Merging upstream version 1.44.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fluent-bit/lib/luajit-cmake/Makefile')
-rw-r--r-- | fluent-bit/lib/luajit-cmake/Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/fluent-bit/lib/luajit-cmake/Makefile b/fluent-bit/lib/luajit-cmake/Makefile new file mode 100644 index 00000000..93cf3d9f --- /dev/null +++ b/fluent-bit/lib/luajit-cmake/Makefile @@ -0,0 +1,48 @@ +ifeq ($(MAKE),mingw32-make) +CMAKE_OPTIONS += -G"MinGW Makefiles" +endif + +ifeq (${LUAJIT_DIR}, ) +LUAJIT_DIR = $(shell pwd)/../LuaJIT +endif +CMAKE_OPTIONS += -DLUAJIT_DIR=${LUAJIT_DIR} + +IOS_ARCH ?= armv7 + +.PHONY : all build install clean + +# Basic +all: build + cmake --build build --config Release + +install: all + cmake --install build + +build: + cmake -H. -Bbuild ${CMAKE_OPTIONS} + +clean: + @cmake -E remove_directory build + +lua: + cmake -H. -Bbuild -DLUA_DIR=$(shell pwd)/../lua + cmake --build build --config Release + +# Advance +iOS: + cmake -H. -Bbuild ${CMAKE_OPTIONS} \ + -DCMAKE_TOOLCHAIN_FILE=$(shell pwd)/Utils/ios.toolchain.cmake \ + -DIOS_PLATFORM=OS -DIOS_ARCH=$(IOS_ARCH) -DLUAJIT_DISABLE_JIT=1 \ + -DASM_FLAGS="-arch ${IOS_ARCH} -isysroot ${shell xcrun --sdk iphoneos --show-sdk-path}" + cmake --build build --config Release + +Android: + cmake -H. -Bbuild ${CMAKE_OPTIONS} \ + -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake + cmake --build build --config Release + +Windows: + cmake -H. -Bbuild ${CMAKE_OPTIONS} \ + -DCMAKE_TOOLCHAIN_FILE=${shell pwd}/Utils/windows.toolchain.cmake + cmake --build build --config Release + |