1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

gitlab-ci: enable ubuntu 12.04 builds

This commit is contained in:
Ilya Shipitsin 2018-10-12 01:03:12 +05:00
parent 0e22adc598
commit ec09309aa8
4 changed files with 26 additions and 10 deletions

View File

@ -1,6 +1,6 @@
.ubuntu: &ubuntu_def
variables:
CMAKE_VERSION: 3.12.1
CMAKE_VERSION: 3.9.6
before_script:
- REPOSITORY="$PWD" && cd ..
- apt-get update && apt-get install -y dpkg-dev wget g++ gcc libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev git file
@ -23,11 +23,7 @@ trusty:
<<: *ubuntu_def
image: ubuntu:trusty
#
# there's no cmake3 for 12.04
# maybe, there's ppa ?
#
#precise:
# <<: *ubuntu_def
# image: ubuntu:precise
precise:
<<: *ubuntu_def
image: ubuntu:precise

View File

@ -26,6 +26,9 @@ if (NOT ${PROJECT_VERSION} VERSION_EQUAL "${CurrentBuild_MAJOR}.${CurrentBuild_M
message (FATAL_ERROR "PROJECT_VERSION does not match to src/CurrentBuild.txt")
endif()
include(CheckIncludeFile)
Check_Include_File(sys/auxv.h HAVE_SYS_AUXV)
configure_file("${SoftEtherVPN_SOURCE_DIR}/AUTHORS.TXT" "${SoftEtherVPN_SOURCE_DIR}/src/bin/hamcore/authors.txt" COPYONLY)
set(BUILD_DIRECTORY ${SoftEtherVPN_SOURCE_DIR}/build)

View File

@ -19,11 +19,24 @@ find_package(ZLIB REQUIRED)
# In some cases libiconv is not included in libc
find_library(LIB_ICONV iconv)
if(HAVE_SYS_AUXV)
add_subdirectory(cpu_features)
endif()
target_include_directories(mayaqua PRIVATE cpu_features/include)
target_link_libraries(mayaqua cpu_features OpenSSL::SSL OpenSSL::Crypto Threads::Threads ZLIB::ZLIB)
target_link_libraries(mayaqua OpenSSL::SSL OpenSSL::Crypto Threads::Threads ZLIB::ZLIB)
if(HAVE_SYS_AUXV)
target_link_libraries(mayaqua cpu_features)
else()
add_definitions(-DSKIP_CPU_FEATURES)
endif()
find_library(LIB_RT rt)
if(LIB_RT)
target_link_libraries(mayaqua rt)
endif()
if(LIB_ICONV)
target_link_libraries(mayaqua ${LIB_ICONV})

View File

@ -148,7 +148,11 @@
#ifdef _MSC_VER
#include <intrin.h> // For __cpuid()
#else // _MSC_VER
#ifndef SKIP_CPU_FEATURES
#include "cpu_features_macros.h"
#endif
#if defined(CPU_FEATURES_ARCH_X86)
#include "cpuinfo_x86.h"
#elif defined(CPU_FEATURES_ARCH_ARM)