File tree 7 files changed +39
-12
lines changed
7 files changed +39
-12
lines changed Original file line number Diff line number Diff line change 1
- [submodule "lib/zsync2 "]
2
- path = lib/zsync2
3
- url = https://github.com/AppImage/zsync2
4
1
[submodule "lib/fltk "]
5
2
path = lib/fltk
6
3
url = https://github.com/TheAssassin/fltk-1.3.4
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ option(ENABLE_SANITIZERS "Enable builds using sanitizers" off)
36
36
# install into proper dirs on Linux
37
37
include (GNUInstallDirs)
38
38
39
+ include (FetchContent)
40
+
39
41
option (USE_SYSTEM_ZSYNC2 OFF "Use existing libzsync2 installed on system (or inside CMAKE_PREFIX_PATH)" )
40
42
if (USE_SYSTEM_ZSYNC2)
41
43
set (USE_SYSTEM_CPR ON )
@@ -46,6 +48,16 @@ if(USE_SYSTEM_ZSYNC2)
46
48
47
49
# note: find_package calls must be made in the same or a parent scope
48
50
find_package (zsync2 REQUIRED)
51
+ else ()
52
+ function (import_zsync2)
53
+ FetchContent_Declare(zsync2
54
+ GIT_REPOSITORY https://github.com/AppImageCommunity/zsync2
55
+ GIT_TAG 2.0.0-alpha-1-20230304
56
+ )
57
+ FetchContent_MakeAvailable(zsync2)
58
+ endfunction ()
59
+
60
+ import_zsync2()
49
61
endif ()
50
62
51
63
option (USE_SYSTEM_LIBAPPIMAGE OFF "Use existing libappimage installed on system (or inside CMAKE_PREFIX_PATH)" )
@@ -54,8 +66,6 @@ if(USE_SYSTEM_LIBAPPIMAGE)
54
66
find_package (libappimage REQUIRED)
55
67
else ()
56
68
function (import_libappimage)
57
- include (FetchContent)
58
-
59
69
FetchContent_Declare(libappimage
60
70
GIT_REPOSITORY https://github.com/AppImageCommunity/libappimage
61
71
GIT_TAG 3467b20
@@ -77,9 +87,6 @@ if(NOT BUILD_LIBAPPIMAGEUPDATE_ONLY)
77
87
endif ()
78
88
endif ()
79
89
80
- # include external libraries
81
- add_subdirectory (lib)
82
-
83
90
# core source directory, contains its own CMakeLists.txt
84
91
add_subdirectory (src)
85
92
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ RUN apt-get update && \
16
16
libglib2.0-dev libcairo2-dev librsvg2-dev libfuse-dev git libcurl4-openssl-dev argagg-dev libgcrypt20-dev libboost-dev && \
17
17
wget -qO- https://artifacts.assassinate-you.net/prebuilt-cmake/cmake-v3.24.0-ubuntu_"$DIST"-"$ARCH".tar.gz | tar xzv -C/usr --strip-components=1
18
18
19
+ COPY ./install-gtest.sh /
20
+ RUN bash /install-gtest.sh
21
+
19
22
COPY pkgconfig/*.pc /usr/lib/i386-linux-gnu/pkgconfig/
20
23
RUN sed -i 's|x86_64|i386|g' /usr/lib/i386-linux-gnu/pkgconfig/*.pc
21
24
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ RUN apt-get update && \
16
16
libglib2.0-dev libcairo2-dev librsvg2-dev libfuse-dev git libcurl4-openssl-dev argagg-dev libgcrypt20-dev libboost-dev && \
17
17
wget -qO- https://artifacts.assassinate-you.net/prebuilt-cmake/cmake-v3.24.0-ubuntu_"$DIST"-"$ARCH".tar.gz | tar xzv -C/usr --strip-components=1
18
18
19
+ COPY ./install-gtest.sh /
20
+ RUN bash /install-gtest.sh
21
+
19
22
COPY pkgconfig/*.pc /usr/lib/x86_64-linux-gnu/pkgconfig/
20
23
21
24
COPY entrypoint.sh /
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -euxo pipefail
4
+
5
+ tempdir=" $( mktemp -d) "
6
+
7
+ _cleanup () {
8
+ [[ -d " $tempdir " ]] && rm -r " $tempdir "
9
+ }
10
+ trap _cleanup EXIT
11
+
12
+ cd " $tempdir "
13
+
14
+ git clone https://github.com/google/googletest -b v1.13.0 .
15
+
16
+ mkdir build
17
+ cd build
18
+
19
+ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
20
+ make -j6
21
+ make install
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments