summaryrefslogtreecommitdiffstats
path: root/source/kde/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'source/kde/cmake')
-rw-r--r--source/kde/cmake/kde-runtime17
-rw-r--r--source/kde/cmake/kdebindings8
-rw-r--r--source/kde/cmake/kross-interpreters17
3 files changed, 41 insertions, 1 deletions
diff --git a/source/kde/cmake/kde-runtime b/source/kde/cmake/kde-runtime
new file mode 100644
index 000000000..42ece9766
--- /dev/null
+++ b/source/kde/cmake/kde-runtime
@@ -0,0 +1,17 @@
+mkdir build
+cd build
+ cmake \
+ $KDE_OPT_ARGS \
+ -DKDE_PLATFORM_FEATURE_DISABLE_DEPRECATED=TRUE \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -DSYSCONF_INSTALL_DIR=/etc/kde \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DSAMBA_INCLUDE_DIR=/usr/include/samba-4.0 \
+ ..
+
diff --git a/source/kde/cmake/kdebindings b/source/kde/cmake/kdebindings
index c42283099..086f96259 100644
--- a/source/kde/cmake/kdebindings
+++ b/source/kde/cmake/kdebindings
@@ -2,6 +2,10 @@
# architecture dependent perl modules):
eval $(perl '-V:vendorarch')
+# Likewise for Ruby (note that our "vendordir" is empty, so we use sitedir):
+ruby_vendorlibdir=$(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')
+ruby_vendorarchdir=$(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')
+
mkdir -p build
cd build
#-DCMAKE_BACKWARDS_COMPATIBILITY:STRING="2.2" \
@@ -14,7 +18,9 @@ cd build
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMAN_INSTALL_DIR=/usr/man \
- -DCUSTOM_PERL_SITE_ARCH_DIR=$vendorarch \
+ -DCUSTOM_PERL_SITE_ARCH_DIR=${vendorarch} \
+ -DRUBY_VENDORARCH_DIR:PATH=${ruby_vendorarchdir} \
+ -DRUBY_VENDORLIB_DIR:PATH=${ruby_vendorlibdir} \
-DSYSCONF_INSTALL_DIR=/etc/kde \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DENABLE_QYOTO:BOOL=OFF \
diff --git a/source/kde/cmake/kross-interpreters b/source/kde/cmake/kross-interpreters
new file mode 100644
index 000000000..b57de3f6e
--- /dev/null
+++ b/source/kde/cmake/kross-interpreters
@@ -0,0 +1,17 @@
+mkdir -p build
+cd build
+ #-DCMAKE_BACKWARDS_COMPATIBILITY:STRING="2.2" \
+ cmake \
+ $KDE_OPT_ARGS \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -DSYSCONF_INSTALL_DIR=/etc/kde \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DBUILD_ruby:BOOL=OFF \
+ ..
+