Skip to content

Commit 84d9bd4

Browse files
author
Martin Müllenhaupt
committed
rename uid to faf-uid
1 parent 5d8a131 commit 84d9bd4

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

.travis.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ matrix:
55
sudo: required
66
compiler: gcc
77
env:
8-
- UID_FILENAME=uid.exe
8+
- UID_FILENAME=faf-uid.exe
99
- UID_PLATFORM='win32'
1010
- MXE_DIR=/usr/lib/mxe
1111
- MXE_TARGET=i686-w64-mingw32.static
@@ -43,10 +43,12 @@ matrix:
4343
- cmake-data
4444
- python3
4545
env:
46-
- UID_FILENAME=uid
46+
- UID_FILENAME=faf-uid
4747
- UID_PLATFORM='linux'
48+
- JSONCPP_VERSION=1.7.7
49+
- CRYPTOPP_VERSION=5_6_5
4850
install:
49-
- wget https://github.com/open-source-parsers/jsoncpp/archive/1.7.5.tar.gz -O jsoncpp.tar.gz
51+
- wget https://github.com/open-source-parsers/jsoncpp/archive/$JSONCPP_VERSION.tar.gz -O jsoncpp.tar.gz
5052
- tar xfz jsoncpp.tar.gz
5153
- mkdir jsoncpp-build
5254
- cd jsoncpp-build
@@ -56,12 +58,12 @@ matrix:
5658
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF
5759
-DBUILD_STATIC_LIBS=ON
5860
-DBUILD_SHARED_LIBS=OFF
59-
../jsoncpp-1.7.5
61+
../jsoncpp-$JSONCPP_VERSION
6062
- make -j8
6163
- cd ..
62-
- wget https://github.com/weidai11/cryptopp/archive/CRYPTOPP_5_6_4.zip -O cryptopp.zip
64+
- wget https://github.com/weidai11/cryptopp/archive/CRYPTOPP_$CRYPTOPP_VERSION.zip -O cryptopp.zip
6365
- unzip ./cryptopp.zip
64-
- mv cryptopp-CRYPTOPP_5_6_4 cryptopp
66+
- mv cryptopp-CRYPTOPP_$CRYPTOPP_VERSION cryptopp
6567
- cd cryptopp
6668
- make -j8 -f GNUmakefile CXX=g++-6 CXXFLAGS='-DCRYPTOPP_NO_BACKWARDS_COMPATIBILITY_562 -DNDEBUG -O3' libcryptopp.a
6769
- cd ..
@@ -70,7 +72,7 @@ matrix:
7072
- cmake
7173
-DCMAKE_CXX_COMPILER=g++-6
7274
-DJSONCPP_LIBRARIES=$TRAVIS_BUILD_DIR/jsoncpp-build/src/lib_json/libjsoncpp.a
73-
-DJSONCPP_INCLUDE_DIRS=$TRAVIS_BUILD_DIR/jsoncpp-1.7.5/include
75+
-DJSONCPP_INCLUDE_DIRS=$TRAVIS_BUILD_DIR/jsoncpp-$JSONCPP_VERSION/include
7476
-DCRYPTOPP_LIBRARIES=$TRAVIS_BUILD_DIR/cryptopp/libcryptopp.a
7577
-DCRYPTOPP_INCLUDE_DIRS=$TRAVIS_BUILD_DIR
7678
-DCMAKE_CXX_FLAGS="-DCRYPTOPP_NO_BACKWARDS_COMPATIBILITY_562"

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 2.8)
22

3-
project(faf_uid CXX C)
3+
project(faf-uid CXX C)
44

55
include(CheckCXXCompilerFlag)
66
CHECK_CXX_COMPILER_FLAG("-std=c++11" UID_COMPILER_SUPPORTS_CXX11)
@@ -59,28 +59,28 @@ add_definitions(-DUID_PUBKEY_BYTES=${UID_PUBKEY_BYTES})
5959

6060
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
6161

62-
add_executable(uid
62+
add_executable(faf-uid
6363
uid.cpp
6464
${machine_info_src}
6565
)
6666

6767
# Disable console window popping up when running the exe from Python
6868
# Note: this also disables the output running the exe from cmd
6969
if (WIN32)
70-
set_target_properties(uid PROPERTIES LINK_FLAGS -mwindows)
70+
set_target_properties(faf-uid PROPERTIES LINK_FLAGS -mwindows)
7171
endif()
7272

73-
target_link_libraries(uid
73+
target_link_libraries(faf-uid
7474
${CRYPTOPP_LIBRARIES}
7575
${JSONCPP_LIBRARIES}
7676
${machine_info_libs}
7777
)
7878

7979
# Strip exe to reduce file size
80-
add_custom_command(TARGET uid
80+
add_custom_command(TARGET faf-uid
8181
POST_BUILD
82-
COMMAND ${CMAKE_STRIP} -s "$<TARGET_FILE:uid>"
83-
COMMENT "Stripping executable $<TARGET_FILE_NAME:uid>"
82+
COMMAND ${CMAKE_STRIP} -s "$<TARGET_FILE:faf-uid>"
83+
COMMENT "Stripping executable $<TARGET_FILE_NAME:faf-uid>"
8484
)
8585

8686
if (WIN32)

0 commit comments

Comments
 (0)