Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 #export DH_VERBOSE=1
3
4 include /usr/share/dpkg/default.mk
5
6 export DEB_BUILD_MAINT_OPTIONSscip-debian debian highway 1.3.0-2 highway/rules/DEB_BUILD_MAINT_OPTIONS. = hardening=+all optimize=+lto
7 export DPKG_GENSYMBOLS_CHECK_LEVELscip-debian debian highway 1.3.0-2 highway/rules/DPKG_GENSYMBOLS_CHECK_LEVEL. = 4
8
9 %scip-debian debian highway 1.3.0-2 highway/rules/`%`().:
10 dh $@ --buildsystem=cmake+ninja
11
12 # Let's pretend to know what we are doing:
13 DEB_CXXFLAGS_MAINT_APPENDscip-debian debian highway 1.3.0-2 highway/rules/DEB_CXXFLAGS_MAINT_APPEND. += -DHWY_BROKEN_EMU128=0
14
15 ifneq (,$(filterscip-debian debian highway 1.3.0-2 highway/rules/filter. $(DEB_HOST_ARCHscip-debian debian highway 1.3.0-2 highway/rules/DEB_HOST_ARCH.), armel armhf))
16 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77728
17 DEB_CXXFLAGS_MAINT_APPEND += -Wno-psabi
18 endif
19
20 ifeq ($(DEB_HOST_ARCH_CPUscip-debian debian highway 1.3.0-2 highway/rules/DEB_HOST_ARCH_CPU.),i386)
21 # https://github.com/google/highway/issues/1488
22 DEB_CXXFLAGS_MAINT_APPEND += -fexcess-precision=standard
23 endif
24
25 ifeq ($(DEB_HOST_ARCHscip-debian debian highway 1.3.0-2 highway/rules/DEB_HOST_ARCH.),$(filterscip-debian debian highway 1.3.0-2 highway/rules/filter. $(DEB_HOST_ARCHscip-debian debian highway 1.3.0-2 highway/rules/DEB_HOST_ARCH.),armhf))
26 # https://github.com/google/highway/issues/1271
27 CMAKE_EXTRA_FLAGS += -DHWY_CMAKE_ARM7:BOOL=ON
28 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111231
29 DEB_CXXFLAGS_MAINT_APPEND += -fno-tree-vectorize
30 # https://github.com/google/highway/issues/2200
31 DEB_CXXFLAGS_MAINT_APPEND += -O1
32 # Switching to O1 generate a different error than O2, prefer O0:
33 DEB_CXXFLAGS_MAINT_APPEND += -O0
34 endif
35
36 ifeq ($(DEB_HOST_ARCHscip-debian debian highway 1.3.0-2 highway/rules/DEB_HOST_ARCH.),$(filterscip-debian debian highway 1.3.0-2 highway/rules/filter. $(DEB_HOST_ARCHscip-debian debian highway 1.3.0-2 highway/rules/DEB_HOST_ARCH.),riscv64))
37 # https://github.com/google/highway/issues/1740
38 CMAKE_EXTRA_FLAGS += -DHWY_CMAKE_RVV:BOOL=OFF
39 # LP: #2121375
40 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
41 endif
42
43 ifeq ($(DEB_HOST_ARCHscip-debian debian highway 1.3.0-2 highway/rules/DEB_HOST_ARCH.),$(filterscip-debian debian highway 1.3.0-2 highway/rules/filter. $(DEB_HOST_ARCHscip-debian debian highway 1.3.0-2 highway/rules/DEB_HOST_ARCH.),ppc64el))
44 # See https://github.com/google/highway/issues/2743
45 export CC=gcc-14
46 export CXX=g++-14
47 endif
48
49 ifeq ($(DEB_HOST_ARCHscip-debian debian highway 1.3.0-2 highway/rules/DEB_HOST_ARCH.),$(filterscip-debian debian highway 1.3.0-2 highway/rules/filter. $(DEB_HOST_ARCHscip-debian debian highway 1.3.0-2 highway/rules/DEB_HOST_ARCH.),riscv64))
50 # See https://github.com/google/highway/issues/2793
51 export CC=gcc-14
52 export CXX=g++-14
53 endif
54
55 include /usr/share/dpkg/buildtools.mk
56
57 export DEB_CXXFLAGS_MAINT_APPENDscip-debian debian highway 1.3.0-2 highway/rules/DEB_CXXFLAGS_MAINT_APPEND.
58
59 # test suite rely on CMAKE_SKIP_RPATH=OFF
60 CMAKE_EXTRA_FLAGSscip-debian debian highway 1.3.0-2 highway/rules/CMAKE_EXTRA_FLAGS. += \
61 -DCMAKE_SKIP_RPATH:BOOL=OFF \
62 -DBUILD_SHARED_LIBS:BOOL=ON \
63 -DHWY_WARNINGS_ARE_ERRORS:BOOL=ON \
64 -DHWY_SYSTEM_GTEST:BOOL=ON
65
66 ifneq (,$(filterscip-debian debian highway 1.3.0-2 highway/rules/filter. nocheck,$(DEB_BUILD_OPTIONSscip-debian debian highway 1.3.0-2 highway/rules/DEB_BUILD_OPTIONS.)))
67 CMAKE_EXTRA_FLAGSscip-debian debian highway 1.3.0-2 highway/rules/CMAKE_EXTRA_FLAGS. += -DBUILD_TESTING=OFF
68 endif
69
70 override_dh_auto_configure-archscip-debian debian highway 1.3.0-2 highway/rules/override_dh_auto_configure-arch().:
71 dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -- $(CMAKE_EXTRA_FLAGSscip-debian debian highway 1.3.0-2 highway/rules/CMAKE_EXTRA_FLAGS.)
72
73 override_dh_auto_install-archscip-debian debian highway 1.3.0-2 highway/rules/override_dh_auto_install-arch().:
74 ifeq ($(DEB_HOST_ARCHscip-debian debian highway 1.3.0-2 highway/rules/DEB_HOST_ARCH.),$(filterscip-debian debian highway 1.3.0-2 highway/rules/filter. $(DEB_HOST_ARCHscip-debian debian highway 1.3.0-2 highway/rules/DEB_HOST_ARCH.),armhf))
75 sed -i -e 's/HWY_CMAKE_ARM7:BOOL=ON/HWY_CMAKE_ARM7:BOOL=OFF/' obj-*/CMakeCache.txt
76 endif
77 dh_auto_installscip-debian debian debhelper . dh_auto_install().
78
79 ifeq (,$(filterscip-debian debian highway 1.3.0-2 highway/rules/filter. nocheck,$(DEB_BUILD_OPTIONSscip-debian debian highway 1.3.0-2 highway/rules/DEB_BUILD_OPTIONS.)))
80 # run default example to check compilation ok:
81 override_dh_install-archscip-debian debian highway 1.3.0-2 highway/rules/override_dh_install-arch().:
82 ifeq (,$(filterscip-debian debian highway 1.3.0-2 highway/rules/filter. $(DEB_BUILD_ARCHscip-debian debian highway 1.3.0-2 highway/rules/DEB_BUILD_ARCH.),hurd-i386))
83 obj-*/examples/hwy_benchmark
84 else
85 echo "CPU 'QEMU Virtual CPU version 2.5+' does not support RDTSCP, skipping benchmark."
86 endif
87 dh_installscip-debian debian debhelper . dh_install().
88 endif
89
90 override_dh_clean-indepscip-debian debian highway 1.3.0-2 highway/rules/override_dh_clean-indep().:
91 dh_cleanscip-debian debian debhelper . dh_clean(). debian_docs/
92
93 override_dh_auto_configure-indepscip-debian debian highway 1.3.0-2 highway/rules/override_dh_auto_configure-indep().:
94 override_dh_auto_build-indepscip-debian debian highway 1.3.0-2 highway/rules/override_dh_auto_build-indep().:
95 # most docs are ok as-is
96 cp -a g3doc debian_docs
97 # let's shrink a bit this one:
98 gs -q -dNOPAUSE -dBATCH -dSAFER \
99 -sDEVICE=pdfwrite \
100 -dCompatibilityLevel=1.5 \
101 -dPDFSETTINGS=/screen \
102 -dEmbedAllFonts=true \
103 -dSubsetFonts=true \
104 -dColorImageDownsampleType=/Bicubic \
105 -dColorImageResolution=72 \
106 -dGrayImageDownsampleType=/Bicubic \
107 -dGrayImageResolution=72 \
108 -dMonoImageDownsampleType=/Bicubic \
109 -dMonoImageResolution=72 \
110 -sOutputFile=debian_docs/highway_intro.pdf ./g3doc/highway_intro.pdf
111
112 override_dh_auto_test-indepscip-debian debian highway 1.3.0-2 highway/rules/override_dh_auto_test-indep().:
113 override_dh_auto_install-indepscip-debian debian highway 1.3.0-2 highway/rules/override_dh_auto_install-indep().:
114 override_dh_compress-indepscip-debian debian highway 1.3.0-2 highway/rules/override_dh_compress-indep().:
115 # do not compress .pdf/.md files for documentation
116 dh_compressscip-debian debian debhelper . dh_compress(). -X.md -X.pdf