mirror of
https://github.com/egor-white/zaprett.git
synced 2026-03-22 00:18:13 +05:00
Compare commits
2 Commits
15b15f4932
...
0d4cbe5710
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d4cbe5710 | ||
|
|
d5a38a8109 |
@@ -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:
|
||||
*;
|
||||
};
|
||||
@@ -7,7 +7,7 @@ pub mod path {
|
||||
pub static ZAPRETT_DIR_PATH: LazyLock<&Path> =
|
||||
LazyLock::new(|| Path::new("/storage/emulated/0/zaprett"));
|
||||
pub static ZAPRETT_LIBS_PATH: LazyLock<&Path> =
|
||||
LazyLock::new(|| Path::new("/storage/emulated/0/zaprett/strategies/nfqws2/libs"));
|
||||
LazyLock::new(|| Path::new("/storage/emulated/0/zaprett/files/strategies/nfqws2/libs"));
|
||||
}
|
||||
|
||||
// Only for testing
|
||||
|
||||
Reference in New Issue
Block a user