diff options
author | spiff <spiff@xbmc.org> | 2013-08-07 18:06:32 +0200 |
---|---|---|
committer | spiff <spiff@xbmc.org> | 2013-08-07 18:06:32 +0200 |
commit | 398c33e28de26c41d87937f82d72bf6d42c062d0 (patch) | |
tree | 3173b8314e38c51c7b6556908d9924bd57c27b1e /tools | |
parent | 8e1eeb58f7971ab0c7fb6ef0a6c69aa5bb78deb7 (diff) |
added: generate and install cmake helpers for addons
Diffstat (limited to 'tools')
-rw-r--r-- | tools/depends/Makefile.include.in | 1 | ||||
-rw-r--r-- | tools/depends/configure.in | 3 | ||||
-rw-r--r-- | tools/depends/target/xbmc-addon-bindings/Makefile | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/tools/depends/Makefile.include.in b/tools/depends/Makefile.include.in index c056fa835e..7f7e55bb2a 100644 --- a/tools/depends/Makefile.include.in +++ b/tools/depends/Makefile.include.in @@ -16,6 +16,7 @@ PREFIX=@prefix@/@deps_dir@ NATIVEPREFIX=@prefix@/@tool_dir@ OS=@platform_os@ CROSS_COMPILING=@cross_compiling@ +ARCH_DEFINES=@ARCH_DEFINES@ HAS_ZLIB=@has_zlib@ NEED_LIBICONV=@need_libiconv@ diff --git a/tools/depends/configure.in b/tools/depends/configure.in index ce4baf97e3..f19b787728 100644 --- a/tools/depends/configure.in +++ b/tools/depends/configure.in @@ -4,6 +4,7 @@ AC_INIT([xbmc-depends], [2.00], [http://trac.xbmc.org]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_FILES([target/config.site native/config.site.native Makefile.include target/Toolchain.cmake]) AC_CANONICAL_HOST +m4_include([../../m4/xbmc_arch.m4]) AC_ARG_WITH([toolchain], [AS_HELP_STRING([--with-toolchain], @@ -244,6 +245,8 @@ case $host in AC_MSG_ERROR(unsupported host ($use_host)) esac +XBMC_SETUP_ARCH_DEFINES() + platform_cflags+=" $passed_cflags" platform_ldflags+=" $passed_ldflags $LIBS" platform_cxxflags+=" $passed_cxxflags" diff --git a/tools/depends/target/xbmc-addon-bindings/Makefile b/tools/depends/target/xbmc-addon-bindings/Makefile index 56cc877a74..df806e00f3 100644 --- a/tools/depends/target/xbmc-addon-bindings/Makefile +++ b/tools/depends/target/xbmc-addon-bindings/Makefile @@ -28,6 +28,10 @@ all: .installed-$(PLATFORM) @for f in $(BINDINGS); do \ cp -f $(XBMCROOT)/$$f $(PREFIX)/include/xbmc ; \ done + @mkdir -p $(PREFIX)/lib/xbmc + @cat $(XBMCROOT)/project/cmake/xbmc-config.cmake.in | sed -e 's|@prefix@|$(PREFIX)|' -e 's|@ARCH_DEFINES@|$(ARCH_DEFINES)|' > $(PREFIX)/lib/xbmc/xbmc-config.cmake + @cp -f $(XBMCROOT)/project/cmake/xbmc-addon-helpers.cmake $(PREFIX)/lib/xbmc + @cp -f $(XBMCROOT)/project/cmake/AddOptions.cmake $(PREFIX)/lib/xbmc @touch $@ clean: |