mirror of
https://github.com/egor-white/zaprett.git
synced 2026-03-22 00:18:13 +05:00
fix conflicts between libnfqws and libnfqws2
This commit is contained in:
@@ -19,6 +19,8 @@ target_include_directories(nfqws PRIVATE
|
||||
target_compile_definitions(nfqws PRIVATE main=nfqws_main)
|
||||
target_compile_options(nfqws PRIVATE -w)
|
||||
|
||||
set_target_properties(nfqws PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/nfqws.map")
|
||||
|
||||
if(ANDROID)
|
||||
find_library(LOG_LIB log)
|
||||
target_link_libraries(nfqws PRIVATE ${LOG_LIB})
|
||||
|
||||
6
rust/crates/libnfqws/nfqws.map
Normal file
6
rust/crates/libnfqws/nfqws.map
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
global:
|
||||
nfqws_main;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
@@ -1,5 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(nfqws2 C)
|
||||
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
file(GLOB NFQ_SOURCES "zapret2/nfq2/*.c")
|
||||
@@ -17,6 +18,8 @@ target_include_directories(nfqws2 PRIVATE
|
||||
target_compile_definitions(nfqws2 PRIVATE main=nfqws2_main)
|
||||
target_compile_options(nfqws2 PRIVATE -w)
|
||||
|
||||
set_target_properties(nfqws2 PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/nfqws2.map")
|
||||
|
||||
if(ANDROID)
|
||||
find_library(LOG_LIB log)
|
||||
target_link_libraries(nfqws2 PRIVATE ${LOG_LIB})
|
||||
|
||||
6
rust/crates/libnfqws2/nfqws2.map
Normal file
6
rust/crates/libnfqws2/nfqws2.map
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
global:
|
||||
nfqws2_main;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
Reference in New Issue
Block a user