initial commit
This commit is contained in:
@@ -0,0 +1,113 @@
|
||||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# If set, the pattern "**" used in a pathname expansion context will
|
||||
# match all files and zero or more directories and subdirectories.
|
||||
#shopt -s globstar
|
||||
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
# set variable identifying the chroot you work in (used in the prompt below)
|
||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
fi
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||
# off by default to not distract the user: the focus in a terminal window
|
||||
# should be on the output of commands, not on the prompt
|
||||
force_color_prompt=yes
|
||||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;35m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
else
|
||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
||||
|
||||
# If this is an xterm set the title to user@host:dir
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*)
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
#alias dir='dir --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
|
||||
#alias grep='grep --color=auto'
|
||||
#alias fgrep='fgrep --color=auto'
|
||||
#alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# colored GCC warnings and errors
|
||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||
|
||||
# some more ls aliases
|
||||
#alias ll='ls -l'
|
||||
#alias la='ls -A'
|
||||
#alias l='ls -CF'
|
||||
|
||||
# Alias definitions.
|
||||
# You may want to put all your additions into a separate file like
|
||||
# ~/.bash_aliases, instead of adding them here directly.
|
||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||
# sources /etc/bash.bashrc).
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
@@ -0,0 +1,183 @@
|
||||
FROM debian:trixie-slim
|
||||
ARG JOBS_COUNT=12
|
||||
ENV CROSS_COMPILE=x86_64-w64-mingw32-
|
||||
ENV SYSROOT=/usr/lib/gcc/x86_64-w64-mingw32/14-posix
|
||||
|
||||
# locales
|
||||
RUN apt-get update && apt-get install -y locales \
|
||||
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
|
||||
&& rm -rf /var/cache/apt/archives/*
|
||||
ENV LANG=en_US.utf8
|
||||
|
||||
# configs
|
||||
COPY .bashrc /root/.bashrc
|
||||
COPY inputrc /etc/inputrc
|
||||
|
||||
# base soft
|
||||
RUN apt-get install -y subversion git zip unzip wget curl htop net-tools iputils-ping mc nano screen g++ patchelf p7zip-full ninja-build make python3 \
|
||||
cpio libglu1-mesa-dev libgl1-mesa-dev libwayland-dev libncurses-dev flex bison gperf libdbus-1-3 \
|
||||
ccache libffi-dev libssl-dev doxygen graphviz libx11-dev libxkbcommon-dev libpkgconfig-perl libfontconfig1-dev \
|
||||
liblzma-dev libxml2-dev libbz2-dev libmpc-dev libmpfr-dev libgmp-dev libicu-dev libusb-1.0-0-dev libreadline-dev \
|
||||
ninja-build mingw-w64 libz-mingw-w64-dev \
|
||||
&& rm -rf /var/cache/apt/archives/*
|
||||
|
||||
# w64-mingw32 soft
|
||||
RUN update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix \
|
||||
&& update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
|
||||
|
||||
RUN x86_64-w64-mingw32-strip -v --strip-unneeded /usr/x86_64-w64-mingw32/lib/*.dll && \
|
||||
x86_64-w64-mingw32-strip -v --strip-unneeded ${SYSROOT}/*.dll
|
||||
|
||||
WORKDIR /soft
|
||||
|
||||
COPY toolchain-Windows.cmake /soft/
|
||||
COPY opencl_win.zip /soft/
|
||||
COPY rpc.zip /soft/
|
||||
COPY zlib1.dll /soft/windows/bin/
|
||||
|
||||
|
||||
ENV CUR_SODIUM_VERSION=1.0.20
|
||||
ENV CUR_FFTW_VERSION=3.3.8
|
||||
ENV CUR_ASSIMP_VERSION=4.1.0
|
||||
ENV CUR_DISCOUNT_VERSION=2.2.6
|
||||
ENV CUR_OPENSSL_VERSION=1_1_1h
|
||||
ENV CUR_OPENCV_VERSION=4.5.5
|
||||
|
||||
|
||||
RUN mkdir -p /soft/windows/bin/ \
|
||||
&& cp -v ${SYSROOT}/libgcc_s_seh-1.dll /soft/windows/bin/ \
|
||||
&& cp -v ${SYSROOT}/libstdc++-6.dll /soft/windows/bin/ \
|
||||
&& cp -v /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll /soft/windows/bin/
|
||||
RUN unzip -o opencl_win.zip -d /soft/windows \
|
||||
&& unzip -o rpc.zip -d /soft/windows/lib \
|
||||
&& rm -vf /soft/opencl_win.zip /soft/rpc.zip
|
||||
|
||||
# last cmake from sources, into /opt
|
||||
ENV CUR_CMAKE_VERSION=3.31.3
|
||||
RUN wget -nv https://github.com/Kitware/CMake/releases/download/v${CUR_CMAKE_VERSION}/cmake-${CUR_CMAKE_VERSION}-Linux-x86_64.sh \
|
||||
&& mkdir -p /opt/cmake \
|
||||
&& bash ./cmake-${CUR_CMAKE_VERSION}-Linux-x86_64.sh --skip-license --prefix=/opt/cmake \
|
||||
&& rm -rf /soft/cmake-${CUR_CMAKE_VERSION}-Linux-x86_64.sh
|
||||
|
||||
ENV PATH=/opt/cmake/bin:$PATH
|
||||
|
||||
|
||||
# Remove invalid FindGtest.cmake
|
||||
RUN cd "$(find /opt/cmake/share -name FindGTest.cmake -type f -printf '%h' -quit)" && rm FindGTest.cmake
|
||||
|
||||
|
||||
# sodium
|
||||
WORKDIR /soft
|
||||
RUN curl -s https://download.libsodium.org/libsodium/releases/libsodium-${CUR_SODIUM_VERSION}.tar.gz \
|
||||
-o libsodium-${CUR_SODIUM_VERSION}.tar.gz \
|
||||
&& tar -xf libsodium-${CUR_SODIUM_VERSION}.tar.gz -C /soft \
|
||||
&& rm -f libsodium-${CUR_SODIUM_VERSION}.tar.gz \
|
||||
&& mkdir -p /soft/windows/build/sodium && cd /soft/windows/build/sodium \
|
||||
&& sh -c 'CFLAGS="-O3 -fomit-frame-pointer -m64" LDFLAGS="-O3 -fomit-frame-pointer -m64" /soft/libsodium-${CUR_SODIUM_VERSION}/configure --host=x86_64-w64-mingw32 --prefix=/soft/windows/ --exec-prefix=/soft/windows && make install -j${JOBS_COUNT}' \
|
||||
&& cd /soft && rm -rf /soft/windows/build/sodium && rm -rf /soft/libsodium-*
|
||||
|
||||
|
||||
# fftw3
|
||||
WORKDIR /soft
|
||||
RUN wget -nv http://www.fftw.org/fftw-${CUR_FFTW_VERSION}.tar.gz \
|
||||
&& tar -xf fftw-${CUR_FFTW_VERSION}.tar.gz -C /soft \
|
||||
&& rm -f fftw-${CUR_FFTW_VERSION}.tar.gz \
|
||||
&& mkdir -p /soft/windows/build/fftw3 && cd /soft/windows/build/fftw3 \
|
||||
&& cmake -DCMAKE_INSTALL_PREFIX=/soft/windows -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_FLOAT=0 -DENABLE_LONG_DOUBLE=0 -DENABLE_QUAD_PRECISION=0 -DENABLE_THREADS=1 -DWITH_COMBINED_THREADS=1 -DCMAKE_TOOLCHAIN_FILE=/soft/toolchain-Windows.cmake /soft/fftw-* \
|
||||
&& make install -j${JOBS_COUNT} && rm -rf ./* \
|
||||
&& cmake -DCMAKE_INSTALL_PREFIX=/soft/windows -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_FLOAT=1 -DENABLE_LONG_DOUBLE=0 -DENABLE_QUAD_PRECISION=0 -DENABLE_THREADS=1 -DWITH_COMBINED_THREADS=1 -DCMAKE_TOOLCHAIN_FILE=/soft/toolchain-Windows.cmake /soft/fftw-* \
|
||||
&& make install -j${JOBS_COUNT} && rm -rf ./* \
|
||||
&& cmake -DCMAKE_INSTALL_PREFIX=/soft/windows -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_FLOAT=0 -DENABLE_LONG_DOUBLE=1 -DENABLE_QUAD_PRECISION=0 -DENABLE_THREADS=1 -DWITH_COMBINED_THREADS=1 -DCMAKE_TOOLCHAIN_FILE=/soft/toolchain-Windows.cmake /soft/fftw-* \
|
||||
&& make install -j${JOBS_COUNT} && rm -rf ./* \
|
||||
&& rm -rf /soft/fftw-*
|
||||
|
||||
|
||||
# assimp
|
||||
WORKDIR /soft
|
||||
RUN wget -nv https://github.com/assimp/assimp/archive/v${CUR_ASSIMP_VERSION}.tar.gz \
|
||||
&& tar -xf v${CUR_ASSIMP_VERSION}.tar.gz -C /soft \
|
||||
&& rm -f v${CUR_ASSIMP_VERSION}.tar.gz pax_global_header \
|
||||
&& mkdir -p /soft/windows/build/assimp && cd /soft/windows/build/assimp \
|
||||
&& cmake -DCMAKE_INSTALL_PREFIX=/soft/windows -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DASSIMP_BUILD_ASSIMP_TOOLS=0 -DASSIMP_BUILD_TESTS=0 -DBUILD_FRAMEWORK=0 -DCMAKE_TOOLCHAIN_FILE=/soft/toolchain-Windows.cmake /soft/assimp-* \
|
||||
&& make install -j${JOBS_COUNT} && rm -rf ./* && rm -rf /soft/assimp-*
|
||||
|
||||
|
||||
# markdown
|
||||
WORKDIR /soft
|
||||
RUN wget -nv https://github.com/Orc/discount/archive/v${CUR_DISCOUNT_VERSION}.tar.gz \
|
||||
&& tar -xf v${CUR_DISCOUNT_VERSION}.tar.gz -C /soft \
|
||||
&& rm -f v${CUR_DISCOUNT_VERSION}.tar.gz
|
||||
RUN sed -i 's/DESTRUCTOR/ /' /soft/discount-${CUR_DISCOUNT_VERSION}/setup.c
|
||||
WORKDIR /soft/discount-${CUR_DISCOUNT_VERSION}/cmake
|
||||
COPY discount.cmake.patch /soft/discount-${CUR_DISCOUNT_VERSION}/cmake/cmake.patch
|
||||
RUN patch < cmake.patch
|
||||
WORKDIR /soft/linux/build/discount
|
||||
RUN cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DDISCOUNT_ONLY_LIBRARY=1 /soft/discount-${CUR_DISCOUNT_VERSION}/cmake && make -j2 && mv mktags .. && rm -rf ./* \
|
||||
&& mkdir -p /soft/windows/build/discount && mv /soft/linux/build/mktags /soft/windows/build/discount/mktags
|
||||
WORKDIR /soft/windows/build/discount
|
||||
RUN cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/soft/windows -DCMAKE_TOOLCHAIN_FILE=/soft/toolchain-Windows.cmake -DDISCOUNT_ONLY_LIBRARY=1 /soft/discount-*/cmake \
|
||||
&& make install -j${JOBS_COUNT} && rm -rf ./* && rm -rf /soft/discount-*
|
||||
|
||||
|
||||
# mysql
|
||||
COPY MySQL_C_x64.zip /soft/
|
||||
RUN unzip -o /soft/MySQL_C_x64.zip -d ${SYSROOT}/ \
|
||||
&& cp ${SYSROOT}/libmysql.dll /soft/windows/bin/ \
|
||||
&& rm /soft/MySQL_C_x64.zip
|
||||
|
||||
|
||||
# postgresql
|
||||
COPY postgresql.zip /soft/
|
||||
RUN unzip -o /soft/postgresql.zip -d ${SYSROOT}/ \
|
||||
&& cp ${SYSROOT}/lib/*.dll /soft/windows/bin/ \
|
||||
&& rm /soft/postgresql.zip
|
||||
|
||||
|
||||
# OpenSSL
|
||||
RUN wget -nv https://github.com/openssl/openssl/archive/OpenSSL_${CUR_OPENSSL_VERSION}.tar.gz \
|
||||
&& tar -xf OpenSSL_${CUR_OPENSSL_VERSION}.tar.gz -C /soft \
|
||||
&& rm -f OpenSSL_${CUR_OPENSSL_VERSION}.tar.gz \
|
||||
&& mkdir -p /soft/windows/build/openssl && cd /soft/windows/build/openssl \
|
||||
&& /soft/openssl-OpenSSL_${CUR_OPENSSL_VERSION}/Configure --cross-compile-prefix=x86_64-w64-mingw32- \
|
||||
--prefix=/soft/windows/ --release no-idea no-mdc2 no-rc5 no-tests shared mingw64 \
|
||||
&& make -j${JOBS_COUNT} && make install \
|
||||
&& cd /soft && rm -rf /soft/windows/build/openssl && rm -rf /soft/openssl-OpenSSL_*
|
||||
|
||||
# microhttpd
|
||||
RUN mkdir -p /soft/tmp && cd /soft/tmp \
|
||||
&& wget https://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-latest-w32-bin.zip \
|
||||
&& unzip -o /soft/tmp/*.zip -d /soft/tmp \
|
||||
&& cp -rfv /soft/tmp/libmicrohttpd-*-w32-bin/x86_64/MinGW/static/mingw64/* /soft/windows/ \
|
||||
&& rm -rf /soft/tmp
|
||||
|
||||
|
||||
# curl
|
||||
RUN mkdir -p /soft/tmp && cd /soft/tmp \
|
||||
&& wget https://curl.se/windows/latest.cgi?p=win64-mingw.zip \
|
||||
&& unzip -o /soft/tmp/*.zip -d /soft/tmp \
|
||||
&& cp -rv /soft/tmp/curl-*/bin /soft/tmp/curl-*/lib /soft/tmp/curl-*/include ${SYSROOT} \
|
||||
&& cp -v ${SYSROOT}/bin/libcurl-x64.dll /soft/windows/bin/ \
|
||||
&& cp -v ${SYSROOT}/lib/*curl.dll.a /soft/windows/lib/ \
|
||||
&& rm -rf /soft/tmp
|
||||
|
||||
|
||||
RUN chmod +r /soft/windows/bin/*
|
||||
|
||||
ENV BUILD_TYPE=Release
|
||||
|
||||
# GTest
|
||||
WORKDIR /soft
|
||||
RUN git clone https://github.com/google/googletest.git \
|
||||
&& mkdir googletest/build && cd googletest/build \
|
||||
&& cmake -DCMAKE_INSTALL_PREFIX=/soft/windows -DCMAKE_TOOLCHAIN_FILE=/soft/toolchain-Windows.cmake .. \
|
||||
&& make -j${JOBS_COUNT} && make install && cd /soft && rm -rf googletest
|
||||
|
||||
WORKDIR /soft
|
||||
RUN git clone --depth 1 --recursive -b 'release/21.x' https://github.com/llvm/llvm-project.git
|
||||
|
||||
WORKDIR /soft/llvm_build_windows
|
||||
RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/soft/windows -DCMAKE_TOOLCHAIN_FILE=/soft/toolchain-Windows.cmake \
|
||||
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_ENABLE_RUNTIMES="" -DLLVM_ENABLE_RTTI=ON \
|
||||
-DLLVM_BUILD_TESTS=OFF -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INSTALL_GTEST=OFF ../llvm-project/llvm \
|
||||
&& cmake --build ./ --target install -j8 \
|
||||
&& rm -rf *
|
||||
Binary file not shown.
@@ -0,0 +1,38 @@
|
||||
--- CMakeLists.txt 2019-04-15 18:28:20.000000000 +0300
|
||||
+++ CMakeLists_new.txt 2020-03-16 10:46:52.288128600 +0300
|
||||
@@ -20,6 +20,9 @@
|
||||
set(${PROJECT_NAME}_ONLY_LIBRARY OFF CACHE BOOL
|
||||
"Set to ON to only build markdown library (default is OFF)")
|
||||
|
||||
+set(${PROJECT_NAME}_CXX_BINDING OFF CACHE BOOL
|
||||
+ "Set to ON to install header files with c++ wrappers (default is OFF)")
|
||||
+
|
||||
# Check headers
|
||||
include(CheckIncludeFile)
|
||||
check_include_file(libgen.h HAVE_LIBGEN_H)
|
||||
@@ -110,6 +113,13 @@
|
||||
configure_file("${_ROOT}/mkdio.h.in"
|
||||
"${_ROOT}/mkdio.h"
|
||||
@ONLY)
|
||||
+if(${PROJECT_NAME}_CXX_BINDING)
|
||||
+ message(STATUS "Applying c++ glue to mkdio.h")
|
||||
+ file(READ "${_ROOT}/mkdio.h" _ROOT_MKDIO_H)
|
||||
+ file(WRITE "${_ROOT}/mkdio.h" "#ifdef __cplusplus\nextern \"C\" {\n#endif\n")
|
||||
+ file(APPEND "${_ROOT}/mkdio.h" "${_ROOT_MKDIO_H}")
|
||||
+ file(APPEND "${_ROOT}/mkdio.h" "#ifdef __cplusplus\n}\n#endif\n")
|
||||
+endif()
|
||||
|
||||
include_directories("${_ROOT}")
|
||||
|
||||
@@ -182,7 +192,10 @@
|
||||
target_include_directories(libmarkdown INTERFACE
|
||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
)
|
||||
- set(_TARGETS libmarkdown markdown)
|
||||
+ set(_TARGETS libmarkdown)
|
||||
+ if(NOT ${PROJECT_NAME}_ONLY_LIBRARY)
|
||||
+ list(APPEND _TARGETS markdown)
|
||||
+ endif()
|
||||
if(${PROJECT_NAME}_INSTALL_SAMPLES)
|
||||
list(APPEND _TARGETS mkd2html makepage)
|
||||
endif()
|
||||
@@ -0,0 +1,13 @@
|
||||
set(HAVE_IOEO_EXITCODE 0 CACHE BOOL "")
|
||||
set(H5_LDOUBLE_TO_LONG_SPECIAL_RUN 1 CACHE BOOL "")
|
||||
set(H5_LONG_TO_LDOUBLE_SPECIAL_RUN 1 CACHE BOOL "")
|
||||
set(H5_LDOUBLE_TO_LLONG_ACCURATE_RUN 0 CACHE BOOL "")
|
||||
set(H5_LLONG_TO_LDOUBLE_CORRECT_RUN 0 CACHE BOOL "")
|
||||
set(H5_DISABLE_SOME_LDOUBLE_CONV_RUN 1 CACHE BOOL "")
|
||||
|
||||
set(HAVE_IOEO_EXITCODE__TRYRUN_OUTPUT 0 CACHE BOOL "")
|
||||
set(H5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT 1 CACHE BOOL "")
|
||||
set(H5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT 1 CACHE BOOL "")
|
||||
set(H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT 0 CACHE BOOL "")
|
||||
set(H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT 0 CACHE BOOL "")
|
||||
set(H5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT 1 CACHE BOOL "")
|
||||
@@ -0,0 +1,67 @@
|
||||
# /etc/inputrc - global inputrc for libreadline
|
||||
# See readline(3readline) and `info rluserman' for more information.
|
||||
|
||||
# Be 8 bit clean.
|
||||
set input-meta on
|
||||
set output-meta on
|
||||
|
||||
# To allow the use of 8bit-characters like the german umlauts, uncomment
|
||||
# the line below. However this makes the meta key not work as a meta key,
|
||||
# which is annoying to those which don't need to type in 8-bit characters.
|
||||
|
||||
# set convert-meta off
|
||||
|
||||
# try to enable the application keypad when it is called. Some systems
|
||||
# need this to enable the arrow keys.
|
||||
# set enable-keypad on
|
||||
|
||||
# see /usr/share/doc/bash/inputrc.arrows for other codes of arrow keys
|
||||
|
||||
# do not bell on tab-completion
|
||||
# set bell-style none
|
||||
# set bell-style visible
|
||||
|
||||
# some defaults / modifications for the emacs mode
|
||||
$if mode=emacs
|
||||
|
||||
# allow the use of the Home/End keys
|
||||
"\e[1~": beginning-of-line
|
||||
"\e[4~": end-of-line
|
||||
|
||||
# allow the use of the Delete/Insert keys
|
||||
"\e[3~": delete-char
|
||||
"\e[2~": quoted-insert
|
||||
|
||||
# mappings for "page up" and "page down" to step to the beginning/end
|
||||
# of the history
|
||||
# "\e[5~": beginning-of-history
|
||||
# "\e[6~": end-of-history
|
||||
|
||||
# alternate mappings for "page up" and "page down" to search the history
|
||||
"\e[5~": history-search-backward
|
||||
"\e[6~": history-search-forward
|
||||
|
||||
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
|
||||
"\e[1;5C": forward-word
|
||||
"\e[1;5D": backward-word
|
||||
"\e[5C": forward-word
|
||||
"\e[5D": backward-word
|
||||
"\e\e[C": forward-word
|
||||
"\e\e[D": backward-word
|
||||
|
||||
$if term=rxvt
|
||||
"\e[7~": beginning-of-line
|
||||
"\e[8~": end-of-line
|
||||
"\eOc": forward-word
|
||||
"\eOd": backward-word
|
||||
$endif
|
||||
|
||||
# for non RH/Debian xterm, can't hurt for RH/Debian xterm
|
||||
# "\eOH": beginning-of-line
|
||||
# "\eOF": end-of-line
|
||||
|
||||
# for freebsd console
|
||||
# "\e[H": beginning-of-line
|
||||
# "\e[F": end-of-line
|
||||
|
||||
$endif
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
set(CMAKE_SYSTEM_NAME Windows)
|
||||
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||
|
||||
set(CMAKE_C_COMPILER /usr/bin/${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-gcc-posix )
|
||||
set(CMAKE_C_COMPILER_AR /usr/bin/${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-gcc-ar-posix )
|
||||
set(CMAKE_C_COMPILER_RANLIB /usr/bin/${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-gcc-ranlib-posix )
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-g++-posix )
|
||||
set(CMAKE_CXX_COMPILER_AR /usr/bin/${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-gcc-ar-posix )
|
||||
set(CMAKE_CXX_COMPILER_RANLIB /usr/bin/${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-gcc-ranlib-posix )
|
||||
set(CMAKE_ASM_NASM_COMPILER /usr/bin/${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-as )
|
||||
set(CMAKE_RC_COMPILER /usr/bin/${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-windres)
|
||||
set(CMAKE_OBJDUMP /usr/bin/${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-objdump)
|
||||
add_definitions(-D_WIN32_WINNT=0x0A00 -D_GNU_SOURCE=1 -DNOWERROR=1)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all")
|
||||
|
||||
list(APPEND CMAKE_PREFIX_PATH "/soft/windows")
|
||||
SET(CMAKE_FIND_ROOT_PATH /usr/${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32 ${CMAKE_PREFIX_PATH}/lib)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY FIRST)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE FIRST)
|
||||
include_directories(${CMAKE_PREFIX_PATH}/include)
|
||||
set(OpenCL_INCLUDE_DIR ${CMAKE_PREFIX_PATH}/include)
|
||||
set(OpenCL_LIBRARY ${CMAKE_PREFIX_PATH}/lib/opencl.lib)
|
||||
Binary file not shown.
Reference in New Issue
Block a user