File tree Expand file tree Collapse file tree 6 files changed +84
-0
lines changed Expand file tree Collapse file tree 6 files changed +84
-0
lines changed Original file line number Diff line number Diff line change
1
+ #[[
2
+ This source file is part of the DocC open source project
3
+
4
+ Copyright (c) 2024 Apple Inc. and the DocC project authors
5
+ Licensed under Apache License v2.0 with Runtime Library Exception
6
+
7
+ See https://swift.org/LICENSE.txt for license information
8
+ #]]
9
+
10
+ cmake_minimum_required (VERSION 3.26 )
11
+
12
+ project (LMDB
13
+ LANGUAGES C )
14
+
15
+ set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib )
16
+ set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib )
17
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin )
18
+
19
+ set (CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR} /swift )
20
+ set (CMAKE_Swift_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY MultiThreadedDLL )
21
+
22
+ add_subdirectory (Sources )
23
+ add_subdirectory (cmake/modules )
Original file line number Diff line number Diff line change
1
+ #[[
2
+ This source file is part of the DocC open source project
3
+
4
+ Copyright (c) 2024 Apple Inc. and the DocC project authors
5
+ Licensed under Apache License v2.0 with Runtime Library Exception
6
+
7
+ See https://swift.org/LICENSE.txt for license information
8
+ #]]
9
+
10
+ add_library (CLMDB
11
+ mdb.c
12
+ midl.c )
13
+ target_include_directories (CLMDB PUBLIC
14
+ include )
15
+
16
+ set_property (GLOBAL APPEND PROPERTY LMDB_EXPORTS CLMDB )
Original file line number Diff line number Diff line change
1
+
2
+ module CLMDB {
3
+ header "lmdb.h"
4
+ }
Original file line number Diff line number Diff line change
1
+ #[[
2
+ This source file is part of the DocC open source project
3
+
4
+ Copyright (c) 2024 Apple Inc. and the DocC project authors
5
+ Licensed under Apache License v2.0 with Runtime Library Exception
6
+
7
+ See https://swift.org/LICENSE.txt for license information
8
+ #]]
9
+
10
+ add_subdirectory (CLMDB )
Original file line number Diff line number Diff line change
1
+ #[[
2
+ This source file is part of the DocC open source project
3
+
4
+ Copyright (c) 2024 Apple Inc. and the DocC project authors
5
+ Licensed under Apache License v2.0 with Runtime Library Exception
6
+
7
+ See https://swift.org/LICENSE.txt for license information
8
+ #]]
9
+
10
+ set (LMDB_EXPORTS_FILE
11
+ ${CMAKE_CURRENT_BINARY_DIR} /LMDBExports.cmake )
12
+ configure_file (LMDBConfig.cmake.in
13
+ ${CMAKE_CURRENT_BINARY_DIR} /LMDBConfig.cmake )
14
+
15
+ get_property (LMDB_EXPORTS GLOBAL PROPERTY LMDB_EXPORTS )
16
+ export (TARGETS ${LMDB_EXPORTS}
17
+ NAMESPACE LMDB::
18
+ FILE ${LMDB_EXPORTS_FILE}
19
+ EXPORT_LINK_INTERFACE_LIBRARIES )
Original file line number Diff line number Diff line change
1
+ #[[
2
+ This source file is part of the DocC open source project
3
+
4
+ Copyright (c) 2024 Apple Inc. and the DocC project authors
5
+ Licensed under Apache License v2.0 with Runtime Library Exception
6
+
7
+ See https://swift.org/LICENSE.txt for license information
8
+ #]]
9
+
10
+ if (NOT TARGET LMDB::CLMDB )
11
+ include ("@LMDB_EXPORTS_FILE@" )
12
+ endif ()
You can’t perform that action at this time.
0 commit comments