Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
[FreeBSD] move FreeBSDGNUReplacements to a freebsd folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Fneufneu committed May 7, 2012
1 parent d680135 commit 16ffcc3
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 7 deletions.
8 changes: 8 additions & 0 deletions Makefile.in
Expand Up @@ -112,6 +112,10 @@ DIRECTORY_ARCHIVES += xbmc/storage/linux/storage_linux.a
DIRECTORY_ARCHIVES += xbmc/windowing/X11/windowing_X11.a
endif

ifeq ($(findstring freebsd,@ARCH@),freebsd)
DIRECTORY_ARCHIVES += xbmc/freebsd/freebsd.a
endif

ifeq (@HAVE_XBMC_NONFREE@,1)
DIRECTORY_ARCHIVES += lib/UnrarXLib/UnrarXLib.a
endif
Expand Down Expand Up @@ -323,6 +327,10 @@ DYNOBJSXBMC= \
xbmc/video/video.a \
xbmc/guilib/guilib.a # must be dynamic to avoid linker errors

ifeq ($(findstring freebsd,@ARCH@),freebsd)
DYNOBJSXBMC+= xbmc/freebsd/freebsd.a
endif

OBJSXBMC:=$(filter-out $(DYNOBJSXBMC), $(OBJSXBMC))

LIBS += @PYTHON_LDFLAGS@
Expand Down
1 change: 1 addition & 0 deletions configure.in
Expand Up @@ -1953,6 +1953,7 @@ OUTPUT_FILES="Makefile \
xbmc/interfaces/python/xbmcmodule/Makefile \
lib/libUPnP/Makefile \
xbmc/DllPaths_generated.h \
xbmc/freebsd/Makefile \
xbmc/linux/Makefile \
xbmc/filesystem/Makefile \
xbmc/screensavers/rsxs-0.9/xbmc/Makefile \
Expand Down
2 changes: 1 addition & 1 deletion xbmc/addons/Addon.cpp
Expand Up @@ -30,7 +30,7 @@
#include "../osx/OSXGNUReplacements.h"
#endif
#ifdef __FreeBSD__
#include "FreeBSDGNUReplacements.h"
#include "freebsd/FreeBSDGNUReplacements.h"
#endif
#include "utils/log.h"
#include "utils/URIUtils.h"
Expand Down
2 changes: 1 addition & 1 deletion xbmc/filesystem/SAPDirectory.cpp
Expand Up @@ -32,7 +32,7 @@
#include "OSXGNUReplacements.h" // strnlen
#endif
#ifdef __FreeBSD__
#include "FreeBSDGNUReplacements.h"
#include "freebsd/FreeBSDGNUReplacements.h"
#endif

#include <sys/socket.h>
Expand Down
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions xbmc/freebsd/Makefile.in
@@ -0,0 +1,11 @@
ARCH=@ARCH@

CXXFLAGS+=-fPIC

SRCS=FreeBSDGNUReplacements.c

LIB=freebsd.a

include @abs_top_srcdir@/Makefile.include

-include $(patsubst %.cpp,%.P,$(patsubst %.c,%.P,$(SRCS)))
2 changes: 1 addition & 1 deletion xbmc/linux/LinuxTimezone.cpp
Expand Up @@ -28,7 +28,7 @@
#include "OSXGNUReplacements.h"
#endif
#ifdef __FreeBSD__
#include "FreeBSDGNUReplacements.h"
#include "freebsd/FreeBSDGNUReplacements.h"
#endif

#include "Util.h"
Expand Down
4 changes: 0 additions & 4 deletions xbmc/linux/Makefile.in
Expand Up @@ -16,10 +16,6 @@ SRCS=ConvUtils.cpp \
XMemUtils.cpp \
XTimeUtils.cpp \

ifeq ($(findstring freebsd,$(ARCH)), freebsd)
SRCS+=FreeBSDGNUReplacements.cpp
endif

LIB=linux.a

include @abs_top_srcdir@/Makefile.include
Expand Down

0 comments on commit 16ffcc3

Please sign in to comment.