mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-16 06:48:25 +00:00
Support compile universal (#64)
Co-authored-by: yangheran <heran.yang@seafile.com>
This commit is contained in:
@@ -42,6 +42,15 @@ AC_ARG_ENABLE(server-pkg,
|
|||||||
AC_HELP_STRING([--enable-server-pkg], [enable static compile]),
|
AC_HELP_STRING([--enable-server-pkg], [enable static compile]),
|
||||||
[server_pkg=$enableval],[server_pkg="no"])
|
[server_pkg=$enableval],[server_pkg="no"])
|
||||||
|
|
||||||
|
# option: compile-universal
|
||||||
|
# default: no
|
||||||
|
AC_ARG_ENABLE([compile-universal],
|
||||||
|
[AS_HELP_STRING([--enable-compile-universal],
|
||||||
|
[compile seafile universal @<:@default: no@:>@])],
|
||||||
|
[compile_universal=${enableval}], [compile_demo=no])
|
||||||
|
|
||||||
|
AM_CONDITIONAL([COMPILE_UNIVERSAL], [test x${compile_universal} = xyes])
|
||||||
|
|
||||||
dnl - check if the macro WIN32 is defined on this compiler.
|
dnl - check if the macro WIN32 is defined on this compiler.
|
||||||
AC_MSG_CHECKING(for WIN32)
|
AC_MSG_CHECKING(for WIN32)
|
||||||
|
|
||||||
|
@@ -4,6 +4,12 @@ AM_CFLAGS = @GLIB_CFLAGS@ \
|
|||||||
-I${top_builddir}/lib \
|
-I${top_builddir}/lib \
|
||||||
-I${top_srcdir}/lib
|
-I${top_srcdir}/lib
|
||||||
|
|
||||||
|
if MACOS
|
||||||
|
if COMPILE_UNIVERSAL
|
||||||
|
AM_CFLAGS += -arch x86_64 -arch arm64
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
lib_LTLIBRARIES = libsearpc.la
|
lib_LTLIBRARIES = libsearpc.la
|
||||||
|
|
||||||
include_HEADERS = searpc-client.h searpc-server.h searpc-utils.h searpc.h searpc-named-pipe-transport.h
|
include_HEADERS = searpc-client.h searpc-server.h searpc-utils.h searpc.h searpc-named-pipe-transport.h
|
||||||
|
Reference in New Issue
Block a user