Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
363 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ build_cmake | |
python/CouchbaseLite/libcouchbase_lite.dylib | ||
python/CouchbaseLite/PyCBL.c | ||
.vscode | ||
empty.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
include("${CMAKE_CURRENT_LIST_DIR}/platform_linux.cmake") | ||
|
||
function(set_platform_source_files) | ||
# No-op | ||
endfunction() | ||
|
||
function(set_platform_include_directories) | ||
# No-op | ||
endfunction() | ||
|
||
function(init_vars) | ||
init_vars_linux() | ||
endfunction() | ||
|
||
function(set_dylib_properties) | ||
target_compile_definitions(CouchbaseLiteCStatic PRIVATE -D_CRYPTO_MBEDTLS) | ||
target_link_libraries(CouchbaseLiteC PRIVATE atomic log zlibstatic) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
function(set_platform_source_files) | ||
set(oneValueArgs RESULT) | ||
cmake_parse_arguments(PLATFORM "" ${oneValueArgs} "" ${ARGN}) | ||
if(NOT DEFINED PLATFORM_RESULT) | ||
message(FATAL_ERROR set_platform_include_directories needs to be called with RESULT) | ||
endif() | ||
|
||
set( | ||
${PLATFORM_RESULT} | ||
src/dylib_main.cc | ||
PARENT_SCOPE | ||
) | ||
endfunction() | ||
|
||
function(set_platform_include_directories) | ||
# No-op | ||
endfunction() | ||
|
||
function(init_vars) | ||
# No-op | ||
endfunction() | ||
|
||
function(set_dylib_properties) | ||
set_target_properties(CouchbaseLiteC PROPERTIES LINK_FLAGS | ||
"-exported_symbols_list ${PROJECT_SOURCE_DIR}/src/CBL.exp") | ||
target_link_libraries(CouchbaseLiteC PUBLIC "-framework CoreFoundation" | ||
"-framework Foundation" | ||
"-framework CFNetwork" | ||
"-framework Security" | ||
z) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
|
||
function(init_vars_linux) | ||
set(WHOLE_LIBRARY_FLAG "-Wl,--whole-archive" CACHE INTERNAL "") | ||
set(NO_WHOLE_LIBRARY_FLAG "-Wl,--no-whole-archive" CACHE INTERNAL "") | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
include("${CMAKE_CURRENT_LIST_DIR}/platform_linux.cmake") | ||
|
||
function(set_platform_source_files) | ||
# No-op | ||
endfunction() | ||
|
||
function(set_platform_include_directories) | ||
# No-op | ||
endfunction() | ||
|
||
function(init_vars) | ||
init_vars_linux() | ||
endfunction() | ||
|
||
function(set_dylib_properties) | ||
target_link_libraries(CouchbaseLiteC PUBLIC z ${ICU4C_COMMON} ${ICU4C_I18N}) | ||
endfunction() |
Oops, something went wrong.