Skip to content

Commit

Permalink
Replace elf library hack by linking to libappimage
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Sep 5, 2018
1 parent 4858930 commit 66d4537
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 256 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
[submodule "lib/sanitizers-cmake"]
path = lib/sanitizers-cmake
url = https://github.com/arsenm/sanitizers-cmake
[submodule "lib/libappimage"]
path = lib/libappimage
url = https://github.com/AppImage/libappimage.git
17 changes: 0 additions & 17 deletions cmake/DownloadProject.CMakeLists.cmake.in

This file was deleted.

21 changes: 0 additions & 21 deletions cmake/DownloadProject.LICENSE.txt

This file was deleted.

182 changes: 0 additions & 182 deletions cmake/DownloadProject.cmake

This file was deleted.

2 changes: 2 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
add_subdirectory(zsync2 EXCLUDE_FROM_ALL)

add_subdirectory(libappimage EXCLUDE_FROM_ALL)
1 change: 1 addition & 0 deletions lib/libappimage
Submodule libappimage added at 39037a
11 changes: 6 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ add_definitions("-DBUILD_DATE=\"${DATE}\"")
add_definitions("-DBUILD_NUMBER=\"${BUILD_NUMBER}\"")


# include ELF micro library
add_subdirectory(elf)


# core library
add_library(
libappimageupdate
Expand All @@ -41,7 +37,12 @@ set_target_properties(libappimageupdate
PUBLIC_HEADER ${PROJECT_SOURCE_DIR}/include/appimage/update.h
)
# link thread libraries
target_link_libraries(libappimageupdate PUBLIC elf PRIVATE ${CMAKE_THREAD_LIBS_INIT} libzsync2 ${CPR_LIBRARIES})
target_link_libraries(libappimageupdate
PUBLIC libappimage_shared
PRIVATE ${CMAKE_THREAD_LIBS_INIT}
PRIVATE libzsync2
PRIVATE ${CPR_LIBRARIES}
)
# include directories, publicly
target_include_directories(libappimageupdate PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
Expand Down
31 changes: 0 additions & 31 deletions src/elf/CMakeLists.txt

This file was deleted.

0 comments on commit 66d4537

Please sign in to comment.