mirror of
https://github.com/darlinghq/darling-sqlite.git
synced 2024-11-27 05:40:26 +00:00
Mach-O build
This commit is contained in:
parent
a8180347e8
commit
8fc2e7be46
@ -9,22 +9,19 @@ endif(COMMAND cmake_policy)
|
|||||||
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse -msse2 -msse3 -w -nostdinc")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse -msse2 -msse3 -w -nostdinc")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__DARWIN_UNIX03 -fPIC -U__linux__")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__DARWIN_UNIX03 -fPIC -U__linux__")
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib -Wl,--version-script=${DARLING_TOP_DIRECTORY}/darwin.map")
|
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostdlib -Wl,--version-script=${DARLING_TOP_DIRECTORY}/darwin.map")
|
|
||||||
|
|
||||||
add_definitions(-DHAVE_CONFIG_H)
|
add_definitions(-DHAVE_CONFIG_H)
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/)
|
||||||
include_directories(${DARLING_TOP_DIRECTORY}/platform-include)
|
include_directories(${DARLING_TOP_DIRECTORY}/platform-include)
|
||||||
|
|
||||||
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/darling")
|
set(DYLIB_INSTALL_NAME "/usr/lib/libsqlite3.0.dylib")
|
||||||
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
add_darling_library(sqlite3 SHARED sqlite3.c)
|
||||||
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
|
||||||
|
|
||||||
add_library(sqlite3 SHARED sqlite3.c)
|
|
||||||
target_link_libraries(sqlite3 system)
|
target_link_libraries(sqlite3 system)
|
||||||
|
set_target_properties(sqlite3 PROPERTIES OUTPUT_NAME "sqlite3.0")
|
||||||
|
|
||||||
install(TARGETS sqlite3 DESTINATION ${CMAKE_INSTALL_LIBDIR}/darling)
|
InstallSymlink("libsqlite3.0.dylib" "${CMAKE_INSTALL_PREFIX}/libexec/darling/usr/lib/libsqlite3.dylib")
|
||||||
|
install(TARGETS sqlite3 DESTINATION libexec/darling/usr/lib)
|
||||||
|
|
||||||
if (NOT DARLING_NO_EXECUTABLES)
|
if (NOT DARLING_NO_EXECUTABLES)
|
||||||
include(darling_exe)
|
include(darling_exe)
|
||||||
|
Loading…
Reference in New Issue
Block a user