Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
ab4dae82
Commit
ab4dae82
authored
Apr 19, 2018
by
Ivan Shynkarenka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Appveyor Cygwin build
parent
94343b6b
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
30 additions
and
25 deletions
+30
-25
appveyor-cygwin.sh
appveyor-cygwin.sh
+4
-0
appveyor.yml
appveyor.yml
+12
-11
capnp.c++
c++/src/capnp/compiler/capnp.c++
+1
-1
capnpc-capnp.c++
c++/src/capnp/compiler/capnpc-capnp.c++
+1
-1
evolution-test.c++
c++/src/capnp/compiler/evolution-test.c++
+1
-1
fuzz-test.c++
c++/src/capnp/fuzz-test.c++
+1
-1
serialize-async-test.c++
c++/src/capnp/serialize-async-test.c++
+1
-1
serialize-test.c++
c++/src/capnp/serialize-test.c++
+1
-1
async-io-unix.c++
c++/src/kj/async-io-unix.c++
+1
-1
debug-test.c++
c++/src/kj/debug-test.c++
+1
-1
exception.c++
c++/src/kj/exception.c++
+1
-1
filesystem-disk-unix.c++
c++/src/kj/filesystem-disk-unix.c++
+1
-1
io-test.c++
c++/src/kj/io-test.c++
+1
-1
io.c++
c++/src/kj/io.c++
+1
-1
main.c++
c++/src/kj/main.c++
+1
-1
test.c++
c++/src/kj/test.c++
+1
-1
No files found.
appveyor-cygwin.sh
0 → 100755
View file @
ab4dae82
#! /usr/bin/env bash
cmake
-Hc
++
-B
./build-cygwin
-G
"Unix Makefiles"
-DCMAKE_BUILD_TYPE
=
debug
-DCMAKE_INSTALL_PREFIX
=
./capnproto-c++-cygwin
cmake
--build
./build-cygwin
--config
debug
--target
install
--
-j2
appveyor.yml
View file @
ab4dae82
...
...
@@ -50,11 +50,15 @@ environment:
BUILD_NAME
:
mingw
EXTRA_BUILD_FLAGS
:
-j2
-
BUILD_NAME
:
cygwin
install
:
-
if not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
-
7z x -y "%MINGW_ARCHIVE%" > nul
-
ps
:
Get-Command sh.exe -All | Remove-Item
# CMake refuses to generate MinGW Makefiles if sh.exe is in the PATH
-
if "%BUILD_NAME%"=="cygwin" appveyor DownloadFile "http://cygwin.com/setup-x86_64.exe" -FileName "C:\cygwin64\setup-x86_64.exe"
-
if "%BUILD_NAME%"=="cygwin" C:\cygwin64\setup-x86_64.exe --quiet-mode --no-shortcuts --upgrade-also --root "C:\cygwin64" --packages cmake
before_build
:
-
set PATH=%CD%\%MINGW_DIR%\bin;%PATH%
...
...
@@ -64,24 +68,21 @@ before_build:
build_script
:
-
echo "Building Cap'n Proto with %CMAKE_GENERATOR%"
-
>-
cmake -Hc++ -B%BUILD_DIR% -G "%CMAKE_GENERATOR%"
-DCMAKE_BUILD_TYPE=%BUILD_TYPE%
-DCMAKE_INSTALL_PREFIX=%INSTALL_PREFIX%
- cmake --build %BUILD_DIR% --config %BUILD_TYPE% --target install -- %EXTRA_BUILD_FLAGS%
-
if NOT "%BUILD_NAME%"=="cygwin" cmake -Hc++ -B%BUILD_DIR% -G "%CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX=%INSTALL_PREFIX%
-
if NOT "%BUILD_NAME%"=="cygwin" cmake --build %BUILD_DIR% --config %BUILD_TYPE% --target install -- %EXTRA_BUILD_FLAGS%
# MinGW wants the build type at configure-time while MSVC wants the build type at build-time. We
# can satisfy both by passing the build type to both cmake invocations. We have to suffer a
# warning, but both generators will work.
-
echo "Building Cap'n Proto samples with %CMAKE_GENERATOR%"
-
>-
cmake -Hc++/samples -B%BUILD_DIR%-samples -G "%CMAKE_GENERATOR%"
-DCMAKE_BUILD_TYPE=%BUILD_TYPE%
-DCMAKE_PREFIX_PATH=%INSTALL_PREFIX%
-
cmake --build %BUILD_DIR%-samples --config %BUILD_TYPE%
-
if NOT "%BUILD_NAME%"=="cygwin" cmake -Hc++/samples -B%BUILD_DIR%-samples -G "%CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_PREFIX_PATH=%INSTALL_PREFIX%
-
if NOT "%BUILD_NAME%"=="cygwin" cmake --build %BUILD_DIR%-samples --config %BUILD_TYPE%
# Cygwin build
-
if "%BUILD_NAME%"=="cygwin" C:\cygwin64\bin\bash -lc 'cd /cygdrive/c/projects/capnproto; ./appveyor-cygwin.sh'
test_script
:
-
timeout /t 2
# Sleep a little to prevent interleaving test output with build output.
-
cd %BUILD_DIR%\src
-
ctest -V -C %BUILD_TYPE%
-
if NOT "%BUILD_NAME%"=="cygwin"
ctest -V -C %BUILD_TYPE%
c++/src/capnp/compiler/capnp.c++
View file @
ab4dae82
...
...
@@ -19,7 +19,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/capnp/compiler/capnpc-capnp.c++
View file @
ab4dae82
...
...
@@ -22,7 +22,7 @@
// This program is a code generator plugin for `capnp compile` which writes the schema back to
// stdout in roughly capnpc format.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/capnp/compiler/evolution-test.c++
View file @
ab4dae82
...
...
@@ -26,7 +26,7 @@
// the types are expected to be compatible, the test also constructs an instance of the old
// type and reads it as the new type, and vice versa.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/capnp/fuzz-test.c++
View file @
ab4dae82
...
...
@@ -19,7 +19,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/capnp/serialize-async-test.c++
View file @
ab4dae82
...
...
@@ -19,7 +19,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/capnp/serialize-test.c++
View file @
ab4dae82
...
...
@@ -19,7 +19,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/kj/async-io-unix.c++
View file @
ab4dae82
...
...
@@ -22,7 +22,7 @@
#if !_WIN32
// For Win32 implementation, see async-io-win32.c++.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/kj/debug-test.c++
View file @
ab4dae82
...
...
@@ -19,7 +19,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/kj/exception.c++
View file @
ab4dae82
...
...
@@ -19,7 +19,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/kj/filesystem-disk-unix.c++
View file @
ab4dae82
...
...
@@ -21,7 +21,7 @@
#if !_WIN32
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/kj/io-test.c++
View file @
ab4dae82
...
...
@@ -19,7 +19,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/kj/io.c++
View file @
ab4dae82
...
...
@@ -19,7 +19,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/kj/main.c++
View file @
ab4dae82
...
...
@@ -19,7 +19,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
c++/src/kj/test.c++
View file @
ab4dae82
...
...
@@ -19,7 +19,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if
__CYGWIN__
#if
ndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment