mirror of
https://github.com/darlinghq/darling-zlib.git
synced 2024-11-23 03:49:45 +00:00
Allow i386 or x86_64 only builds
This commit is contained in:
parent
07cf1da0b8
commit
6980a7b5db
@ -33,10 +33,19 @@ set(zlib_sources
|
||||
zutil.c
|
||||
)
|
||||
|
||||
add_library(z64 OBJECT contrib/amd64/amd64-match.S)
|
||||
set_target_properties(z64 PROPERTIES COMPILE_FLAGS "-arch x86_64")
|
||||
add_library(z32 OBJECT contrib/asm686/match.S)
|
||||
set_target_properties(z32 PROPERTIES COMPILE_FLAGS "-arch i386")
|
||||
if (TARGET_x86_64)
|
||||
add_darling_object_library(z64 contrib/amd64/amd64-match.S)
|
||||
set_target_properties(z64 PROPERTIES COMPILE_FLAGS "-arch x86_64")
|
||||
else (TARGET_x86_64)
|
||||
add_darling_object_library(z64 empty.c)
|
||||
endif (TARGET_x86_64)
|
||||
|
||||
if (TARGET_i386)
|
||||
add_darling_object_library(z32 contrib/asm686/match.S)
|
||||
set_target_properties(z32 PROPERTIES COMPILE_FLAGS "-arch i386")
|
||||
else (TARGET_i386)
|
||||
add_darling_object_library(z32 empty.c)
|
||||
endif (TARGET_i386)
|
||||
|
||||
set(DYLIB_INSTALL_NAME "/usr/lib/libz.1.dylib")
|
||||
set(DYLIB_COMPAT_VERSION "1.0.0")
|
||||
|
Loading…
Reference in New Issue
Block a user