-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5856 from BOINC/vko_build_linux_docker_wrapper_on_ci
Build docker_wrapper for linux on ci and upload it to the artifacts
- Loading branch information
Showing
4 changed files
with
56 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,8 @@ if BUILD_WITH_OPENCL | |
SUBDIRS += openclapp | ||
endif | ||
|
||
if ! ANDROID | ||
SUBDIRS += docker_wrapper | ||
endif | ||
|
||
maintainer-clean: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,49 @@ | ||
|
||
|
||
BOINC_DIR = ../.. | ||
BOINC_SOURCE_API_DIR = $(BOINC_DIR)/api | ||
BOINC_SOURCE_LIB_DIR = $(BOINC_DIR)/lib | ||
BOINC_SOURCE_ZIP_DIR = $(BOINC_DIR)/zip | ||
|
||
BOINC_API_DIR = $(BOINC_SOURCE_API_DIR) | ||
BOINC_LIB_DIR = $(BOINC_SOURCE_LIB_DIR) | ||
BOINC_ZIP_DIR = $(BOINC_SOURCE_ZIP_DIR) | ||
|
||
MAKEFILE_LDFLAGS = -lpthread libstdc++.a | ||
MAKEFILE_STDLIB = libstdc++.a | ||
|
||
CXXFLAGS += -g \ | ||
-Wall -W -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -fno-common \ | ||
-I$(BOINC_DIR) \ | ||
-I$(BOINC_SOURCE_API_DIR) \ | ||
-I$(BOINC_SOURCE_LIB_DIR) \ | ||
-I$(BOINC_SOURCE_ZIP_DIR) \ | ||
-L$(BOINC_API_DIR) \ | ||
-L$(BOINC_LIB_DIR) \ | ||
-L. | ||
|
||
ifdef BUILD_APPS_WITH_VCPKG | ||
BUILD_DIR = $(BOINC_DIR)/3rdParty/linux | ||
VCPKG_DIR ?= $(BUILD_DIR)/vcpkg/installed/x64-linux | ||
|
||
CXXFLAGS += \ | ||
-I$(VCPKG_DIR)/include \ | ||
-L$(VCPKG_DIR)/lib | ||
endif | ||
|
||
all: docker_wrapper | ||
|
||
CXXFLAGS = -g -I../../lib -I../../api\ | ||
-L../../lib -L../../api \ | ||
-Wformat-overflow=0 | ||
libstdc++.a: | ||
ln -s `$(CXX) $(CXXFLAGS) -print-file-name=libstdc++.a` | ||
|
||
clean: distclean | ||
|
||
distclean: | ||
/bin/rm -f docker_wrapper $(addsuffix .exe, docker_wrapper) *.o libstdc++.a | ||
|
||
install: all | ||
|
||
docker_wrapper: docker_wrapper.cpp | ||
g++ $(CXXFLAGS) docker_wrapper.cpp \ | ||
-lboinc_api -lboinc -lpthread \ | ||
-o docker_wrapper | ||
docker_wrapper: docker_wrapper.o $(MAKEFILE_STDLIB) $(BOINC_API_DIR)/libboinc_api.a $(BOINC_LIB_DIR)/libboinc.a | ||
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -o docker_wrapper docker_wrapper.o \ | ||
-lboinc_api -lboinc $(MAKEFILE_LDFLAGS) \ | ||
$(STDCPPTC) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters