File tree 12 files changed +36
-0
lines changed
12 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ include (${WAMR_ROOT_DIR}/build-scripts/runtime_lib.cmake)
107
107
108
108
add_library (vmlib ${WAMR_RUNTIME_LIB_SOURCE} )
109
109
110
+ set_version_info (vmlib)
111
+
110
112
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections -pie -fPIE" )
111
113
112
114
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wformat -Wformat-security" )
@@ -135,6 +137,7 @@ endif()
135
137
136
138
set (distribution_DIR ${CMAKE_BINARY_DIR} /distribution)
137
139
set_target_properties (iwasm PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${distribution_DIR} /wasm/lib" )
140
+ set_version_info (iwasm)
138
141
139
142
add_custom_command (TARGET iwasm POST_BUILD
140
143
COMMAND "${CMAKE_COMMAND} " -E copy_directory "${WAMR_ROOT_DIR} /core/iwasm/include" "${distribution_DIR} /wasm/include/"
Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ include (${WAMR_ROOT_DIR}/build-scripts/runtime_lib.cmake)
132
132
check_pie_supported()
133
133
add_library (vmlib ${WAMR_RUNTIME_LIB_SOURCE} )
134
134
set_target_properties (vmlib PROPERTIES POSITION_INDEPENDENT_CODE ON )
135
+ set_version_info (vmlib)
135
136
136
137
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections" )
137
138
@@ -160,6 +161,8 @@ include (${SHARED_DIR}/utils/uncommon/shared_uncommon.cmake)
160
161
161
162
add_executable (iwasm main.c ${UNCOMMON_SHARED_SOURCE} )
162
163
164
+ set_version_info (iwasm)
165
+
163
166
set_target_properties (iwasm PROPERTIES POSITION_INDEPENDENT_CODE ON )
164
167
165
168
install (TARGETS iwasm DESTINATION bin)
@@ -168,6 +171,8 @@ target_link_libraries (iwasm vmlib ${LLVM_AVAILABLE_LIBS} ${UV_A_LIBS} ${WASI_NN
168
171
169
172
add_library (libiwasm STATIC ${WAMR_RUNTIME_LIB_SOURCE} )
170
173
174
+ set_version_info (libiwasm)
175
+
171
176
install (TARGETS libiwasm DESTINATION lib)
172
177
173
178
set_target_properties (libiwasm PROPERTIES OUTPUT_NAME iwasm)
Original file line number Diff line number Diff line change @@ -116,11 +116,14 @@ set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
116
116
117
117
include (${WAMR_ROOT_DIR} /build -scripts/runtime_lib.cmake)
118
118
add_library (vmlib ${WAMR_RUNTIME_LIB_SOURCE} )
119
+ set_version_info (vmlib)
119
120
120
121
include (${SHARED_DIR} /utils/uncommon/shared_uncommon.cmake)
121
122
122
123
add_executable (iwasm main.c ${UNCOMMON_SHARED_SOURCE} )
123
124
125
+ set_version_info (iwasm)
126
+
124
127
install (TARGETS iwasm DESTINATION bin)
125
128
126
129
target_link_libraries (iwasm vmlib ${LLVM_AVAILABLE_LIBS} ${UV_A_LIBS} -lm -ldl -lpthread)
@@ -131,5 +134,7 @@ install (TARGETS libiwasm DESTINATION lib)
131
134
132
135
set_target_properties (libiwasm PROPERTIES OUTPUT_NAME iwasm)
133
136
137
+ set_version_info (libiwasm)
138
+
134
139
target_link_libraries (libiwasm ${LLVM_AVAILABLE_LIBS} ${UV_A_LIBS} -lm -ldl -lpthread)
135
140
Original file line number Diff line number Diff line change @@ -113,17 +113,22 @@ set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
113
113
114
114
include (${WAMR_ROOT_DIR} /build -scripts/runtime_lib.cmake)
115
115
add_library (vmlib ${WAMR_RUNTIME_LIB_SOURCE} )
116
+ set_version_info (vmlib)
116
117
117
118
include (${SHARED_DIR} /utils/uncommon/shared_uncommon.cmake)
118
119
119
120
add_executable (iwasm main.c ${UNCOMMON_SHARED_SOURCE} )
120
121
122
+ set_version_info (iwasm)
123
+
121
124
install (TARGETS iwasm DESTINATION bin)
122
125
123
126
target_link_libraries (iwasm vmlib ${LLVM_AVAILABLE_LIBS} ${UV_A_LIBS} -lm -ldl -lpthread)
124
127
125
128
add_library (libiwasm SHARED ${WAMR_RUNTIME_LIB_SOURCE} )
126
129
130
+ set_version_info (libiwasm)
131
+
127
132
install (TARGETS libiwasm DESTINATION lib)
128
133
129
134
set_target_properties (libiwasm PROPERTIES OUTPUT_NAME iwasm)
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ endif()
139
139
140
140
set (distribution_DIR ${CMAKE_BINARY_DIR} /distribution)
141
141
set_target_properties (iwasm PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${distribution_DIR} /wasm/lib" )
142
+ set_version_info (iwasm)
142
143
143
144
add_custom_command (TARGET iwasm POST_BUILD
144
145
COMMAND "${CMAKE_COMMAND} " -E copy_directory "${WAMR_ROOT_DIR} /core/iwasm/include" "${distribution_DIR} /wasm/include/"
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
107
107
108
108
include (${WAMR_ROOT_DIR} /build -scripts/runtime_lib.cmake)
109
109
add_library (vmlib ${WAMR_RUNTIME_LIB_SOURCE} )
110
+ set_version_info (vmlib)
110
111
111
112
add_custom_command (
112
113
OUTPUT libvmlib_untrusted.a
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
78
78
79
79
include (${WAMR_ROOT_DIR}/build-scripts/runtime_lib.cmake)
80
80
add_library(vmlib ${WAMR_RUNTIME_LIB_SOURCE})
81
+ set_version_info (vmlib)
81
82
82
83
add_custom_command (
83
84
OUTPUT libvmlib_untrusted.a
Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ endif ()
170
170
include (${SHARED_DIR} /utils/uncommon/shared_uncommon.cmake)
171
171
172
172
add_executable (iwasm main.c ${UNCOMMON_SHARED_SOURCE} )
173
+
173
174
set_version_info (iwasm)
174
175
175
176
set_target_properties (iwasm PROPERTIES POSITION_INDEPENDENT_CODE ON )
@@ -186,6 +187,7 @@ target_link_libraries(iwasm
186
187
install (TARGETS iwasm DESTINATION bin)
187
188
188
189
add_library (libiwasm SHARED ${WAMR_RUNTIME_LIB_SOURCE} )
190
+
189
191
set_version_info (libiwasm)
190
192
191
193
install (TARGETS libiwasm DESTINATION lib)
Original file line number Diff line number Diff line change @@ -62,3 +62,5 @@ include_directories(SYSTEM ${RIOT_INCLUDES_LIST})
62
62
# executable linking is done by RIOT build system
63
63
64
64
add_library ( wamr ${WAMR_RUNTIME_LIB_SOURCE} )
65
+
66
+ set_version_info (wamr)
Original file line number Diff line number Diff line change @@ -78,17 +78,22 @@ set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
78
78
79
79
include (${WAMR_ROOT_DIR} /build -scripts/runtime_lib.cmake)
80
80
add_library (vmlib ${WAMR_RUNTIME_LIB_SOURCE} )
81
+ set_version_info (vmlib)
81
82
82
83
include (${SHARED_DIR} /utils/uncommon/shared_uncommon.cmake)
83
84
84
85
add_executable (iwasm main.c ${UNCOMMON_SHARED_SOURCE} )
85
86
87
+ set_version_info (iwasm)
88
+
86
89
install (TARGETS iwasm DESTINATION bin)
87
90
88
91
target_link_libraries (iwasm vmlib ${LLVM_AVAILABLE_LIBS} -lm -ldl -lunix)
89
92
90
93
add_library (libiwasm SHARED ${WAMR_RUNTIME_LIB_SOURCE} )
91
94
95
+ set_version_info (libiwasm)
96
+
92
97
install (TARGETS libiwasm DESTINATION lib)
93
98
94
99
set_target_properties (libiwasm PROPERTIES OUTPUT_NAME iwasm)
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
106
106
107
107
include (${WAMR_ROOT_DIR} /build -scripts/runtime_lib.cmake)
108
108
add_library (vmlib ${WAMR_RUNTIME_LIB_SOURCE} )
109
+ set_version_info(vmlib)
109
110
110
111
#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWIN32_LEAN_AND_MEAN")
111
112
if (NOT MINGW)
@@ -134,6 +135,8 @@ include (${SHARED_DIR}/utils/uncommon/shared_uncommon.cmake)
134
135
135
136
add_executable (iwasm main.c ${UNCOMMON_SHARED_SOURCE} )
136
137
138
+ set_version_info (iwasm)
139
+
137
140
install (TARGETS iwasm DESTINATION bin)
138
141
139
142
target_link_libraries (iwasm vmlib ${LLVM_AVAILABLE_LIBS} ${UV_A_LIBS} )
@@ -144,6 +147,8 @@ endif ()
144
147
145
148
add_library (libiwasm SHARED ${WAMR_RUNTIME_LIB_SOURCE} )
146
149
150
+ set_version_info (libiwasm)
151
+
147
152
install (TARGETS libiwasm DESTINATION lib)
148
153
149
154
set_target_properties (libiwasm PROPERTIES OUTPUT_NAME libiwasm)
Original file line number Diff line number Diff line change @@ -369,6 +369,7 @@ add_library (aotclib ${IWASM_COMPL_SOURCE})
369
369
add_executable (wamrc main.c)
370
370
check_pie_supported()
371
371
set_target_properties (wamrc PROPERTIES POSITION_INDEPENDENT_CODE ON )
372
+ set_version_info (wamrc)
372
373
373
374
if (LLVM_LINK_LLVM_DYLIB)
374
375
set (WAMRC_LINK_LLVM_LIBS LLVM)
You can’t perform that action at this time.
0 commit comments