Skip to content

Commit

Permalink
Fixed CI.
Browse files Browse the repository at this point in the history
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
  • Loading branch information
utoni committed Jul 26, 2023
1 parent 3ce512a commit a6093ed
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
LOCAL_MINGW64_CC=/usr/bin/x86_64-w64-mingw32-gcc \
LOCAL_MINGW64_CXX=/usr/bin/x86_64-w64-mingw32-g++ \
LOCAL_MINGW64_RC=/usr/bin/x86_64-w64-mingw32-windres \
LOCAL_MINGW64_AR=/usr/bin/x86_64-w64-mingw32-ar \
DDK_INCLUDE_DIR=/usr/x86_64-w64-mingw32/include/ddk
- run: |
test -r EASTL-build/libEASTL.a
Expand All @@ -29,6 +30,7 @@ jobs:
LOCAL_MINGW64_CC=/usr/bin/x86_64-w64-mingw32-gcc \
LOCAL_MINGW64_CXX=/usr/bin/x86_64-w64-mingw32-g++ \
LOCAL_MINGW64_RC=/usr/bin/x86_64-w64-mingw32-windres \
LOCAL_MINGW64_AR=/usr/bin/x86_64-w64-mingw32-ar \
DDK_INCLUDE_DIR=/usr/x86_64-w64-mingw32/include/ddk \
DESTDIR=$(realpath _install)
- run: |
Expand Down
9 changes: 6 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ cache:
- mingw-w64-sysroot/
- EASTL-build/libEASTL.a
- EASTL-native-build/libEASTL.a
- CRT/*.o
- CRT/*.opp
- CRT-build/*
- CRT-native-build/*

before_script:
- export DEBIAN_FRONTEND=noninteractive
Expand All @@ -28,7 +28,10 @@ makedeps:
- >
{ test -x mingw-w64-sysroot/x86_64/bin/x86_64-w64-mingw32-gcc && \
test -x mingw-w64-sysroot/x86_64/bin/x86_64-w64-mingw32-g++ && \
test -r CRT/kcrt.opp && \
test -r CRT-build/libcrt.a && \
test -r CRT-build/libcrt.a && \
test -r CRT-build/libcxxrt.a && \
test -r CRT-build/libusercrt.a && \
test -r EASTL-build/libEASTL.a && \
test -r EASTL-native-build/libEASTL.a; } || \
{ make deps JOBS=${BUILDJOBS:-4} Q= || { cat mingw-w64-sysroot/build.log; false; }; }
Expand Down
16 changes: 10 additions & 6 deletions Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,19 @@ path_exists = \
$(error ERROR: $1 does not exist, run `make -C $(DPP_ROOT) deps` first.))

define CHECK_REQUIRED_PATHS
$(call is_set,$(CC),Makefile argument CC missing)
$(call is_set,$(CXX),Makefile argument CXX missing)
$(call is_set,$(RC),Makefile argument RC missing)
$(call is_set,$(AR),Makefile argument AR missing)
$(call is_set,$(DDK_INCLUDE_DIR),Makefile argument DDK_INCLUDE_DIR missing)
$(call is_set,$(EASTL_STATIC_LIB),Makefile argument EASTL_STATIC_LIB missing)
$(call is_set,$(LIBCRT_STATIC_LIB),Makefile argument LIBCRT_STATIC_LIB missing)
$(call is_set,$(LIBCXXRT_STATIC_LIB),Makefile argument LIBCXXRT_STATIC_LIB missing)
$(call is_set,$(LIBUSERCRT_STATIC_LIB),Makefile argument LIBUSERCRT_STATIC_LIB missing)
$(call path_exists,$(CC))
$(call path_exists,$(CXX))
$(call path_exists,$(RC))
$(call path_exists,$(AR))
$(call path_exists,$(DDK_INCLUDE_DIR))
$(call path_exists,$(EASTL_STATIC_LIB))
$(call path_exists,$(LIBCRT_STATIC_LIB))
Expand Down Expand Up @@ -243,7 +253,6 @@ define INSTALL_HEADERS
done
endef

ifneq ($(AR),)
define PACKAGE
$(call is_set,$(1),First argument: Library name missing)
$(call is_set,$(2),Second argument: Object files missing)
Expand All @@ -252,11 +261,6 @@ define PACKAGE
$(AR) -rsv '$(3)/lib/lib$(1).a' $(2)
tar --no-acls --no-selinux --no-xattrs --transform 's,^$(3),deps,' -cvjf '$(1).dpp' '$(3)'
endef
else
define PACKAGE
$(error The tool AR is required for this operation.)
endef
endif

define HELP_MAKE_OPTIONS
@echo 'Common make options for Makefile.inc:'
Expand Down
6 changes: 6 additions & 0 deletions Makefile.native.inc
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ path_exists = \
$(error ERROR: $1 does not exist, run `make -C $(DPP_ROOT) deps` first.))

define CHECK_REQUIRED_PATHS
$(call is_set,$(CC),Makefile argument CC missing)
$(call is_set,$(CXX),Makefile argument CXX missing)
$(call is_set,$(AR),Makefile argument AR missing)
$(call is_set,$(EASTL_STATIC_LIB),Makefile argument EASTL_STATIC_LIB missing)
$(call is_set,$(LIBUSERCRT_STATIC_LIB),Makefile argument LIBUSERCRT_STATIC_LIB missing)
$(call path_exists,$(CC))
$(call path_exists,$(CXX))
$(call path_exists,$(AR))
$(call path_exists,$(EASTL_STATIC_LIB))
$(call path_exists,$(LIBUSERCRT_STATIC_LIB))
endef
Expand Down

0 comments on commit a6093ed

Please sign in to comment.