Skip to content

Commit

Permalink
patchelf: Add patchelf and wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
longjunyu2 committed Aug 29, 2024
1 parent b6837a0 commit 76f14be
Show file tree
Hide file tree
Showing 7 changed files with 7,429 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wno-unused-function -Wimplicit-function
#add_subdirectory(proot)
add_subdirectory(virglrenderer)
add_subdirectory(OpenXR-SDK)
add_subdirectory(patchelf)

add_library(winlator SHARED
xr/engine.c
Expand All @@ -19,7 +20,8 @@ add_library(winlator SHARED
winlator/gpu_image.c
winlator/sysvshared_memory.c
winlator/xconnector_epoll.c
winlator/alsa_client.c)
winlator/alsa_client.c
winlator/patchelf_wrapper.cpp)

target_link_libraries(winlator
log
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/cpp/patchelf/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.22.1)

project(PatchElf)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")

include_directories(src)

add_library(patchelf SHARED
src/patchelf.cc)

target_link_libraries(patchelf)
Loading

0 comments on commit 76f14be

Please sign in to comment.