| 1 | libdir := lib/$(DEB_HOST_MULTIARCH) |
| 2 | |
| 3 | |
| 4 | common_confflags := \ |
| 5 | -DCMAKE_INSTALL_PREFIX=/usr \ |
| 6 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
| 7 | -DCMAKE_VERBOSE_MAKEFILE=ON |
| 8 | |
| 9 | 8bit_confflags := \ |
| 10 | $(common_confflags) \ |
| 11 | -DLIB_INSTALL_DIR=$(libdir) |
| 12 | |
| 13 | 10bit_confflags := \ |
| 14 | $(common_confflags) \ |
| 15 | -DBIN_INSTALL_DIR=$(libdir)/x265-10bit \ |
| 16 | -DLIB_INSTALL_DIR=$(libdir)/x265-10bit \ |
| 17 | -DHIGH_BIT_DEPTH=ON |
| 18 | |
| 19 | |
| 20 | static_confflags := \ |
| 21 | -DCMAKE_INSTALL_PREFIX=/usr \ |
| 22 | -DCMAKE_BUILD_TYPE=Release \ |
| 23 | -DCMAKE_VERBOSE_MAKEFILE=ON \ |
| 24 | -DENABLE_CLI=OFF \ |
| 25 | -DENABLE_SHARED=OFF |
| 26 | |
| 27 | 8bit_static_confflags := \ |
| 28 | $(static_confflags) \ |
| 29 | -DLIB_INSTALL_DIR=$(libdir) |
| 30 | |
| 31 | 10bit_static_confflags := \ |
| 32 | $(static_confflags) \ |
| 33 | -DLIB_INSTALL_DIR=$(libdir)/x265-10bit \ |
| 34 | -DHIGH_BIT_DEPTH=ON |
| 35 | |
| 36 | |
| 37 | # disable assembly on x86 and arm |
| 38 | ifneq (,$(filter i386 i486 i586 i686 pentium arm,$(DEB_HOST_GNU_CPU))) |
| 39 | noasm = -DENABLE_ASSEMBLY=OFF -DCMAKE_CXX_FLAGS='-DX86_64=0' |
| 40 | 8bit_confflags += $(noasm) |
| 41 | 10bit_confflags += $(noasm) |
| 42 | 8bit_static_confflags += $(noasm) |
| 43 | 10bit_static_confflags += $(noasm) |
| 44 | endif |
| 45 | |