Skip to content

Commit

Permalink
[cmake] Make most of vendor libraries OBJECT libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
ntadej committed Oct 9, 2023
1 parent 7499592 commit eb0921a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 18 deletions.
6 changes: 1 addition & 5 deletions vendor/csscolorparser.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ if(TARGET mbgl-vendor-csscolorparser)
return()
endif()

if(MLN_WITH_QT AND ${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0")
add_library(mbgl-vendor-csscolorparser OBJECT)
else()
add_library(mbgl-vendor-csscolorparser STATIC)
endif()
add_library(mbgl-vendor-csscolorparser OBJECT)

target_sources(
mbgl-vendor-csscolorparser PRIVATE
Expand Down
2 changes: 1 addition & 1 deletion vendor/icu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if(TARGET mbgl-vendor-icu)
endif()

add_library(
mbgl-vendor-icu STATIC
mbgl-vendor-icu OBJECT
${CMAKE_CURRENT_LIST_DIR}/icu/src/cmemory.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/cstring.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/ubidi.cpp
Expand Down
6 changes: 1 addition & 5 deletions vendor/nunicode.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ if(TARGET mbgl-vendor-nunicode)
return()
endif()

if(MLN_WITH_QT AND ${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0")
add_library(mbgl-vendor-nunicode OBJECT)
else()
add_library(mbgl-vendor-nunicode STATIC)
endif()
add_library(mbgl-vendor-nunicode OBJECT)

target_sources(
mbgl-vendor-nunicode PRIVATE
Expand Down
6 changes: 1 addition & 5 deletions vendor/parsedate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ if(TARGET mbgl-vendor-parsedate)
return()
endif()

if(MLN_WITH_QT AND ${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0")
add_library(mbgl-vendor-parsedate OBJECT)
else()
add_library(mbgl-vendor-parsedate STATIC)
endif()
add_library(mbgl-vendor-parsedate OBJECT)

target_sources(
mbgl-vendor-parsedate PRIVATE
Expand Down
2 changes: 1 addition & 1 deletion vendor/sqlite.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if(TARGET mbgl-vendor-sqlite)
endif()

add_library(
mbgl-vendor-sqlite STATIC
mbgl-vendor-sqlite OBJECT
${CMAKE_CURRENT_LIST_DIR}/sqlite/src/sqlite3.c
)

Expand Down
2 changes: 1 addition & 1 deletion vendor/zip-archive.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if(TARGET mbgl-vendor-zip-archive)
endif()

add_library(
mbgl-vendor-zip-archive STATIC
mbgl-vendor-zip-archive OBJECT
${CMAKE_CURRENT_LIST_DIR}/zip-archive/SSZipArchive/SSZipArchive.h
${CMAKE_CURRENT_LIST_DIR}/zip-archive/SSZipArchive/SSZipArchive.m
${CMAKE_CURRENT_LIST_DIR}/zip-archive/SSZipArchive/SSZipCommon.h
Expand Down

0 comments on commit eb0921a

Please sign in to comment.