Skip to content

Commit

Permalink
configure.ac: recognize the watchOS platform
Browse files Browse the repository at this point in the history
  • Loading branch information
fkuehne authored and robUx4 committed Jun 27, 2024
1 parent 4c0739f commit 149322c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ HAVE_OSX="0"
HAVE_TVOS="0"
HAVE_IOS_OR_TVOS="0"
HAVE_XROS="0"
HAVE_WATCHOS="0"

dnl Set x86 asm flags and defines
X86ASMFLAGS=""
Expand Down Expand Up @@ -250,6 +251,19 @@ int foo() { return my_array[0]; }
ac_cv_func_fork=no
],)

AC_EGREP_CPP(yes,
[#import <TargetConditionals.h>
#if TARGET_OS_WATCH
yes
#endif],
[HAVE_WATCHOS="1"
HAVE_IOS="0"
HAVE_OSX="0"
HAVE_TVOS="0"
HAVE_IOS_OR_TVOS="0"
ac_cv_func_fork=no
],)

AS_IF([test "${HAVE_OSX}" = "1"],[VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreServices])])

dnl
Expand Down Expand Up @@ -493,6 +507,7 @@ AM_CONDITIONAL([HAVE_OSX], [test "${HAVE_OSX}" = "1"])
AM_CONDITIONAL([HAVE_TVOS], [test "${HAVE_TVOS}" = "1"])
AM_CONDITIONAL([HAVE_IOS_OR_TVOS], [test "${HAVE_IOS_OR_TVOS}" = "1"])
AM_CONDITIONAL([HAVE_XROS], [test "${HAVE_XROS}" = "1"])
AM_CONDITIONAL([HAVE_WATCHOS], [test "${HAVE_WATCHOS}" = "1"])

AM_CONDITIONAL([HAVE_LIBANL], [test "${HAVE_LIBANL}" = "1"])

Expand Down

0 comments on commit 149322c

Please sign in to comment.