Skip to content
Snippets Groups Projects
Commit a8d1982f authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Try powershell env vars

parent b884ecef
No related branches found
No related tags found
No related merge requests found
build
\ No newline at end of file
build
**/config.cpp
**/config.h
\ No newline at end of file
......@@ -30,7 +30,6 @@ code_quality:
only:
- main
- merge_requests
- tags
tags:
- docker
script:
......@@ -121,7 +120,7 @@ linux:pack:
tags:
- docker
needs: ["linux:build"]
dependencies: ["linux:build"]
script:
- DEBIAN_FRONTEND=noninteractive apt update && apt install -y libmsgpackc2 liburiparser1 cmake file
- cd build
......@@ -160,7 +159,7 @@ windows:build:
- if (Test-Path build) { Remove-Item build/ -Recurse }
- mkdir build
- cd build
- cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DFTL_VERSION=%CI_COMMIT_TAG% -DWITH_GNUTLS=TRUE -DGNUTLS_INCLUDE_DIR="C:/Build/bin/gnutls/lib/includes/" -DGNUTLS_LIBRARY="C:/Build/bin/gnutls/lib/libgnutls.dll.a" ..
- cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DFTL_VERSION=$Env:CI_COMMIT_TAG -DWITH_GNUTLS=TRUE -DGNUTLS_INCLUDE_DIR="C:/Build/bin/gnutls/lib/includes/" -DGNUTLS_LIBRARY="C:/Build/bin/gnutls/lib/libgnutls.dll.a" ..
- '& MSBuild.exe beyond-protocol.sln -property:Configuration=Release -nr:false -maxCpuCount'
windows:test:
......@@ -193,7 +192,7 @@ windows:pack:
tags:
- windows
needs: ["windows:build"]
dependencies: ["windows:build"]
cache: # use artifacts instead if multiple runners available
key: $CI_COMMIT_SHORT_SHA
......
/**
* @file config.h
* @copyright Copyright (c) 2020 University of Turku, MIT License
* @author Nicolas Pope
*
* To be CMake processed
*/
#pragma once
#ifdef WIN32
#ifdef BUILD_SHARED
#define FTLEXPORT __declspec(dllexport)
#else
#define FTLEXPORT __declspec(dllimport)
#endif
#else // WIN32
#define FTLEXPORT
#endif
/* #undef HAVE_URIPARSESINGLE */
/* #undef HAVE_LIBARCHIVE */
#define HAVE_GNUTLS
/* #undef HAVE_PYTHON */
/* #undef ENABLE_PROFILER */
extern const char *FTL_BRANCH;
extern const char *FTL_VERSION_LONG;
extern const char *FTL_VERSION;
extern const int FTL_VERSION_MAJOR;
extern const int FTL_VERSION_MINOR;
extern const int FTL_VERSION_PATCH;
extern const int FTL_VERSION_COMMITS;
extern const char *FTL_VERSION_SHA1;
#define FTL_SOURCE_DIRECTORY "/home/nick/repos/beyond-protocol"
#define FTL_LOCAL_CONFIG_ROOT "/home/nick/.config/ftl"
#define FTL_LOCAL_CACHE_ROOT "/home/nick/.cache/ftl"
#define FTL_LOCAL_DATA_ROOT "/home/nick/.local/share/ftl"
#define FTL_GLOBAL_CONFIG_ROOT "install/share/ftl"
#define FTL_GLOBAL_CACHE_ROOT "install/share/ftl"
#define FTL_GLOBAL_DATA_ROOT "install/share/ftl"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment