mirror of
https://github.com/remko/waforth
synced 2024-12-26 09:59:09 +01:00
github: Install Boost on Windows
This commit is contained in:
parent
00db76e3d3
commit
f70136e89c
2 changed files with 16 additions and 6 deletions
9
.github/actions/setup/action.yml
vendored
9
.github/actions/setup/action.yml
vendored
|
@ -21,8 +21,13 @@ runs:
|
|||
shell: bash
|
||||
- if: runner.os == 'Windows'
|
||||
run: |
|
||||
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.30/wabt-1.0.30-windows.tar.gz | tar xvz -C /c/tools
|
||||
cp /c/tools/wabt-1.0.30/bin/* /c/Windows/system32
|
||||
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.30/wabt-1.0.30-windows.tar.gz | tar xvz -C /tmp
|
||||
mv /tmp/wabt-1.0.30 /c/tools/wabt
|
||||
cp /c/tools/wabt/bin/* /c/Windows/system32
|
||||
shell: bash
|
||||
- if: runner.os == 'Windows'
|
||||
run: |
|
||||
C:\msys64\usr\bin\pacman -S --noconfirm mingw-w64-x86_64-boost
|
||||
shell: cmd
|
||||
- run: yarnpkg --pure-lockfile
|
||||
shell: bash
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
VERSION?=$(shell cat ../../package.json | grep '"version"' | sed -e 's/.*:.*"\(.*\)".*/\1/')
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
CXX = g++
|
||||
WABT_DIR = /c/tools/wabt
|
||||
BOOST_LIB_DIR = /mingw64/lib
|
||||
BOOST_INCLUDE_DIR = /mingw64/include
|
||||
package: waforthc
|
||||
7z a -tzip waforthc-v$(VERSION)-windows.zip waforthc.exe
|
||||
else # $(OS)
|
||||
|
@ -33,18 +37,19 @@ BOOST_INCLUDE_DIR = /usr/include
|
|||
BOOST_LIB_DIR := /usr/lib/$(shell gcc -dumpmachine)
|
||||
PACKAGE_SUFFIX=x86_64-linux
|
||||
endif # $(UNAME_S)
|
||||
package: waforthc
|
||||
$(TAR) czf waforthc-v$(VERSION)-$(PACKAGE_SUFFIX).tgz waforthc
|
||||
endif # $(OS)
|
||||
|
||||
WABT_INCLUDE_DIR := $(WABT_DIR)/include
|
||||
WABT_LIB_DIR := $(WABT_DIR)/lib
|
||||
WABT_DATA_DIR = $(WABT_DIR)/share/wabt
|
||||
|
||||
LIBS := \
|
||||
$(WABT_LIB_DIR)/libwabt.a \
|
||||
$(BOOST_LIB_DIR)/libboost_filesystem.a \
|
||||
$(BOOST_LIB_DIR)/libboost_program_options.a \
|
||||
$(LIBS)
|
||||
package: waforthc
|
||||
$(TAR) czf waforthc-v$(VERSION)-$(PACKAGE_SUFFIX).tgz waforthc
|
||||
endif # $(OS)
|
||||
|
||||
CPPFLAGS := -I$(WABT_INCLUDE_DIR) -I$(BOOST_INCLUDE_DIR)
|
||||
|
||||
ifeq ($(DEBUG),1)
|
||||
|
|
Loading…
Reference in a new issue