File tree 4 files changed +18
-6
lines changed
Library/Include/Public/Refureku
4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -98,13 +98,18 @@ jobs:
98
98
- name : Run Tests
99
99
run : |
100
100
cd Build/Release && ctest -C Release -V
101
+
102
+ - name : Install patchelf
103
+ run : sudo apt-get install patchelf
104
+
105
+ - name : Patch ELF RUNPATH
106
+ run : patchelf --set-rpath "\$ORIGIN" Build/Release/Bin/RefurekuGenerator
101
107
102
108
- name : Setup Binaries Artifact
103
109
run : |
104
110
mkdir RefurekuBinaries
105
111
mkdir RefurekuBinaries/Linux/
106
112
mkdir RefurekuBinaries/Linux/Bin
107
- mv Refureku/Generator/ThirdParty/Kodgen/Kodgen/ThirdParty/x64/Shared/libclang.so RefurekuBinaries/Linux/Bin/libclang.so
108
113
mv Refureku/Generator/ThirdParty/Kodgen/Kodgen/ThirdParty/x64/Shared/libclang.so.12 RefurekuBinaries/Linux/Bin/libclang.so.12
109
114
mv Build/Release/Bin/RefurekuGenerator RefurekuBinaries/Linux/Bin/
110
115
mv Build/Release/Bin/libRefureku.so RefurekuBinaries/Linux/Bin/
@@ -153,6 +158,12 @@ jobs:
153
158
- name : Run Tests
154
159
run : cd Build/Release && ctest -C Release -V
155
160
161
+ # The 2nd command (install_name_tool -change) is probably wrong since the first argument (libclang.dylib) is not a valid path in the exe
162
+ - name : Patch RPATH
163
+ run : |
164
+ install_name_tool -add_rpath @executable_path Build/Release/Bin/RefurekuGenerator
165
+ install_name_tool -change libclang.dylib @rpath/libclang.dylib Build/Release/Bin/RefurekuGenerator
166
+
156
167
- name : Setup Binaries Artifact
157
168
run : |
158
169
mkdir RefurekuBinaries
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.5 )
1
+ cmake_minimum_required (VERSION 3.14.0 )
2
2
3
3
project (Refureku)
4
4
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.5 )
1
+ cmake_minimum_required (VERSION 3.14.0 )
2
2
3
3
project (RefurekuGenerator)
4
4
@@ -8,9 +8,9 @@ add_subdirectory(ThirdParty/Kodgen)
8
8
set (RefurekuGeneratorExeTarget RefurekuGenerator)
9
9
add_executable (${RefurekuGeneratorExeTarget} Source /main.cpp)
10
10
11
- target_include_directories (${RefurekuGeneratorExeTarget} PUBLIC Include )
11
+ target_include_directories (${RefurekuGeneratorExeTarget} PRIVATE Include )
12
12
13
- target_link_libraries (${RefurekuGeneratorExeTarget} PUBLIC Kodgen)
13
+ target_link_libraries (${RefurekuGeneratorExeTarget} PRIVATE Kodgen)
14
14
15
15
if (RFK_DEV)
16
16
@@ -33,7 +33,7 @@ if (MSVC)
33
33
else () # Clang or GCC
34
34
35
35
target_compile_options (${RefurekuGeneratorExeTarget} PRIVATE -Wall -Wextra -Wpedantic)
36
-
36
+
37
37
endif ()
38
38
39
39
Original file line number Diff line number Diff line change 11
11
#define REFUREKU_VERSION_MAJOR 2
12
12
#define REFUREKU_VERSION_MINOR 0
13
13
#define REFUREKU_VERSION_PATCH 1
14
+ #define REFUREKU_VERSION (REFUREKU_VERSION_MAJOR * 10000 + REFUREKU_VERSION_MINOR * 100 + REFUREKU_VERSION_PATCH)
14
15
15
16
//Features
16
17
#if !defined(_MSC_VER ) || defined(__clang__ )
You can’t perform that action at this time.
0 commit comments