[x265] [PATCH 4 of 4 RFC] build: introduce a new multilib build folder for gmake environments

Steve Borho steve at borho.org
Sat Jun 6 19:42:40 CEST 2015


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1433612445 18000
#      Sat Jun 06 12:40:45 2015 -0500
# Node ID 468da8f2cd837e7f88f6af4f039d2f95fab80a4a
# Parent  4e4673bcf5ef25d7e4bcba35f911365ce4e0cb6a
build: introduce a new multilib build folder for gmake environments

in theory this should also work with MSVC, but I have not yet tried it

diff -r 4e4673bcf5ef -r 468da8f2cd83 build/multilib-gmake/10bit/build.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build/multilib-gmake/10bit/build.sh	Sat Jun 06 12:40:45 2015 -0500
@@ -0,0 +1,2 @@
+cmake ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF
+make
diff -r 4e4673bcf5ef -r 468da8f2cd83 build/multilib-gmake/8bit/build.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build/multilib-gmake/8bit/build.sh	Sat Jun 06 12:40:45 2015 -0500
@@ -0,0 +1,2 @@
+cmake ../../../source -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=ON -DEXTRA_LIB=x265.a
+make
diff -r 4e4673bcf5ef -r 468da8f2cd83 build/multilib-gmake/README.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build/multilib-gmake/README.txt	Sat Jun 06 12:40:45 2015 -0500
@@ -0,0 +1,17 @@
+These two subfolders can be used to build a single x265 console binary
+on linux or any other system supporting 'make' builds, with both the
+8bit and 10bit libraries statically linked together.
+
+At the end of the process, the 8bit/libx265.a and 10bit/libx265.a could
+also be linked into other applications, so long as they use
+x265_api_get() or x265_api_query() to acquire the x265 API and then only
+use the function pointers and data elementes within (no other C APIs or
+symbols are exported).
+
+The folders must be built in a specific order. 10bit first, then 8bit
+last. ie:
+
+cd 10bit
+./build.sh
+cd ../8bit
+./build.sh


More information about the x265-devel mailing list