mirror of
https://github.com/Cateners/tiny_computer.git
synced 2026-05-20 16:35:47 +08:00
Termux x11 port
This commit is contained in:
9
android/app/src/main/cpp/recipes/xorgproto.cmake
Normal file
9
android/app/src/main/cpp/recipes/xorgproto.cmake
Normal file
@@ -0,0 +1,9 @@
|
||||
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/X11")
|
||||
file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/X11/XlibConf.h" CONTENT "\n#pragma once\n#define XTHREADS 1\n#define XUSE_MTSAFE_API 1")
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink "${CMAKE_CURRENT_SOURCE_DIR}/libxtrans" "${CMAKE_CURRENT_BINARY_DIR}/X11/Xtrans")
|
||||
|
||||
add_library(xorgproto INTERFACE)
|
||||
target_include_directories(xorgproto INTERFACE "xorgproto/include")
|
||||
set(USE_FDS_BITS 1)
|
||||
configure_file("xorgproto/include/X11/Xpoll.h.in" "${CMAKE_CURRENT_BINARY_DIR}/X11/Xpoll.h" @ONLY)
|
||||
target_apply_patch(Xtrans "${CMAKE_CURRENT_SOURCE_DIR}/libxtrans" "${CMAKE_CURRENT_SOURCE_DIR}/patches/Xtrans.patch")
|
||||
Reference in New Issue
Block a user